[2025-04-07 00:00:04] Production.INFO: next invoice date [2025-04-07 00:00:05] Production.INFO: 2025-05-07 [2025-04-07 00:00:05] Production.INFO: getdaysdiff [2025-04-07 00:00:05] Production.INFO: +30 [2025-04-07 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (155,11,1,30,30,'RMScheduler',2025-04-07 00:00:04,1,0,,,0) [2025-04-07 00:00:05] Production.INFO: next invoice date [2025-04-07 00:00:05] Production.INFO: 2025-05-07 [2025-04-07 00:00:05] Production.INFO: getdaysdiff [2025-04-07 00:00:05] Production.INFO: +30 [2025-04-07 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (232,16,1,30,30,'RMScheduler',2025-04-07 00:00:04,1,0,,,0) [2025-04-07 00:00:05] Production.INFO: next invoice date [2025-04-07 00:00:05] Production.INFO: 2025-05-07 [2025-04-07 00:00:05] Production.INFO: getdaysdiff [2025-04-07 00:00:05] Production.INFO: +30 [2025-04-07 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (232,13,2,30,30,'RMScheduler',2025-04-07 00:00:04,1,0,,,0) [2025-04-07 00:00:05] Production.INFO: next invoice date [2025-04-07 00:00:05] Production.INFO: 2025-05-07 [2025-04-07 00:00:05] Production.INFO: getdaysdiff [2025-04-07 00:00:05] Production.INFO: +30 [2025-04-07 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (232,11,1,30,30,'RMScheduler',2025-04-07 00:00:04,0,0,,,0) [2025-04-07 00:00:05] Production.INFO: next invoice date [2025-04-07 00:00:05] Production.INFO: 2025-05-07 [2025-04-07 00:00:05] Production.INFO: getdaysdiff [2025-04-07 00:00:05] Production.INFO: +30 [2025-04-07 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (232,13,2,30,30,'RMScheduler',2025-04-07 00:00:04,0,0,,,0) [2025-04-07 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:00:06 [end_date_ymd] => 2025-04-07 00:00:06 [RateCDR] => 1 ) [2025-04-07 00:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 21:00:06' and `end` < '2025-04-07 00:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 00:00:19] Production.INFO: count ==951 [2025-04-07 00:00:20] Production.ERROR: pbx CDR StartTime 2025-04-06 21:00:06 - End Time 2025-04-07 00:00:06 [2025-04-07 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851045', 'tblTempUsageDetail_20' ) start [2025-04-07 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851045', 'tblTempUsageDetail_20' ) end [2025-04-07 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851045', 'tblTempVendorCDR_20' ) start [2025-04-07 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851045', 'tblTempVendorCDR_20' ) end [2025-04-07 00:00:20] Production.INFO: ProcessCDR(1,14851045,1,1,2) [2025-04-07 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851045', 'tblTempUsageDetail_20' ) start [2025-04-07 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851045', 'tblTempUsageDetail_20' ) end [2025-04-07 00:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:00:24] Production.INFO: ==18405== Releasing lock... [2025-04-07 00:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:00:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-07 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:01:06 [end_date_ymd] => 2025-04-07 00:01:06 [RateCDR] => 1 ) [2025-04-07 00:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 21:01:06' and `end` < '2025-04-07 00:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 00:01:19] Production.INFO: count ==559 [2025-04-07 00:01:20] Production.ERROR: pbx CDR StartTime 2025-04-06 21:01:06 - End Time 2025-04-07 00:01:06 [2025-04-07 00:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851050', 'tblTempUsageDetail_20' ) start [2025-04-07 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851050', 'tblTempUsageDetail_20' ) end [2025-04-07 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851050', 'tblTempVendorCDR_20' ) start [2025-04-07 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851050', 'tblTempVendorCDR_20' ) end [2025-04-07 00:01:20] Production.INFO: ProcessCDR(1,14851050,1,1,2) [2025-04-07 00:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851050', 'tblTempUsageDetail_20' ) start [2025-04-07 00:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851050', 'tblTempUsageDetail_20' ) end [2025-04-07 00:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:01:25] Production.INFO: ==18516== Releasing lock... [2025-04-07 00:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:01:25] Production.INFO: 33 MB #Memory Used# [2025-04-07 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:02:05 [end_date_ymd] => 2025-04-07 00:02:05 [RateCDR] => 1 ) [2025-04-07 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 21:02:05' and `end` < '2025-04-07 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 00:02:18] Production.INFO: count ==560 [2025-04-07 00:02:18] Production.ERROR: pbx CDR StartTime 2025-04-06 21:02:05 - End Time 2025-04-07 00:02:05 [2025-04-07 00:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851055', 'tblTempUsageDetail_20' ) start [2025-04-07 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851055', 'tblTempUsageDetail_20' ) end [2025-04-07 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851055', 'tblTempVendorCDR_20' ) start [2025-04-07 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851055', 'tblTempVendorCDR_20' ) end [2025-04-07 00:02:18] Production.INFO: ProcessCDR(1,14851055,1,1,2) [2025-04-07 00:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851055', 'tblTempUsageDetail_20' ) start [2025-04-07 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851055', 'tblTempUsageDetail_20' ) end [2025-04-07 00:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:02:22] Production.INFO: ==18611== Releasing lock... [2025-04-07 00:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:02:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 00:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:03:06 [end_date_ymd] => 2025-04-07 00:03:06 [RateCDR] => 1 ) [2025-04-07 00:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 21:03:06' and `end` < '2025-04-07 00:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 00:03:18] Production.INFO: count ==566 [2025-04-07 00:03:19] Production.ERROR: pbx CDR StartTime 2025-04-06 21:03:06 - End Time 2025-04-07 00:03:06 [2025-04-07 00:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851060', 'tblTempUsageDetail_20' ) start [2025-04-07 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851060', 'tblTempUsageDetail_20' ) end [2025-04-07 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851060', 'tblTempVendorCDR_20' ) start [2025-04-07 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851060', 'tblTempVendorCDR_20' ) end [2025-04-07 00:03:19] Production.INFO: ProcessCDR(1,14851060,1,1,2) [2025-04-07 00:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851060', 'tblTempUsageDetail_20' ) start [2025-04-07 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851060', 'tblTempUsageDetail_20' ) end [2025-04-07 00:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:03:22] Production.INFO: ==18702== Releasing lock... [2025-04-07 00:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:03:22] Production.INFO: 33 MB #Memory Used# [2025-04-07 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:04:05 [end_date_ymd] => 2025-04-07 00:04:05 [RateCDR] => 1 ) [2025-04-07 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 21:04:05' and `end` < '2025-04-07 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 00:04:31] Production.INFO: count ==566 [2025-04-07 00:04:31] Production.ERROR: pbx CDR StartTime 2025-04-06 21:04:05 - End Time 2025-04-07 00:04:05 [2025-04-07 00:04:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851065', 'tblTempUsageDetail_20' ) start [2025-04-07 00:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851065', 'tblTempUsageDetail_20' ) end [2025-04-07 00:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851065', 'tblTempVendorCDR_20' ) start [2025-04-07 00:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851065', 'tblTempVendorCDR_20' ) end [2025-04-07 00:04:31] Production.INFO: ProcessCDR(1,14851065,1,1,2) [2025-04-07 00:04:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:04:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:04:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:04:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851065', 'tblTempUsageDetail_20' ) start [2025-04-07 00:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851065', 'tblTempUsageDetail_20' ) end [2025-04-07 00:04:35] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:04:35] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:04:35] Production.INFO: ==18799== Releasing lock... [2025-04-07 00:04:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:04:35] Production.INFO: 33 MB #Memory Used# [2025-04-07 00:05:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:05:07 [end_date_ymd] => 2025-04-07 00:05:07 [RateCDR] => 1 ) [2025-04-07 00:05: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-04-06 21:05:07' and `end` < '2025-04-07 00:05: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-04-07 00:05:29] Production.INFO: count ==561 [2025-04-07 00:05:29] Production.ERROR: pbx CDR StartTime 2025-04-06 21:05:07 - End Time 2025-04-07 00:05:07 [2025-04-07 00:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851070', 'tblTempUsageDetail_20' ) start [2025-04-07 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851070', 'tblTempUsageDetail_20' ) end [2025-04-07 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851070', 'tblTempVendorCDR_20' ) start [2025-04-07 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851070', 'tblTempVendorCDR_20' ) end [2025-04-07 00:05:29] Production.INFO: ProcessCDR(1,14851070,1,1,2) [2025-04-07 00:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851070', 'tblTempUsageDetail_20' ) start [2025-04-07 00:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851070', 'tblTempUsageDetail_20' ) end [2025-04-07 00:05:32] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:05:33] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:05:33] Production.INFO: ==18893== Releasing lock... [2025-04-07 00:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:05:33] Production.INFO: 33 MB #Memory Used# [2025-04-07 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:06:05 [end_date_ymd] => 2025-04-07 00:06:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 21:06:05' and `end` < '2025-04-07 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-04-07 00:06:29] Production.INFO: count ==557 [2025-04-07 00:06:30] Production.ERROR: pbx CDR StartTime 2025-04-06 21:06:05 - End Time 2025-04-07 00:06:05 [2025-04-07 00:06:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851075', 'tblTempUsageDetail_20' ) start [2025-04-07 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851075', 'tblTempUsageDetail_20' ) end [2025-04-07 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851075', 'tblTempVendorCDR_20' ) start [2025-04-07 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851075', 'tblTempVendorCDR_20' ) end [2025-04-07 00:06:30] Production.INFO: ProcessCDR(1,14851075,1,1,2) [2025-04-07 00:06:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:06:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:06:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:06:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851075', 'tblTempUsageDetail_20' ) start [2025-04-07 00:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851075', 'tblTempUsageDetail_20' ) end [2025-04-07 00:06:33] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:06:33] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:06:33] Production.INFO: ==18984== Releasing lock... [2025-04-07 00:06:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:06:33] Production.INFO: 33.25 MB #Memory Used# [2025-04-07 00:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:07:06 [end_date_ymd] => 2025-04-07 00:07:06 [RateCDR] => 1 ) [2025-04-07 00: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-04-06 21:07:06' and `end` < '2025-04-07 00: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-04-07 00:07:26] Production.INFO: count ==558 [2025-04-07 00:07:26] Production.ERROR: pbx CDR StartTime 2025-04-06 21:07:06 - End Time 2025-04-07 00:07:06 [2025-04-07 00:07:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851080', 'tblTempUsageDetail_20' ) start [2025-04-07 00:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851080', 'tblTempUsageDetail_20' ) end [2025-04-07 00:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851080', 'tblTempVendorCDR_20' ) start [2025-04-07 00:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851080', 'tblTempVendorCDR_20' ) end [2025-04-07 00:07:26] Production.INFO: ProcessCDR(1,14851080,1,1,2) [2025-04-07 00:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851080', 'tblTempUsageDetail_20' ) start [2025-04-07 00:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851080', 'tblTempUsageDetail_20' ) end [2025-04-07 00:07:29] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:07:29] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:07:29] Production.INFO: ==19077== Releasing lock... [2025-04-07 00:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:07:29] Production.INFO: 33 MB #Memory Used# [2025-04-07 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:08:05 [end_date_ymd] => 2025-04-07 00:08:05 [RateCDR] => 1 ) [2025-04-07 00: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-04-06 21:08:05' and `end` < '2025-04-07 00: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-04-07 00:08:18] Production.INFO: count ==553 [2025-04-07 00:08:18] Production.ERROR: pbx CDR StartTime 2025-04-06 21:08:05 - End Time 2025-04-07 00:08:05 [2025-04-07 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851085', 'tblTempUsageDetail_20' ) start [2025-04-07 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851085', 'tblTempUsageDetail_20' ) end [2025-04-07 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851085', 'tblTempVendorCDR_20' ) start [2025-04-07 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851085', 'tblTempVendorCDR_20' ) end [2025-04-07 00:08:18] Production.INFO: ProcessCDR(1,14851085,1,1,2) [2025-04-07 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851085', 'tblTempUsageDetail_20' ) start [2025-04-07 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851085', 'tblTempUsageDetail_20' ) end [2025-04-07 00:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:08:22] Production.INFO: ==19215== Releasing lock... [2025-04-07 00:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:08:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:09:05 [end_date_ymd] => 2025-04-07 00:09:05 [RateCDR] => 1 ) [2025-04-07 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 21:09:05' and `end` < '2025-04-07 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 00:09:18] Production.INFO: count ==553 [2025-04-07 00:09:18] Production.ERROR: pbx CDR StartTime 2025-04-06 21:09:05 - End Time 2025-04-07 00:09:05 [2025-04-07 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851090', 'tblTempUsageDetail_20' ) start [2025-04-07 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851090', 'tblTempUsageDetail_20' ) end [2025-04-07 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851090', 'tblTempVendorCDR_20' ) start [2025-04-07 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851090', 'tblTempVendorCDR_20' ) end [2025-04-07 00:09:18] Production.INFO: ProcessCDR(1,14851090,1,1,2) [2025-04-07 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851090', 'tblTempUsageDetail_20' ) start [2025-04-07 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851090', 'tblTempUsageDetail_20' ) end [2025-04-07 00:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:09:22] Production.INFO: ==19312== Releasing lock... [2025-04-07 00:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:09:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:10:05 [end_date_ymd] => 2025-04-07 00:10:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 21:10:05' and `end` < '2025-04-07 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-04-07 00:10:19] Production.INFO: count ==557 [2025-04-07 00:10:19] Production.ERROR: pbx CDR StartTime 2025-04-06 21:10:05 - End Time 2025-04-07 00:10:05 [2025-04-07 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851095', 'tblTempUsageDetail_20' ) start [2025-04-07 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851095', 'tblTempUsageDetail_20' ) end [2025-04-07 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851095', 'tblTempVendorCDR_20' ) start [2025-04-07 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851095', 'tblTempVendorCDR_20' ) end [2025-04-07 00:10:19] Production.INFO: ProcessCDR(1,14851095,1,1,2) [2025-04-07 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851095', 'tblTempUsageDetail_20' ) start [2025-04-07 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851095', 'tblTempUsageDetail_20' ) end [2025-04-07 00:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:10:22] Production.INFO: ==19410== Releasing lock... [2025-04-07 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:10:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:11:05 [end_date_ymd] => 2025-04-07 00:11:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 21:11:05' and `end` < '2025-04-07 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-04-07 00:11:19] Production.INFO: count ==572 [2025-04-07 00:11:19] Production.ERROR: pbx CDR StartTime 2025-04-06 21:11:05 - End Time 2025-04-07 00:11:05 [2025-04-07 00:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851101', 'tblTempUsageDetail_20' ) start [2025-04-07 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851101', 'tblTempUsageDetail_20' ) end [2025-04-07 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851101', 'tblTempVendorCDR_20' ) start [2025-04-07 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851101', 'tblTempVendorCDR_20' ) end [2025-04-07 00:11:19] Production.INFO: ProcessCDR(1,14851101,1,1,2) [2025-04-07 00:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851101', 'tblTempUsageDetail_20' ) start [2025-04-07 00:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851101', 'tblTempUsageDetail_20' ) end [2025-04-07 00:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:11:23] Production.INFO: ==19511== Releasing lock... [2025-04-07 00:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:11:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-07 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:12:05 [end_date_ymd] => 2025-04-07 00:12:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 21:12:05' and `end` < '2025-04-07 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-04-07 00:12:18] Production.INFO: count ==567 [2025-04-07 00:12:18] Production.ERROR: pbx CDR StartTime 2025-04-06 21:12:05 - End Time 2025-04-07 00:12:05 [2025-04-07 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851106', 'tblTempUsageDetail_20' ) start [2025-04-07 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851106', 'tblTempUsageDetail_20' ) end [2025-04-07 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851106', 'tblTempVendorCDR_20' ) start [2025-04-07 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851106', 'tblTempVendorCDR_20' ) end [2025-04-07 00:12:18] Production.INFO: ProcessCDR(1,14851106,1,1,2) [2025-04-07 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851106', 'tblTempUsageDetail_20' ) start [2025-04-07 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851106', 'tblTempUsageDetail_20' ) end [2025-04-07 00:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:12:22] Production.INFO: ==19609== Releasing lock... [2025-04-07 00:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:12:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:13:05 [end_date_ymd] => 2025-04-07 00:13:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 21:13:05' and `end` < '2025-04-07 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-04-07 00:13:18] Production.INFO: count ==567 [2025-04-07 00:13:19] Production.ERROR: pbx CDR StartTime 2025-04-06 21:13:05 - End Time 2025-04-07 00:13:05 [2025-04-07 00:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851111', 'tblTempUsageDetail_20' ) start [2025-04-07 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851111', 'tblTempUsageDetail_20' ) end [2025-04-07 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851111', 'tblTempVendorCDR_20' ) start [2025-04-07 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851111', 'tblTempVendorCDR_20' ) end [2025-04-07 00:13:19] Production.INFO: ProcessCDR(1,14851111,1,1,2) [2025-04-07 00:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851111', 'tblTempUsageDetail_20' ) start [2025-04-07 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851111', 'tblTempUsageDetail_20' ) end [2025-04-07 00:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:13:22] Production.INFO: ==19709== Releasing lock... [2025-04-07 00:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:13:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:14:05 [end_date_ymd] => 2025-04-07 00:14:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 21:14:05' and `end` < '2025-04-07 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-04-07 00:14:18] Production.INFO: count ==565 [2025-04-07 00:14:19] Production.ERROR: pbx CDR StartTime 2025-04-06 21:14:05 - End Time 2025-04-07 00:14:05 [2025-04-07 00:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851116', 'tblTempUsageDetail_20' ) start [2025-04-07 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851116', 'tblTempUsageDetail_20' ) end [2025-04-07 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851116', 'tblTempVendorCDR_20' ) start [2025-04-07 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851116', 'tblTempVendorCDR_20' ) end [2025-04-07 00:14:19] Production.INFO: ProcessCDR(1,14851116,1,1,2) [2025-04-07 00:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851116', 'tblTempUsageDetail_20' ) start [2025-04-07 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851116', 'tblTempUsageDetail_20' ) end [2025-04-07 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:14:22] Production.INFO: ==19806== Releasing lock... [2025-04-07 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:14:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 00:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:15:06 [end_date_ymd] => 2025-04-07 00:15:06 [RateCDR] => 1 ) [2025-04-07 00: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-04-06 21:15:06' and `end` < '2025-04-07 00: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-04-07 00:15:19] Production.INFO: count ==565 [2025-04-07 00:15:19] Production.ERROR: pbx CDR StartTime 2025-04-06 21:15:06 - End Time 2025-04-07 00:15:06 [2025-04-07 00:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851121', 'tblTempUsageDetail_20' ) start [2025-04-07 00:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851121', 'tblTempUsageDetail_20' ) end [2025-04-07 00:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851121', 'tblTempVendorCDR_20' ) start [2025-04-07 00:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851121', 'tblTempVendorCDR_20' ) end [2025-04-07 00:15:19] Production.INFO: ProcessCDR(1,14851121,1,1,2) [2025-04-07 00:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851121', 'tblTempUsageDetail_20' ) start [2025-04-07 00:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851121', 'tblTempUsageDetail_20' ) end [2025-04-07 00:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:15:23] Production.INFO: ==19899== Releasing lock... [2025-04-07 00:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:15:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 00:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:16:06 [end_date_ymd] => 2025-04-07 00:16:06 [RateCDR] => 1 ) [2025-04-07 00: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-04-06 21:16:06' and `end` < '2025-04-07 00: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-04-07 00:16:18] Production.INFO: count ==561 [2025-04-07 00:16:19] Production.ERROR: pbx CDR StartTime 2025-04-06 21:16:06 - End Time 2025-04-07 00:16:06 [2025-04-07 00:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851126', 'tblTempUsageDetail_20' ) start [2025-04-07 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851126', 'tblTempUsageDetail_20' ) end [2025-04-07 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851126', 'tblTempVendorCDR_20' ) start [2025-04-07 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851126', 'tblTempVendorCDR_20' ) end [2025-04-07 00:16:19] Production.INFO: ProcessCDR(1,14851126,1,1,2) [2025-04-07 00:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851126', 'tblTempUsageDetail_20' ) start [2025-04-07 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851126', 'tblTempUsageDetail_20' ) end [2025-04-07 00:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:16:22] Production.INFO: ==19990== Releasing lock... [2025-04-07 00:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:16:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:17:05 [end_date_ymd] => 2025-04-07 00:17:05 [RateCDR] => 1 ) [2025-04-07 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 21:17:05' and `end` < '2025-04-07 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 00:17:18] Production.INFO: count ==561 [2025-04-07 00:17:18] Production.ERROR: pbx CDR StartTime 2025-04-06 21:17:05 - End Time 2025-04-07 00:17:05 [2025-04-07 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851131', 'tblTempUsageDetail_20' ) start [2025-04-07 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851131', 'tblTempUsageDetail_20' ) end [2025-04-07 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851131', 'tblTempVendorCDR_20' ) start [2025-04-07 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851131', 'tblTempVendorCDR_20' ) end [2025-04-07 00:17:19] Production.INFO: ProcessCDR(1,14851131,1,1,2) [2025-04-07 00:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851131', 'tblTempUsageDetail_20' ) start [2025-04-07 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851131', 'tblTempUsageDetail_20' ) end [2025-04-07 00:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:17:22] Production.INFO: ==20069== Releasing lock... [2025-04-07 00:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:17:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 00:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:18:06 [end_date_ymd] => 2025-04-07 00:18:06 [RateCDR] => 1 ) [2025-04-07 00: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-04-06 21:18:06' and `end` < '2025-04-07 00: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-04-07 00:18:18] Production.INFO: count ==566 [2025-04-07 00:18:19] Production.ERROR: pbx CDR StartTime 2025-04-06 21:18:06 - End Time 2025-04-07 00:18:06 [2025-04-07 00:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851136', 'tblTempUsageDetail_20' ) start [2025-04-07 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851136', 'tblTempUsageDetail_20' ) end [2025-04-07 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851136', 'tblTempVendorCDR_20' ) start [2025-04-07 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851136', 'tblTempVendorCDR_20' ) end [2025-04-07 00:18:19] Production.INFO: ProcessCDR(1,14851136,1,1,2) [2025-04-07 00:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851136', 'tblTempUsageDetail_20' ) start [2025-04-07 00:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851136', 'tblTempUsageDetail_20' ) end [2025-04-07 00:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:18:24] Production.INFO: ==20148== Releasing lock... [2025-04-07 00:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:18:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 00:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:19:06 [end_date_ymd] => 2025-04-07 00:19:06 [RateCDR] => 1 ) [2025-04-07 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-04-06 21:19:06' and `end` < '2025-04-07 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-04-07 00:19:19] Production.INFO: count ==549 [2025-04-07 00:19:19] Production.ERROR: pbx CDR StartTime 2025-04-06 21:19:06 - End Time 2025-04-07 00:19:06 [2025-04-07 00:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851141', 'tblTempUsageDetail_20' ) start [2025-04-07 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851141', 'tblTempUsageDetail_20' ) end [2025-04-07 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851141', 'tblTempVendorCDR_20' ) start [2025-04-07 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851141', 'tblTempVendorCDR_20' ) end [2025-04-07 00:19:19] Production.INFO: ProcessCDR(1,14851141,1,1,2) [2025-04-07 00:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851141', 'tblTempUsageDetail_20' ) start [2025-04-07 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851141', 'tblTempUsageDetail_20' ) end [2025-04-07 00:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:19:22] Production.INFO: ==20222== Releasing lock... [2025-04-07 00:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:19:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:20:06 [end_date_ymd] => 2025-04-07 00:20:06 [RateCDR] => 1 ) [2025-04-07 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-04-06 21:20:06' and `end` < '2025-04-07 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-04-07 00:20:19] Production.INFO: count ==557 [2025-04-07 00:20:19] Production.ERROR: pbx CDR StartTime 2025-04-06 21:20:06 - End Time 2025-04-07 00:20:06 [2025-04-07 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851147', 'tblTempUsageDetail_20' ) start [2025-04-07 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851147', 'tblTempUsageDetail_20' ) end [2025-04-07 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851147', 'tblTempVendorCDR_20' ) start [2025-04-07 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851147', 'tblTempVendorCDR_20' ) end [2025-04-07 00:20:19] Production.INFO: ProcessCDR(1,14851147,1,1,2) [2025-04-07 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851147', 'tblTempUsageDetail_20' ) start [2025-04-07 00:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851147', 'tblTempUsageDetail_20' ) end [2025-04-07 00:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:20:24] Production.INFO: ==20299== Releasing lock... [2025-04-07 00:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:20:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:21:05 [end_date_ymd] => 2025-04-07 00:21:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 21:21:05' and `end` < '2025-04-07 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-04-07 00:21:18] Production.INFO: count ==570 [2025-04-07 00:21:18] Production.ERROR: pbx CDR StartTime 2025-04-06 21:21:05 - End Time 2025-04-07 00:21:05 [2025-04-07 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851152', 'tblTempUsageDetail_20' ) start [2025-04-07 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851152', 'tblTempUsageDetail_20' ) end [2025-04-07 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851152', 'tblTempVendorCDR_20' ) start [2025-04-07 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851152', 'tblTempVendorCDR_20' ) end [2025-04-07 00:21:18] Production.INFO: ProcessCDR(1,14851152,1,1,2) [2025-04-07 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851152', 'tblTempUsageDetail_20' ) start [2025-04-07 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851152', 'tblTempUsageDetail_20' ) end [2025-04-07 00:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:21:22] Production.INFO: ==20376== Releasing lock... [2025-04-07 00:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:21:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:22:05 [end_date_ymd] => 2025-04-07 00:22:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 21:22:05' and `end` < '2025-04-07 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-04-07 00:22:18] Production.INFO: count ==566 [2025-04-07 00:22:18] Production.ERROR: pbx CDR StartTime 2025-04-06 21:22:05 - End Time 2025-04-07 00:22:05 [2025-04-07 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851157', 'tblTempUsageDetail_20' ) start [2025-04-07 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851157', 'tblTempUsageDetail_20' ) end [2025-04-07 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851157', 'tblTempVendorCDR_20' ) start [2025-04-07 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851157', 'tblTempVendorCDR_20' ) end [2025-04-07 00:22:18] Production.INFO: ProcessCDR(1,14851157,1,1,2) [2025-04-07 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851157', 'tblTempUsageDetail_20' ) start [2025-04-07 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851157', 'tblTempUsageDetail_20' ) end [2025-04-07 00:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:22:22] Production.INFO: ==20447== Releasing lock... [2025-04-07 00:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:22:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 00:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:23:06 [end_date_ymd] => 2025-04-07 00:23:06 [RateCDR] => 1 ) [2025-04-07 00:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 21:23:06' and `end` < '2025-04-07 00:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 00:23:19] Production.INFO: count ==565 [2025-04-07 00:23:19] Production.ERROR: pbx CDR StartTime 2025-04-06 21:23:06 - End Time 2025-04-07 00:23:06 [2025-04-07 00:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851162', 'tblTempUsageDetail_20' ) start [2025-04-07 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851162', 'tblTempUsageDetail_20' ) end [2025-04-07 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851162', 'tblTempVendorCDR_20' ) start [2025-04-07 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851162', 'tblTempVendorCDR_20' ) end [2025-04-07 00:23:19] Production.INFO: ProcessCDR(1,14851162,1,1,2) [2025-04-07 00:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851162', 'tblTempUsageDetail_20' ) start [2025-04-07 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851162', 'tblTempUsageDetail_20' ) end [2025-04-07 00:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:23:22] Production.INFO: ==20529== Releasing lock... [2025-04-07 00:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:23:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:24:05 [end_date_ymd] => 2025-04-07 00:24:05 [RateCDR] => 1 ) [2025-04-07 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 21:24:05' and `end` < '2025-04-07 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 00:24:18] Production.INFO: count ==570 [2025-04-07 00:24:18] Production.ERROR: pbx CDR StartTime 2025-04-06 21:24:05 - End Time 2025-04-07 00:24:05 [2025-04-07 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851167', 'tblTempUsageDetail_20' ) start [2025-04-07 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851167', 'tblTempUsageDetail_20' ) end [2025-04-07 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851167', 'tblTempVendorCDR_20' ) start [2025-04-07 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851167', 'tblTempVendorCDR_20' ) end [2025-04-07 00:24:18] Production.INFO: ProcessCDR(1,14851167,1,1,2) [2025-04-07 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851167', 'tblTempUsageDetail_20' ) start [2025-04-07 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851167', 'tblTempUsageDetail_20' ) end [2025-04-07 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:24:21] Production.INFO: ==20645== Releasing lock... [2025-04-07 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:24:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:25:06 [end_date_ymd] => 2025-04-07 00:25:06 [RateCDR] => 1 ) [2025-04-07 00: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-04-06 21:25:06' and `end` < '2025-04-07 00: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-04-07 00:25:19] Production.INFO: count ==577 [2025-04-07 00:25:19] Production.ERROR: pbx CDR StartTime 2025-04-06 21:25:06 - End Time 2025-04-07 00:25:06 [2025-04-07 00:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851172', 'tblTempUsageDetail_20' ) start [2025-04-07 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851172', 'tblTempUsageDetail_20' ) end [2025-04-07 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851172', 'tblTempVendorCDR_20' ) start [2025-04-07 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851172', 'tblTempVendorCDR_20' ) end [2025-04-07 00:25:19] Production.INFO: ProcessCDR(1,14851172,1,1,2) [2025-04-07 00:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851172', 'tblTempUsageDetail_20' ) start [2025-04-07 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851172', 'tblTempUsageDetail_20' ) end [2025-04-07 00:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:25:22] Production.INFO: ==20756== Releasing lock... [2025-04-07 00:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:25:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 00:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:26:06 [end_date_ymd] => 2025-04-07 00:26:06 [RateCDR] => 1 ) [2025-04-07 00: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-04-06 21:26:06' and `end` < '2025-04-07 00: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-04-07 00:26:19] Production.INFO: count ==574 [2025-04-07 00:26:19] Production.ERROR: pbx CDR StartTime 2025-04-06 21:26:06 - End Time 2025-04-07 00:26:06 [2025-04-07 00:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851177', 'tblTempUsageDetail_20' ) start [2025-04-07 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851177', 'tblTempUsageDetail_20' ) end [2025-04-07 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851177', 'tblTempVendorCDR_20' ) start [2025-04-07 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851177', 'tblTempVendorCDR_20' ) end [2025-04-07 00:26:19] Production.INFO: ProcessCDR(1,14851177,1,1,2) [2025-04-07 00:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851177', 'tblTempUsageDetail_20' ) start [2025-04-07 00:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851177', 'tblTempUsageDetail_20' ) end [2025-04-07 00:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:26:23] Production.INFO: ==20860== Releasing lock... [2025-04-07 00:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:26:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-07 00:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:27:06 [end_date_ymd] => 2025-04-07 00:27:06 [RateCDR] => 1 ) [2025-04-07 00: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-04-06 21:27:06' and `end` < '2025-04-07 00: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-04-07 00:27:18] Production.INFO: count ==567 [2025-04-07 00:27:19] Production.ERROR: pbx CDR StartTime 2025-04-06 21:27:06 - End Time 2025-04-07 00:27:06 [2025-04-07 00:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851182', 'tblTempUsageDetail_20' ) start [2025-04-07 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851182', 'tblTempUsageDetail_20' ) end [2025-04-07 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851182', 'tblTempVendorCDR_20' ) start [2025-04-07 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851182', 'tblTempVendorCDR_20' ) end [2025-04-07 00:27:19] Production.INFO: ProcessCDR(1,14851182,1,1,2) [2025-04-07 00:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851182', 'tblTempUsageDetail_20' ) start [2025-04-07 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851182', 'tblTempUsageDetail_20' ) end [2025-04-07 00:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:27:22] Production.INFO: ==20935== Releasing lock... [2025-04-07 00:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:27:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 00:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:28:06 [end_date_ymd] => 2025-04-07 00:28:06 [RateCDR] => 1 ) [2025-04-07 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-04-06 21:28:06' and `end` < '2025-04-07 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-04-07 00:28:19] Production.INFO: count ==566 [2025-04-07 00:28:19] Production.ERROR: pbx CDR StartTime 2025-04-06 21:28:06 - End Time 2025-04-07 00:28:06 [2025-04-07 00:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851187', 'tblTempUsageDetail_20' ) start [2025-04-07 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851187', 'tblTempUsageDetail_20' ) end [2025-04-07 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851187', 'tblTempVendorCDR_20' ) start [2025-04-07 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851187', 'tblTempVendorCDR_20' ) end [2025-04-07 00:28:19] Production.INFO: ProcessCDR(1,14851187,1,1,2) [2025-04-07 00:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851187', 'tblTempUsageDetail_20' ) start [2025-04-07 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851187', 'tblTempUsageDetail_20' ) end [2025-04-07 00:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:28:22] Production.INFO: ==21006== Releasing lock... [2025-04-07 00:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:28:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:29:05 [end_date_ymd] => 2025-04-07 00:29:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 21:29:05' and `end` < '2025-04-07 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-04-07 00:29:18] Production.INFO: count ==564 [2025-04-07 00:29:18] Production.ERROR: pbx CDR StartTime 2025-04-06 21:29:05 - End Time 2025-04-07 00:29:05 [2025-04-07 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851192', 'tblTempUsageDetail_20' ) start [2025-04-07 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851192', 'tblTempUsageDetail_20' ) end [2025-04-07 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851192', 'tblTempVendorCDR_20' ) start [2025-04-07 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851192', 'tblTempVendorCDR_20' ) end [2025-04-07 00:29:18] Production.INFO: ProcessCDR(1,14851192,1,1,2) [2025-04-07 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851192', 'tblTempUsageDetail_20' ) start [2025-04-07 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851192', 'tblTempUsageDetail_20' ) end [2025-04-07 00:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:29:22] Production.INFO: ==21079== Releasing lock... [2025-04-07 00:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:29:22] Production.INFO: 33 MB #Memory Used# [2025-04-07 00:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:30:07 [end_date_ymd] => 2025-04-07 00:30:07 [RateCDR] => 1 ) [2025-04-07 00:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 21:30:07' and `end` < '2025-04-07 00:30: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-04-07 00:30:20] Production.INFO: count ==566 [2025-04-07 00:30:20] Production.ERROR: pbx CDR StartTime 2025-04-06 21:30:07 - End Time 2025-04-07 00:30:07 [2025-04-07 00:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851198', 'tblTempUsageDetail_20' ) start [2025-04-07 00:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851198', 'tblTempUsageDetail_20' ) end [2025-04-07 00:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851198', 'tblTempVendorCDR_20' ) start [2025-04-07 00:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851198', 'tblTempVendorCDR_20' ) end [2025-04-07 00:30:20] Production.INFO: ProcessCDR(1,14851198,1,1,2) [2025-04-07 00:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851198', 'tblTempUsageDetail_20' ) start [2025-04-07 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851198', 'tblTempUsageDetail_20' ) end [2025-04-07 00:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:30:23] Production.INFO: ==21156== Releasing lock... [2025-04-07 00:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:30:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 00:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:31:06 [end_date_ymd] => 2025-04-07 00:31:06 [RateCDR] => 1 ) [2025-04-07 00: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-04-06 21:31:06' and `end` < '2025-04-07 00: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-04-07 00:31:19] Production.INFO: count ==565 [2025-04-07 00:31:19] Production.ERROR: pbx CDR StartTime 2025-04-06 21:31:06 - End Time 2025-04-07 00:31:06 [2025-04-07 00:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851203', 'tblTempUsageDetail_20' ) start [2025-04-07 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851203', 'tblTempUsageDetail_20' ) end [2025-04-07 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851203', 'tblTempVendorCDR_20' ) start [2025-04-07 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851203', 'tblTempVendorCDR_20' ) end [2025-04-07 00:31:19] Production.INFO: ProcessCDR(1,14851203,1,1,2) [2025-04-07 00:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851203', 'tblTempUsageDetail_20' ) start [2025-04-07 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851203', 'tblTempUsageDetail_20' ) end [2025-04-07 00:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:31:22] Production.INFO: ==21231== Releasing lock... [2025-04-07 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:31:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 00:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:32:06 [end_date_ymd] => 2025-04-07 00:32:06 [RateCDR] => 1 ) [2025-04-07 00: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-04-06 21:32:06' and `end` < '2025-04-07 00: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-04-07 00:32:18] Production.INFO: count ==565 [2025-04-07 00:32:19] Production.ERROR: pbx CDR StartTime 2025-04-06 21:32:06 - End Time 2025-04-07 00:32:06 [2025-04-07 00:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851208', 'tblTempUsageDetail_20' ) start [2025-04-07 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851208', 'tblTempUsageDetail_20' ) end [2025-04-07 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851208', 'tblTempVendorCDR_20' ) start [2025-04-07 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851208', 'tblTempVendorCDR_20' ) end [2025-04-07 00:32:19] Production.INFO: ProcessCDR(1,14851208,1,1,2) [2025-04-07 00:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851208', 'tblTempUsageDetail_20' ) start [2025-04-07 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851208', 'tblTempUsageDetail_20' ) end [2025-04-07 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:32:22] Production.INFO: ==21306== Releasing lock... [2025-04-07 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:32:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:33:05 [end_date_ymd] => 2025-04-07 00:33:05 [RateCDR] => 1 ) [2025-04-07 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 21:33:05' and `end` < '2025-04-07 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 00:33:18] Production.INFO: count ==563 [2025-04-07 00:33:18] Production.ERROR: pbx CDR StartTime 2025-04-06 21:33:05 - End Time 2025-04-07 00:33:05 [2025-04-07 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851213', 'tblTempUsageDetail_20' ) start [2025-04-07 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851213', 'tblTempUsageDetail_20' ) end [2025-04-07 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851213', 'tblTempVendorCDR_20' ) start [2025-04-07 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851213', 'tblTempVendorCDR_20' ) end [2025-04-07 00:33:18] Production.INFO: ProcessCDR(1,14851213,1,1,2) [2025-04-07 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851213', 'tblTempUsageDetail_20' ) start [2025-04-07 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851213', 'tblTempUsageDetail_20' ) end [2025-04-07 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:33:21] Production.INFO: ==21380== Releasing lock... [2025-04-07 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:33:21] Production.INFO: 33 MB #Memory Used# [2025-04-07 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:34:05 [end_date_ymd] => 2025-04-07 00:34:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 21:34:05' and `end` < '2025-04-07 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-04-07 00:34:18] Production.INFO: count ==564 [2025-04-07 00:34:18] Production.ERROR: pbx CDR StartTime 2025-04-06 21:34:05 - End Time 2025-04-07 00:34:05 [2025-04-07 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851218', 'tblTempUsageDetail_20' ) start [2025-04-07 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851218', 'tblTempUsageDetail_20' ) end [2025-04-07 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851218', 'tblTempVendorCDR_20' ) start [2025-04-07 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851218', 'tblTempVendorCDR_20' ) end [2025-04-07 00:34:18] Production.INFO: ProcessCDR(1,14851218,1,1,2) [2025-04-07 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851218', 'tblTempUsageDetail_20' ) start [2025-04-07 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851218', 'tblTempUsageDetail_20' ) end [2025-04-07 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:34:22] Production.INFO: ==21451== Releasing lock... [2025-04-07 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:34:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:35:05 [end_date_ymd] => 2025-04-07 00:35:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 21:35:05' and `end` < '2025-04-07 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-04-07 00:35:18] Production.INFO: count ==568 [2025-04-07 00:35:18] Production.ERROR: pbx CDR StartTime 2025-04-06 21:35:05 - End Time 2025-04-07 00:35:05 [2025-04-07 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851223', 'tblTempUsageDetail_20' ) start [2025-04-07 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851223', 'tblTempUsageDetail_20' ) end [2025-04-07 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851223', 'tblTempVendorCDR_20' ) start [2025-04-07 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851223', 'tblTempVendorCDR_20' ) end [2025-04-07 00:35:18] Production.INFO: ProcessCDR(1,14851223,1,1,2) [2025-04-07 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851223', 'tblTempUsageDetail_20' ) start [2025-04-07 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851223', 'tblTempUsageDetail_20' ) end [2025-04-07 00:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:35:22] Production.INFO: ==21524== Releasing lock... [2025-04-07 00:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:35:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 00:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:36:06 [end_date_ymd] => 2025-04-07 00:36:06 [RateCDR] => 1 ) [2025-04-07 00: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-04-06 21:36:06' and `end` < '2025-04-07 00: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-04-07 00:36:19] Production.INFO: count ==568 [2025-04-07 00:36:19] Production.ERROR: pbx CDR StartTime 2025-04-06 21:36:06 - End Time 2025-04-07 00:36:06 [2025-04-07 00:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851228', 'tblTempUsageDetail_20' ) start [2025-04-07 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851228', 'tblTempUsageDetail_20' ) end [2025-04-07 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851228', 'tblTempVendorCDR_20' ) start [2025-04-07 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851228', 'tblTempVendorCDR_20' ) end [2025-04-07 00:36:19] Production.INFO: ProcessCDR(1,14851228,1,1,2) [2025-04-07 00:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851228', 'tblTempUsageDetail_20' ) start [2025-04-07 00:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851228', 'tblTempUsageDetail_20' ) end [2025-04-07 00:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:36:23] Production.INFO: ==21597== Releasing lock... [2025-04-07 00:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:36:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:37:05 [end_date_ymd] => 2025-04-07 00:37:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 21:37:05' and `end` < '2025-04-07 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-04-07 00:37:18] Production.INFO: count ==568 [2025-04-07 00:37:18] Production.ERROR: pbx CDR StartTime 2025-04-06 21:37:05 - End Time 2025-04-07 00:37:05 [2025-04-07 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851233', 'tblTempUsageDetail_20' ) start [2025-04-07 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851233', 'tblTempUsageDetail_20' ) end [2025-04-07 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851233', 'tblTempVendorCDR_20' ) start [2025-04-07 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851233', 'tblTempVendorCDR_20' ) end [2025-04-07 00:37:18] Production.INFO: ProcessCDR(1,14851233,1,1,2) [2025-04-07 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851233', 'tblTempUsageDetail_20' ) start [2025-04-07 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851233', 'tblTempUsageDetail_20' ) end [2025-04-07 00:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:37:22] Production.INFO: ==21681== Releasing lock... [2025-04-07 00:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:37:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 00:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:38:06 [end_date_ymd] => 2025-04-07 00:38:06 [RateCDR] => 1 ) [2025-04-07 00: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-04-06 21:38:06' and `end` < '2025-04-07 00: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-04-07 00:38:19] Production.INFO: count ==568 [2025-04-07 00:38:19] Production.ERROR: pbx CDR StartTime 2025-04-06 21:38:06 - End Time 2025-04-07 00:38:06 [2025-04-07 00:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851238', 'tblTempUsageDetail_20' ) start [2025-04-07 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851238', 'tblTempUsageDetail_20' ) end [2025-04-07 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851238', 'tblTempVendorCDR_20' ) start [2025-04-07 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851238', 'tblTempVendorCDR_20' ) end [2025-04-07 00:38:19] Production.INFO: ProcessCDR(1,14851238,1,1,2) [2025-04-07 00:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851238', 'tblTempUsageDetail_20' ) start [2025-04-07 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851238', 'tblTempUsageDetail_20' ) end [2025-04-07 00:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:38:22] Production.INFO: ==21761== Releasing lock... [2025-04-07 00:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:38:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:39:05 [end_date_ymd] => 2025-04-07 00:39:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 21:39:05' and `end` < '2025-04-07 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-04-07 00:39:18] Production.INFO: count ==567 [2025-04-07 00:39:18] Production.ERROR: pbx CDR StartTime 2025-04-06 21:39:05 - End Time 2025-04-07 00:39:05 [2025-04-07 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851243', 'tblTempUsageDetail_20' ) start [2025-04-07 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851243', 'tblTempUsageDetail_20' ) end [2025-04-07 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851243', 'tblTempVendorCDR_20' ) start [2025-04-07 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851243', 'tblTempVendorCDR_20' ) end [2025-04-07 00:39:18] Production.INFO: ProcessCDR(1,14851243,1,1,2) [2025-04-07 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851243', 'tblTempUsageDetail_20' ) start [2025-04-07 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851243', 'tblTempUsageDetail_20' ) end [2025-04-07 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:39:21] Production.INFO: ==21875== Releasing lock... [2025-04-07 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:39:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 00:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:40:07 [end_date_ymd] => 2025-04-07 00:40:07 [RateCDR] => 1 ) [2025-04-07 00: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-04-06 21:40:07' and `end` < '2025-04-07 00: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-04-07 00:40:19] Production.INFO: count ==581 [2025-04-07 00:40:20] Production.ERROR: pbx CDR StartTime 2025-04-06 21:40:07 - End Time 2025-04-07 00:40:07 [2025-04-07 00:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851249', 'tblTempUsageDetail_20' ) start [2025-04-07 00:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851249', 'tblTempUsageDetail_20' ) end [2025-04-07 00:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851249', 'tblTempVendorCDR_20' ) start [2025-04-07 00:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851249', 'tblTempVendorCDR_20' ) end [2025-04-07 00:40:20] Production.INFO: ProcessCDR(1,14851249,1,1,2) [2025-04-07 00:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851249', 'tblTempUsageDetail_20' ) start [2025-04-07 00:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851249', 'tblTempUsageDetail_20' ) end [2025-04-07 00:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:40:25] Production.INFO: ==21948== Releasing lock... [2025-04-07 00:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:40:25] Production.INFO: 33.25 MB #Memory Used# [2025-04-07 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:41:05 [end_date_ymd] => 2025-04-07 00:41:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 21:41:05' and `end` < '2025-04-07 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-04-07 00:41:18] Production.INFO: count ==600 [2025-04-07 00:41:18] Production.ERROR: pbx CDR StartTime 2025-04-06 21:41:05 - End Time 2025-04-07 00:41:05 [2025-04-07 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851254', 'tblTempUsageDetail_20' ) start [2025-04-07 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851254', 'tblTempUsageDetail_20' ) end [2025-04-07 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851254', 'tblTempVendorCDR_20' ) start [2025-04-07 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851254', 'tblTempVendorCDR_20' ) end [2025-04-07 00:41:18] Production.INFO: ProcessCDR(1,14851254,1,1,2) [2025-04-07 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851254', 'tblTempUsageDetail_20' ) start [2025-04-07 00:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851254', 'tblTempUsageDetail_20' ) end [2025-04-07 00:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:41:23] Production.INFO: ==22025== Releasing lock... [2025-04-07 00:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:41:23] Production.INFO: 33 MB #Memory Used# [2025-04-07 00:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:42:06 [end_date_ymd] => 2025-04-07 00:42:06 [RateCDR] => 1 ) [2025-04-07 00:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 21:42:06' and `end` < '2025-04-07 00:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 00:42:19] Production.INFO: count ==606 [2025-04-07 00:42:19] Production.ERROR: pbx CDR StartTime 2025-04-06 21:42:06 - End Time 2025-04-07 00:42:06 [2025-04-07 00:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851259', 'tblTempUsageDetail_20' ) start [2025-04-07 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851259', 'tblTempUsageDetail_20' ) end [2025-04-07 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851259', 'tblTempVendorCDR_20' ) start [2025-04-07 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851259', 'tblTempVendorCDR_20' ) end [2025-04-07 00:42:19] Production.INFO: ProcessCDR(1,14851259,1,1,2) [2025-04-07 00:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851259', 'tblTempUsageDetail_20' ) start [2025-04-07 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851259', 'tblTempUsageDetail_20' ) end [2025-04-07 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:42:22] Production.INFO: ==22099== Releasing lock... [2025-04-07 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:42:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-07 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:43:05 [end_date_ymd] => 2025-04-07 00:43:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 21:43:05' and `end` < '2025-04-07 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-04-07 00:43:18] Production.INFO: count ==612 [2025-04-07 00:43:18] Production.ERROR: pbx CDR StartTime 2025-04-06 21:43:05 - End Time 2025-04-07 00:43:05 [2025-04-07 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851264', 'tblTempUsageDetail_20' ) start [2025-04-07 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851264', 'tblTempUsageDetail_20' ) end [2025-04-07 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851264', 'tblTempVendorCDR_20' ) start [2025-04-07 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851264', 'tblTempVendorCDR_20' ) end [2025-04-07 00:43:18] Production.INFO: ProcessCDR(1,14851264,1,1,2) [2025-04-07 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851264', 'tblTempUsageDetail_20' ) start [2025-04-07 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851264', 'tblTempUsageDetail_20' ) end [2025-04-07 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:43:22] Production.INFO: ==22172== Releasing lock... [2025-04-07 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:43:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:44:05 [end_date_ymd] => 2025-04-07 00:44:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 21:44:05' and `end` < '2025-04-07 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-04-07 00:44:18] Production.INFO: count ==618 [2025-04-07 00:44:18] Production.ERROR: pbx CDR StartTime 2025-04-06 21:44:05 - End Time 2025-04-07 00:44:05 [2025-04-07 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851269', 'tblTempUsageDetail_20' ) start [2025-04-07 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851269', 'tblTempUsageDetail_20' ) end [2025-04-07 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851269', 'tblTempVendorCDR_20' ) start [2025-04-07 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851269', 'tblTempVendorCDR_20' ) end [2025-04-07 00:44:18] Production.INFO: ProcessCDR(1,14851269,1,1,2) [2025-04-07 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851269', 'tblTempUsageDetail_20' ) start [2025-04-07 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851269', 'tblTempUsageDetail_20' ) end [2025-04-07 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:44:22] Production.INFO: ==22247== Releasing lock... [2025-04-07 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:44:22] Production.INFO: 33 MB #Memory Used# [2025-04-07 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:45:05 [end_date_ymd] => 2025-04-07 00:45:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 21:45:05' and `end` < '2025-04-07 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-04-07 00:45:18] Production.INFO: count ==621 [2025-04-07 00:45:18] Production.ERROR: pbx CDR StartTime 2025-04-06 21:45:05 - End Time 2025-04-07 00:45:05 [2025-04-07 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851274', 'tblTempUsageDetail_20' ) start [2025-04-07 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851274', 'tblTempUsageDetail_20' ) end [2025-04-07 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851274', 'tblTempVendorCDR_20' ) start [2025-04-07 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851274', 'tblTempVendorCDR_20' ) end [2025-04-07 00:45:18] Production.INFO: ProcessCDR(1,14851274,1,1,2) [2025-04-07 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851274', 'tblTempUsageDetail_20' ) start [2025-04-07 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851274', 'tblTempUsageDetail_20' ) end [2025-04-07 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:45:21] Production.INFO: ==22321== Releasing lock... [2025-04-07 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:45:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-07 00:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:46:05 [end_date_ymd] => 2025-04-07 00:46:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 21:46:05' and `end` < '2025-04-07 00: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-04-07 00:46:18] Production.INFO: count ==638 [2025-04-07 00:46:19] Production.ERROR: pbx CDR StartTime 2025-04-06 21:46:05 - End Time 2025-04-07 00:46:05 [2025-04-07 00:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851279', 'tblTempUsageDetail_20' ) start [2025-04-07 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851279', 'tblTempUsageDetail_20' ) end [2025-04-07 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851279', 'tblTempVendorCDR_20' ) start [2025-04-07 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851279', 'tblTempVendorCDR_20' ) end [2025-04-07 00:46:19] Production.INFO: ProcessCDR(1,14851279,1,1,2) [2025-04-07 00:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851279', 'tblTempUsageDetail_20' ) start [2025-04-07 00:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851279', 'tblTempUsageDetail_20' ) end [2025-04-07 00:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:46:24] Production.INFO: ==22394== Releasing lock... [2025-04-07 00:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:46:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-07 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:47:05 [end_date_ymd] => 2025-04-07 00:47:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 21:47:05' and `end` < '2025-04-07 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-04-07 00:47:18] Production.INFO: count ==640 [2025-04-07 00:47:18] Production.ERROR: pbx CDR StartTime 2025-04-06 21:47:05 - End Time 2025-04-07 00:47:05 [2025-04-07 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851284', 'tblTempUsageDetail_20' ) start [2025-04-07 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851284', 'tblTempUsageDetail_20' ) end [2025-04-07 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851284', 'tblTempVendorCDR_20' ) start [2025-04-07 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851284', 'tblTempVendorCDR_20' ) end [2025-04-07 00:47:18] Production.INFO: ProcessCDR(1,14851284,1,1,2) [2025-04-07 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851284', 'tblTempUsageDetail_20' ) start [2025-04-07 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851284', 'tblTempUsageDetail_20' ) end [2025-04-07 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:47:21] Production.INFO: ==22464== Releasing lock... [2025-04-07 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:47:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-07 00:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:48:06 [end_date_ymd] => 2025-04-07 00:48:06 [RateCDR] => 1 ) [2025-04-07 00: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-04-06 21:48:06' and `end` < '2025-04-07 00: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-04-07 00:48:19] Production.INFO: count ==632 [2025-04-07 00:48:19] Production.ERROR: pbx CDR StartTime 2025-04-06 21:48:06 - End Time 2025-04-07 00:48:06 [2025-04-07 00:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851289', 'tblTempUsageDetail_20' ) start [2025-04-07 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851289', 'tblTempUsageDetail_20' ) end [2025-04-07 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851289', 'tblTempVendorCDR_20' ) start [2025-04-07 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851289', 'tblTempVendorCDR_20' ) end [2025-04-07 00:48:19] Production.INFO: ProcessCDR(1,14851289,1,1,2) [2025-04-07 00:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851289', 'tblTempUsageDetail_20' ) start [2025-04-07 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851289', 'tblTempUsageDetail_20' ) end [2025-04-07 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:48:22] Production.INFO: ==22542== Releasing lock... [2025-04-07 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:48:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-07 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:49:05 [end_date_ymd] => 2025-04-07 00:49:05 [RateCDR] => 1 ) [2025-04-07 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 21:49:05' and `end` < '2025-04-07 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 00:49:18] Production.INFO: count ==637 [2025-04-07 00:49:18] Production.ERROR: pbx CDR StartTime 2025-04-06 21:49:05 - End Time 2025-04-07 00:49:05 [2025-04-07 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851294', 'tblTempUsageDetail_20' ) start [2025-04-07 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851294', 'tblTempUsageDetail_20' ) end [2025-04-07 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851294', 'tblTempVendorCDR_20' ) start [2025-04-07 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851294', 'tblTempVendorCDR_20' ) end [2025-04-07 00:49:18] Production.INFO: ProcessCDR(1,14851294,1,1,2) [2025-04-07 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851294', 'tblTempUsageDetail_20' ) start [2025-04-07 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851294', 'tblTempUsageDetail_20' ) end [2025-04-07 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:49:21] Production.INFO: ==22617== Releasing lock... [2025-04-07 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:49:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-07 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:50:06 [end_date_ymd] => 2025-04-07 00:50:06 [RateCDR] => 1 ) [2025-04-07 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 21:50:06' and `end` < '2025-04-07 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 00:50:19] Production.INFO: count ==643 [2025-04-07 00:50:19] Production.ERROR: pbx CDR StartTime 2025-04-06 21:50:06 - End Time 2025-04-07 00:50:06 [2025-04-07 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851300', 'tblTempUsageDetail_20' ) start [2025-04-07 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851300', 'tblTempUsageDetail_20' ) end [2025-04-07 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851300', 'tblTempVendorCDR_20' ) start [2025-04-07 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851300', 'tblTempVendorCDR_20' ) end [2025-04-07 00:50:19] Production.INFO: ProcessCDR(1,14851300,1,1,2) [2025-04-07 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851300', 'tblTempUsageDetail_20' ) start [2025-04-07 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851300', 'tblTempUsageDetail_20' ) end [2025-04-07 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:50:22] Production.INFO: ==22698== Releasing lock... [2025-04-07 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:50:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-07 00:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:51:04 [end_date_ymd] => 2025-04-07 00:51:04 [RateCDR] => 1 ) [2025-04-07 00:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 21:51:04' and `end` < '2025-04-07 00:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 00:51:17] Production.INFO: count ==656 [2025-04-07 00:51:17] Production.ERROR: pbx CDR StartTime 2025-04-06 21:51:04 - End Time 2025-04-07 00:51:04 [2025-04-07 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851305', 'tblTempUsageDetail_20' ) start [2025-04-07 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851305', 'tblTempUsageDetail_20' ) end [2025-04-07 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851305', 'tblTempVendorCDR_20' ) start [2025-04-07 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851305', 'tblTempVendorCDR_20' ) end [2025-04-07 00:51:17] Production.INFO: ProcessCDR(1,14851305,1,1,2) [2025-04-07 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851305', 'tblTempUsageDetail_20' ) start [2025-04-07 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851305', 'tblTempUsageDetail_20' ) end [2025-04-07 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:51:21] Production.INFO: ==22773== Releasing lock... [2025-04-07 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:51:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-07 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:52:05 [end_date_ymd] => 2025-04-07 00:52:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 21:52:05' and `end` < '2025-04-07 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-04-07 00:52:18] Production.INFO: count ==655 [2025-04-07 00:52:19] Production.ERROR: pbx CDR StartTime 2025-04-06 21:52:05 - End Time 2025-04-07 00:52:05 [2025-04-07 00:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851310', 'tblTempUsageDetail_20' ) start [2025-04-07 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851310', 'tblTempUsageDetail_20' ) end [2025-04-07 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851310', 'tblTempVendorCDR_20' ) start [2025-04-07 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851310', 'tblTempVendorCDR_20' ) end [2025-04-07 00:52:19] Production.INFO: ProcessCDR(1,14851310,1,1,2) [2025-04-07 00:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851310', 'tblTempUsageDetail_20' ) start [2025-04-07 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851310', 'tblTempUsageDetail_20' ) end [2025-04-07 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:52:22] Production.INFO: ==22852== Releasing lock... [2025-04-07 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:52:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-07 00:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:53:06 [end_date_ymd] => 2025-04-07 00:53:06 [RateCDR] => 1 ) [2025-04-07 00:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 21:53:06' and `end` < '2025-04-07 00: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-04-07 00:53:18] Production.INFO: count ==654 [2025-04-07 00:53:19] Production.ERROR: pbx CDR StartTime 2025-04-06 21:53:06 - End Time 2025-04-07 00:53:06 [2025-04-07 00:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851315', 'tblTempUsageDetail_20' ) start [2025-04-07 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851315', 'tblTempUsageDetail_20' ) end [2025-04-07 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851315', 'tblTempVendorCDR_20' ) start [2025-04-07 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851315', 'tblTempVendorCDR_20' ) end [2025-04-07 00:53:19] Production.INFO: ProcessCDR(1,14851315,1,1,2) [2025-04-07 00:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851315', 'tblTempUsageDetail_20' ) start [2025-04-07 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851315', 'tblTempUsageDetail_20' ) end [2025-04-07 00:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:53:22] Production.INFO: ==22926== Releasing lock... [2025-04-07 00:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:53:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-07 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:54:05 [end_date_ymd] => 2025-04-07 00:54:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 21:54:05' and `end` < '2025-04-07 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-04-07 00:54:18] Production.INFO: count ==647 [2025-04-07 00:54:18] Production.ERROR: pbx CDR StartTime 2025-04-06 21:54:05 - End Time 2025-04-07 00:54:05 [2025-04-07 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851320', 'tblTempUsageDetail_20' ) start [2025-04-07 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851320', 'tblTempUsageDetail_20' ) end [2025-04-07 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851320', 'tblTempVendorCDR_20' ) start [2025-04-07 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851320', 'tblTempVendorCDR_20' ) end [2025-04-07 00:54:18] Production.INFO: ProcessCDR(1,14851320,1,1,2) [2025-04-07 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851320', 'tblTempUsageDetail_20' ) start [2025-04-07 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851320', 'tblTempUsageDetail_20' ) end [2025-04-07 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:54:22] Production.INFO: ==23003== Releasing lock... [2025-04-07 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:54:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-07 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:55:05 [end_date_ymd] => 2025-04-07 00:55:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 21:55:05' and `end` < '2025-04-07 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-04-07 00:55:18] Production.INFO: count ==640 [2025-04-07 00:55:18] Production.ERROR: pbx CDR StartTime 2025-04-06 21:55:05 - End Time 2025-04-07 00:55:05 [2025-04-07 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851325', 'tblTempUsageDetail_20' ) start [2025-04-07 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851325', 'tblTempUsageDetail_20' ) end [2025-04-07 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851325', 'tblTempVendorCDR_20' ) start [2025-04-07 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851325', 'tblTempVendorCDR_20' ) end [2025-04-07 00:55:19] Production.INFO: ProcessCDR(1,14851325,1,1,2) [2025-04-07 00:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851325', 'tblTempUsageDetail_20' ) start [2025-04-07 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851325', 'tblTempUsageDetail_20' ) end [2025-04-07 00:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:55:22] Production.INFO: ==23111== Releasing lock... [2025-04-07 00:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:55:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-07 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:56:05 [end_date_ymd] => 2025-04-07 00:56:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 21:56:05' and `end` < '2025-04-07 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-04-07 00:56:18] Production.INFO: count ==629 [2025-04-07 00:56:18] Production.ERROR: pbx CDR StartTime 2025-04-06 21:56:05 - End Time 2025-04-07 00:56:05 [2025-04-07 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851330', 'tblTempUsageDetail_20' ) start [2025-04-07 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851330', 'tblTempUsageDetail_20' ) end [2025-04-07 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851330', 'tblTempVendorCDR_20' ) start [2025-04-07 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851330', 'tblTempVendorCDR_20' ) end [2025-04-07 00:56:18] Production.INFO: ProcessCDR(1,14851330,1,1,2) [2025-04-07 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851330', 'tblTempUsageDetail_20' ) start [2025-04-07 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851330', 'tblTempUsageDetail_20' ) end [2025-04-07 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:56:21] Production.INFO: ==23184== Releasing lock... [2025-04-07 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:56:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-07 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:57:05 [end_date_ymd] => 2025-04-07 00:57:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 21:57:05' and `end` < '2025-04-07 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-04-07 00:57:18] Production.INFO: count ==613 [2025-04-07 00:57:18] Production.ERROR: pbx CDR StartTime 2025-04-06 21:57:05 - End Time 2025-04-07 00:57:05 [2025-04-07 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851335', 'tblTempUsageDetail_20' ) start [2025-04-07 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851335', 'tblTempUsageDetail_20' ) end [2025-04-07 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851335', 'tblTempVendorCDR_20' ) start [2025-04-07 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851335', 'tblTempVendorCDR_20' ) end [2025-04-07 00:57:18] Production.INFO: ProcessCDR(1,14851335,1,1,2) [2025-04-07 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851335', 'tblTempUsageDetail_20' ) start [2025-04-07 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851335', 'tblTempUsageDetail_20' ) end [2025-04-07 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:57:22] Production.INFO: ==23260== Releasing lock... [2025-04-07 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:57:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-07 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:58:05 [end_date_ymd] => 2025-04-07 00:58:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 21:58:05' and `end` < '2025-04-07 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-04-07 00:58:18] Production.INFO: count ==610 [2025-04-07 00:58:18] Production.ERROR: pbx CDR StartTime 2025-04-06 21:58:05 - End Time 2025-04-07 00:58:05 [2025-04-07 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851340', 'tblTempUsageDetail_20' ) start [2025-04-07 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851340', 'tblTempUsageDetail_20' ) end [2025-04-07 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851340', 'tblTempVendorCDR_20' ) start [2025-04-07 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851340', 'tblTempVendorCDR_20' ) end [2025-04-07 00:58:18] Production.INFO: ProcessCDR(1,14851340,1,1,2) [2025-04-07 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851340', 'tblTempUsageDetail_20' ) start [2025-04-07 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851340', 'tblTempUsageDetail_20' ) end [2025-04-07 00:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:58:22] Production.INFO: ==23332== Releasing lock... [2025-04-07 00:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:58:22] Production.INFO: 33 MB #Memory Used# [2025-04-07 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 21:59:05 [end_date_ymd] => 2025-04-07 00:59:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 21:59:05' and `end` < '2025-04-07 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-04-07 00:59:18] Production.INFO: count ==592 [2025-04-07 00:59:18] Production.ERROR: pbx CDR StartTime 2025-04-06 21:59:05 - End Time 2025-04-07 00:59:05 [2025-04-07 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851345', 'tblTempUsageDetail_20' ) start [2025-04-07 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851345', 'tblTempUsageDetail_20' ) end [2025-04-07 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851345', 'tblTempVendorCDR_20' ) start [2025-04-07 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851345', 'tblTempVendorCDR_20' ) end [2025-04-07 00:59:18] Production.INFO: ProcessCDR(1,14851345,1,1,2) [2025-04-07 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 00:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851345', 'tblTempUsageDetail_20' ) start [2025-04-07 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851345', 'tblTempUsageDetail_20' ) end [2025-04-07 00:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 00:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 00:59:22] Production.INFO: ==23404== Releasing lock... [2025-04-07 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 00:59:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:00:06 [end_date_ymd] => 2025-04-07 01:00:06 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:00:06' and `end` < '2025-04-07 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-04-07 01:00:19] Production.INFO: count ==596 [2025-04-07 01:00:19] Production.ERROR: pbx CDR StartTime 2025-04-06 22:00:06 - End Time 2025-04-07 01:00:06 [2025-04-07 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851351', 'tblTempUsageDetail_20' ) start [2025-04-07 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851351', 'tblTempUsageDetail_20' ) end [2025-04-07 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851351', 'tblTempVendorCDR_20' ) start [2025-04-07 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851351', 'tblTempVendorCDR_20' ) end [2025-04-07 01:00:19] Production.INFO: ProcessCDR(1,14851351,1,1,2) [2025-04-07 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851351', 'tblTempUsageDetail_20' ) start [2025-04-07 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851351', 'tblTempUsageDetail_20' ) end [2025-04-07 01:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:00:23] Production.INFO: ==23477== Releasing lock... [2025-04-07 01:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:00:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:01:05 [end_date_ymd] => 2025-04-07 01:01:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:01:05' and `end` < '2025-04-07 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-04-07 01:01:18] Production.INFO: count ==613 [2025-04-07 01:01:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:01:05 - End Time 2025-04-07 01:01:05 [2025-04-07 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851356', 'tblTempUsageDetail_20' ) start [2025-04-07 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851356', 'tblTempUsageDetail_20' ) end [2025-04-07 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851356', 'tblTempVendorCDR_20' ) start [2025-04-07 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851356', 'tblTempVendorCDR_20' ) end [2025-04-07 01:01:18] Production.INFO: ProcessCDR(1,14851356,1,1,2) [2025-04-07 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851356', 'tblTempUsageDetail_20' ) start [2025-04-07 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851356', 'tblTempUsageDetail_20' ) end [2025-04-07 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:01:21] Production.INFO: ==23563== Releasing lock... [2025-04-07 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:01:21] Production.INFO: 33 MB #Memory Used# [2025-04-07 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:02:05 [end_date_ymd] => 2025-04-07 01:02:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:02:05' and `end` < '2025-04-07 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-04-07 01:02:18] Production.INFO: count ==612 [2025-04-07 01:02:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:02:05 - End Time 2025-04-07 01:02:05 [2025-04-07 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851361', 'tblTempUsageDetail_20' ) start [2025-04-07 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851361', 'tblTempUsageDetail_20' ) end [2025-04-07 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851361', 'tblTempVendorCDR_20' ) start [2025-04-07 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851361', 'tblTempVendorCDR_20' ) end [2025-04-07 01:02:18] Production.INFO: ProcessCDR(1,14851361,1,1,2) [2025-04-07 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851361', 'tblTempUsageDetail_20' ) start [2025-04-07 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851361', 'tblTempUsageDetail_20' ) end [2025-04-07 01:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:02:22] Production.INFO: ==23635== Releasing lock... [2025-04-07 01:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:02:22] Production.INFO: 33 MB #Memory Used# [2025-04-07 01:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:03:06 [end_date_ymd] => 2025-04-07 01:03:06 [RateCDR] => 1 ) [2025-04-07 01: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-04-06 22:03:06' and `end` < '2025-04-07 01: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-04-07 01:03:19] Production.INFO: count ==614 [2025-04-07 01:03:19] Production.ERROR: pbx CDR StartTime 2025-04-06 22:03:06 - End Time 2025-04-07 01:03:06 [2025-04-07 01:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851366', 'tblTempUsageDetail_20' ) start [2025-04-07 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851366', 'tblTempUsageDetail_20' ) end [2025-04-07 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851366', 'tblTempVendorCDR_20' ) start [2025-04-07 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851366', 'tblTempVendorCDR_20' ) end [2025-04-07 01:03:19] Production.INFO: ProcessCDR(1,14851366,1,1,2) [2025-04-07 01:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851366', 'tblTempUsageDetail_20' ) start [2025-04-07 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851366', 'tblTempUsageDetail_20' ) end [2025-04-07 01:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:03:22] Production.INFO: ==23706== Releasing lock... [2025-04-07 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:03:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-07 01:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:04:04 [end_date_ymd] => 2025-04-07 01:04:04 [RateCDR] => 1 ) [2025-04-07 01:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 22:04:04' and `end` < '2025-04-07 01:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 01:04:17] Production.INFO: count ==610 [2025-04-07 01:04:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:04:04 - End Time 2025-04-07 01:04:04 [2025-04-07 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851371', 'tblTempUsageDetail_20' ) start [2025-04-07 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851371', 'tblTempUsageDetail_20' ) end [2025-04-07 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851371', 'tblTempVendorCDR_20' ) start [2025-04-07 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851371', 'tblTempVendorCDR_20' ) end [2025-04-07 01:04:18] Production.INFO: ProcessCDR(1,14851371,1,1,2) [2025-04-07 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851371', 'tblTempUsageDetail_20' ) start [2025-04-07 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851371', 'tblTempUsageDetail_20' ) end [2025-04-07 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:04:21] Production.INFO: ==23779== Releasing lock... [2025-04-07 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:04:21] Production.INFO: 33 MB #Memory Used# [2025-04-07 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:05:05 [end_date_ymd] => 2025-04-07 01:05:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:05:05' and `end` < '2025-04-07 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-04-07 01:05:18] Production.INFO: count ==610 [2025-04-07 01:05:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:05:05 - End Time 2025-04-07 01:05:05 [2025-04-07 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851376', 'tblTempUsageDetail_20' ) start [2025-04-07 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851376', 'tblTempUsageDetail_20' ) end [2025-04-07 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851376', 'tblTempVendorCDR_20' ) start [2025-04-07 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851376', 'tblTempVendorCDR_20' ) end [2025-04-07 01:05:18] Production.INFO: ProcessCDR(1,14851376,1,1,2) [2025-04-07 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851376', 'tblTempUsageDetail_20' ) start [2025-04-07 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851376', 'tblTempUsageDetail_20' ) end [2025-04-07 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:05:22] Production.INFO: ==23853== Releasing lock... [2025-04-07 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:05:22] Production.INFO: 33 MB #Memory Used# [2025-04-07 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:06:05 [end_date_ymd] => 2025-04-07 01:06:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:06:05' and `end` < '2025-04-07 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-04-07 01:06:17] Production.INFO: count ==609 [2025-04-07 01:06:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:06:05 - End Time 2025-04-07 01:06:05 [2025-04-07 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851381', 'tblTempUsageDetail_20' ) start [2025-04-07 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851381', 'tblTempUsageDetail_20' ) end [2025-04-07 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851381', 'tblTempVendorCDR_20' ) start [2025-04-07 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851381', 'tblTempVendorCDR_20' ) end [2025-04-07 01:06:18] Production.INFO: ProcessCDR(1,14851381,1,1,2) [2025-04-07 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851381', 'tblTempUsageDetail_20' ) start [2025-04-07 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851381', 'tblTempUsageDetail_20' ) end [2025-04-07 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:06:21] Production.INFO: ==23926== Releasing lock... [2025-04-07 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:06:21] Production.INFO: 33 MB #Memory Used# [2025-04-07 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:07:05 [end_date_ymd] => 2025-04-07 01:07:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:07:05' and `end` < '2025-04-07 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-04-07 01:07:17] Production.INFO: count ==608 [2025-04-07 01:07:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:07:05 - End Time 2025-04-07 01:07:05 [2025-04-07 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851386', 'tblTempUsageDetail_20' ) start [2025-04-07 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851386', 'tblTempUsageDetail_20' ) end [2025-04-07 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851386', 'tblTempVendorCDR_20' ) start [2025-04-07 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851386', 'tblTempVendorCDR_20' ) end [2025-04-07 01:07:18] Production.INFO: ProcessCDR(1,14851386,1,1,2) [2025-04-07 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851386', 'tblTempUsageDetail_20' ) start [2025-04-07 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851386', 'tblTempUsageDetail_20' ) end [2025-04-07 01:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:07:22] Production.INFO: ==23996== Releasing lock... [2025-04-07 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:07:22] Production.INFO: 33 MB #Memory Used# [2025-04-07 01:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:08:06 [end_date_ymd] => 2025-04-07 01:08:06 [RateCDR] => 1 ) [2025-04-07 01: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-04-06 22:08:06' and `end` < '2025-04-07 01: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-04-07 01:08:18] Production.INFO: count ==608 [2025-04-07 01:08:19] Production.ERROR: pbx CDR StartTime 2025-04-06 22:08:06 - End Time 2025-04-07 01:08:06 [2025-04-07 01:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851391', 'tblTempUsageDetail_20' ) start [2025-04-07 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851391', 'tblTempUsageDetail_20' ) end [2025-04-07 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851391', 'tblTempVendorCDR_20' ) start [2025-04-07 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851391', 'tblTempVendorCDR_20' ) end [2025-04-07 01:08:19] Production.INFO: ProcessCDR(1,14851391,1,1,2) [2025-04-07 01:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851391', 'tblTempUsageDetail_20' ) start [2025-04-07 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851391', 'tblTempUsageDetail_20' ) end [2025-04-07 01:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:08:22] Production.INFO: ==24068== Releasing lock... [2025-04-07 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:08:22] Production.INFO: 33 MB #Memory Used# [2025-04-07 01:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:09:06 [end_date_ymd] => 2025-04-07 01:09:06 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:09:06' and `end` < '2025-04-07 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-04-07 01:09:19] Production.INFO: count ==608 [2025-04-07 01:09:19] Production.ERROR: pbx CDR StartTime 2025-04-06 22:09:06 - End Time 2025-04-07 01:09:06 [2025-04-07 01:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851396', 'tblTempUsageDetail_20' ) start [2025-04-07 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851396', 'tblTempUsageDetail_20' ) end [2025-04-07 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851396', 'tblTempVendorCDR_20' ) start [2025-04-07 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851396', 'tblTempVendorCDR_20' ) end [2025-04-07 01:09:19] Production.INFO: ProcessCDR(1,14851396,1,1,2) [2025-04-07 01:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851396', 'tblTempUsageDetail_20' ) start [2025-04-07 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851396', 'tblTempUsageDetail_20' ) end [2025-04-07 01:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:09:22] Production.INFO: ==24138== Releasing lock... [2025-04-07 01:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:09:22] Production.INFO: 33 MB #Memory Used# [2025-04-07 01:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:10:07 [end_date_ymd] => 2025-04-07 01:10:07 [RateCDR] => 1 ) [2025-04-07 01:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 22:10:07' and `end` < '2025-04-07 01:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 01:10:19] Production.INFO: count ==605 [2025-04-07 01:10:20] Production.ERROR: pbx CDR StartTime 2025-04-06 22:10:07 - End Time 2025-04-07 01:10:07 [2025-04-07 01:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851402', 'tblTempUsageDetail_20' ) start [2025-04-07 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851402', 'tblTempUsageDetail_20' ) end [2025-04-07 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851402', 'tblTempVendorCDR_20' ) start [2025-04-07 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851402', 'tblTempVendorCDR_20' ) end [2025-04-07 01:10:20] Production.INFO: ProcessCDR(1,14851402,1,1,2) [2025-04-07 01:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851402', 'tblTempUsageDetail_20' ) start [2025-04-07 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851402', 'tblTempUsageDetail_20' ) end [2025-04-07 01:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:10:23] Production.INFO: ==24250== Releasing lock... [2025-04-07 01:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:10:23] Production.INFO: 33 MB #Memory Used# [2025-04-07 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:11:05 [end_date_ymd] => 2025-04-07 01:11:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:11:05' and `end` < '2025-04-07 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-04-07 01:11:18] Production.INFO: count ==605 [2025-04-07 01:11:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:11:05 - End Time 2025-04-07 01:11:05 [2025-04-07 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851407', 'tblTempUsageDetail_20' ) start [2025-04-07 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851407', 'tblTempUsageDetail_20' ) end [2025-04-07 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851407', 'tblTempVendorCDR_20' ) start [2025-04-07 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851407', 'tblTempVendorCDR_20' ) end [2025-04-07 01:11:18] Production.INFO: ProcessCDR(1,14851407,1,1,2) [2025-04-07 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851407', 'tblTempUsageDetail_20' ) start [2025-04-07 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851407', 'tblTempUsageDetail_20' ) end [2025-04-07 01:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:11:22] Production.INFO: ==24326== Releasing lock... [2025-04-07 01:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:11:22] Production.INFO: 33 MB #Memory Used# [2025-04-07 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:12:05 [end_date_ymd] => 2025-04-07 01:12:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:12:05' and `end` < '2025-04-07 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-04-07 01:12:18] Production.INFO: count ==604 [2025-04-07 01:12:19] Production.ERROR: pbx CDR StartTime 2025-04-06 22:12:05 - End Time 2025-04-07 01:12:05 [2025-04-07 01:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851412', 'tblTempUsageDetail_20' ) start [2025-04-07 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851412', 'tblTempUsageDetail_20' ) end [2025-04-07 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851412', 'tblTempVendorCDR_20' ) start [2025-04-07 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851412', 'tblTempVendorCDR_20' ) end [2025-04-07 01:12:19] Production.INFO: ProcessCDR(1,14851412,1,1,2) [2025-04-07 01:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851412', 'tblTempUsageDetail_20' ) start [2025-04-07 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851412', 'tblTempUsageDetail_20' ) end [2025-04-07 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:12:22] Production.INFO: ==24399== Releasing lock... [2025-04-07 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:12:22] Production.INFO: 33 MB #Memory Used# [2025-04-07 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:13:05 [end_date_ymd] => 2025-04-07 01:13:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:13:05' and `end` < '2025-04-07 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-04-07 01:13:18] Production.INFO: count ==611 [2025-04-07 01:13:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:13:05 - End Time 2025-04-07 01:13:05 [2025-04-07 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851417', 'tblTempUsageDetail_20' ) start [2025-04-07 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851417', 'tblTempUsageDetail_20' ) end [2025-04-07 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851417', 'tblTempVendorCDR_20' ) start [2025-04-07 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851417', 'tblTempVendorCDR_20' ) end [2025-04-07 01:13:18] Production.INFO: ProcessCDR(1,14851417,1,1,2) [2025-04-07 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851417', 'tblTempUsageDetail_20' ) start [2025-04-07 01:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851417', 'tblTempUsageDetail_20' ) end [2025-04-07 01:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:13:23] Production.INFO: ==24472== Releasing lock... [2025-04-07 01:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:13:23] Production.INFO: 33 MB #Memory Used# [2025-04-07 01:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:14:06 [end_date_ymd] => 2025-04-07 01:14:06 [RateCDR] => 1 ) [2025-04-07 01: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-04-06 22:14:06' and `end` < '2025-04-07 01: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-04-07 01:14:18] Production.INFO: count ==614 [2025-04-07 01:14:19] Production.ERROR: pbx CDR StartTime 2025-04-06 22:14:06 - End Time 2025-04-07 01:14:06 [2025-04-07 01:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851422', 'tblTempUsageDetail_20' ) start [2025-04-07 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851422', 'tblTempUsageDetail_20' ) end [2025-04-07 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851422', 'tblTempVendorCDR_20' ) start [2025-04-07 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851422', 'tblTempVendorCDR_20' ) end [2025-04-07 01:14:19] Production.INFO: ProcessCDR(1,14851422,1,1,2) [2025-04-07 01:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851422', 'tblTempUsageDetail_20' ) start [2025-04-07 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851422', 'tblTempUsageDetail_20' ) end [2025-04-07 01:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:14:22] Production.INFO: ==24543== Releasing lock... [2025-04-07 01:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:14:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-07 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:15:05 [end_date_ymd] => 2025-04-07 01:15:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:15:05' and `end` < '2025-04-07 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-04-07 01:15:18] Production.INFO: count ==610 [2025-04-07 01:15:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:15:05 - End Time 2025-04-07 01:15:05 [2025-04-07 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851427', 'tblTempUsageDetail_20' ) start [2025-04-07 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851427', 'tblTempUsageDetail_20' ) end [2025-04-07 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851427', 'tblTempVendorCDR_20' ) start [2025-04-07 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851427', 'tblTempVendorCDR_20' ) end [2025-04-07 01:15:18] Production.INFO: ProcessCDR(1,14851427,1,1,2) [2025-04-07 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851427', 'tblTempUsageDetail_20' ) start [2025-04-07 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851427', 'tblTempUsageDetail_20' ) end [2025-04-07 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:15:21] Production.INFO: ==24614== Releasing lock... [2025-04-07 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:15:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:16:05 [end_date_ymd] => 2025-04-07 01:16:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:16:05' and `end` < '2025-04-07 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-04-07 01:16:18] Production.INFO: count ==608 [2025-04-07 01:16:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:16:05 - End Time 2025-04-07 01:16:05 [2025-04-07 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851432', 'tblTempUsageDetail_20' ) start [2025-04-07 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851432', 'tblTempUsageDetail_20' ) end [2025-04-07 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851432', 'tblTempVendorCDR_20' ) start [2025-04-07 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851432', 'tblTempVendorCDR_20' ) end [2025-04-07 01:16:18] Production.INFO: ProcessCDR(1,14851432,1,1,2) [2025-04-07 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851432', 'tblTempUsageDetail_20' ) start [2025-04-07 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851432', 'tblTempUsageDetail_20' ) end [2025-04-07 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:16:22] Production.INFO: ==24692== Releasing lock... [2025-04-07 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:16:22] Production.INFO: 33 MB #Memory Used# [2025-04-07 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:17:05 [end_date_ymd] => 2025-04-07 01:17:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:17:05' and `end` < '2025-04-07 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-04-07 01:17:18] Production.INFO: count ==608 [2025-04-07 01:17:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:17:05 - End Time 2025-04-07 01:17:05 [2025-04-07 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851437', 'tblTempUsageDetail_20' ) start [2025-04-07 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851437', 'tblTempUsageDetail_20' ) end [2025-04-07 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851437', 'tblTempVendorCDR_20' ) start [2025-04-07 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851437', 'tblTempVendorCDR_20' ) end [2025-04-07 01:17:18] Production.INFO: ProcessCDR(1,14851437,1,1,2) [2025-04-07 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851437', 'tblTempUsageDetail_20' ) start [2025-04-07 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851437', 'tblTempUsageDetail_20' ) end [2025-04-07 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:17:21] Production.INFO: ==24763== Releasing lock... [2025-04-07 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:17:21] Production.INFO: 33 MB #Memory Used# [2025-04-07 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:18:05 [end_date_ymd] => 2025-04-07 01:18:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:18:05' and `end` < '2025-04-07 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-04-07 01:18:18] Production.INFO: count ==609 [2025-04-07 01:18:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:18:05 - End Time 2025-04-07 01:18:05 [2025-04-07 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851442', 'tblTempUsageDetail_20' ) start [2025-04-07 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851442', 'tblTempUsageDetail_20' ) end [2025-04-07 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851442', 'tblTempVendorCDR_20' ) start [2025-04-07 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851442', 'tblTempVendorCDR_20' ) end [2025-04-07 01:18:18] Production.INFO: ProcessCDR(1,14851442,1,1,2) [2025-04-07 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851442', 'tblTempUsageDetail_20' ) start [2025-04-07 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851442', 'tblTempUsageDetail_20' ) end [2025-04-07 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:18:21] Production.INFO: ==24846== Releasing lock... [2025-04-07 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:18:21] Production.INFO: 33 MB #Memory Used# [2025-04-07 01:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:19:06 [end_date_ymd] => 2025-04-07 01:19:06 [RateCDR] => 1 ) [2025-04-07 01: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-04-06 22:19:06' and `end` < '2025-04-07 01: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-04-07 01:19:19] Production.INFO: count ==610 [2025-04-07 01:19:19] Production.ERROR: pbx CDR StartTime 2025-04-06 22:19:06 - End Time 2025-04-07 01:19:06 [2025-04-07 01:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851447', 'tblTempUsageDetail_20' ) start [2025-04-07 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851447', 'tblTempUsageDetail_20' ) end [2025-04-07 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851447', 'tblTempVendorCDR_20' ) start [2025-04-07 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851447', 'tblTempVendorCDR_20' ) end [2025-04-07 01:19:19] Production.INFO: ProcessCDR(1,14851447,1,1,2) [2025-04-07 01:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851447', 'tblTempUsageDetail_20' ) start [2025-04-07 01:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851447', 'tblTempUsageDetail_20' ) end [2025-04-07 01:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:19:24] Production.INFO: ==24926== Releasing lock... [2025-04-07 01:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:19:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:20:06 [end_date_ymd] => 2025-04-07 01:20:06 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:20:06' and `end` < '2025-04-07 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-04-07 01:20:18] Production.INFO: count ==609 [2025-04-07 01:20:19] Production.ERROR: pbx CDR StartTime 2025-04-06 22:20:06 - End Time 2025-04-07 01:20:06 [2025-04-07 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851453', 'tblTempUsageDetail_20' ) start [2025-04-07 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851453', 'tblTempUsageDetail_20' ) end [2025-04-07 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851453', 'tblTempVendorCDR_20' ) start [2025-04-07 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851453', 'tblTempVendorCDR_20' ) end [2025-04-07 01:20:19] Production.INFO: ProcessCDR(1,14851453,1,1,2) [2025-04-07 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851453', 'tblTempUsageDetail_20' ) start [2025-04-07 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851453', 'tblTempUsageDetail_20' ) end [2025-04-07 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:20:22] Production.INFO: ==25004== Releasing lock... [2025-04-07 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:20:22] Production.INFO: 33 MB #Memory Used# [2025-04-07 01:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:21:06 [end_date_ymd] => 2025-04-07 01:21:06 [RateCDR] => 1 ) [2025-04-07 01: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-04-06 22:21:06' and `end` < '2025-04-07 01: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-04-07 01:21:18] Production.INFO: count ==609 [2025-04-07 01:21:19] Production.ERROR: pbx CDR StartTime 2025-04-06 22:21:06 - End Time 2025-04-07 01:21:06 [2025-04-07 01:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851458', 'tblTempUsageDetail_20' ) start [2025-04-07 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851458', 'tblTempUsageDetail_20' ) end [2025-04-07 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851458', 'tblTempVendorCDR_20' ) start [2025-04-07 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851458', 'tblTempVendorCDR_20' ) end [2025-04-07 01:21:19] Production.INFO: ProcessCDR(1,14851458,1,1,2) [2025-04-07 01:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851458', 'tblTempUsageDetail_20' ) start [2025-04-07 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851458', 'tblTempUsageDetail_20' ) end [2025-04-07 01:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:21:22] Production.INFO: ==25083== Releasing lock... [2025-04-07 01:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:21:22] Production.INFO: 33 MB #Memory Used# [2025-04-07 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:22:05 [end_date_ymd] => 2025-04-07 01:22:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:22:05' and `end` < '2025-04-07 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-04-07 01:22:18] Production.INFO: count ==608 [2025-04-07 01:22:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:22:05 - End Time 2025-04-07 01:22:05 [2025-04-07 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851463', 'tblTempUsageDetail_20' ) start [2025-04-07 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851463', 'tblTempUsageDetail_20' ) end [2025-04-07 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851463', 'tblTempVendorCDR_20' ) start [2025-04-07 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851463', 'tblTempVendorCDR_20' ) end [2025-04-07 01:22:18] Production.INFO: ProcessCDR(1,14851463,1,1,2) [2025-04-07 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851463', 'tblTempUsageDetail_20' ) start [2025-04-07 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851463', 'tblTempUsageDetail_20' ) end [2025-04-07 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:22:22] Production.INFO: ==25152== Releasing lock... [2025-04-07 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:22:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-07 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:23:05 [end_date_ymd] => 2025-04-07 01:23:05 [RateCDR] => 1 ) [2025-04-07 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 22:23:05' and `end` < '2025-04-07 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 01:23:18] Production.INFO: count ==607 [2025-04-07 01:23:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:23:05 - End Time 2025-04-07 01:23:05 [2025-04-07 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851468', 'tblTempUsageDetail_20' ) start [2025-04-07 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851468', 'tblTempUsageDetail_20' ) end [2025-04-07 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851468', 'tblTempVendorCDR_20' ) start [2025-04-07 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851468', 'tblTempVendorCDR_20' ) end [2025-04-07 01:23:18] Production.INFO: ProcessCDR(1,14851468,1,1,2) [2025-04-07 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851468', 'tblTempUsageDetail_20' ) start [2025-04-07 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851468', 'tblTempUsageDetail_20' ) end [2025-04-07 01:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:23:22] Production.INFO: ==25228== Releasing lock... [2025-04-07 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:23:22] Production.INFO: 33 MB #Memory Used# [2025-04-07 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:24:05 [end_date_ymd] => 2025-04-07 01:24:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:24:05' and `end` < '2025-04-07 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-04-07 01:24:18] Production.INFO: count ==605 [2025-04-07 01:24:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:24:05 - End Time 2025-04-07 01:24:05 [2025-04-07 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851472', 'tblTempUsageDetail_20' ) start [2025-04-07 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851472', 'tblTempUsageDetail_20' ) end [2025-04-07 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851472', 'tblTempVendorCDR_20' ) start [2025-04-07 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851472', 'tblTempVendorCDR_20' ) end [2025-04-07 01:24:18] Production.INFO: ProcessCDR(1,14851472,1,1,2) [2025-04-07 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851472', 'tblTempUsageDetail_20' ) start [2025-04-07 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851472', 'tblTempUsageDetail_20' ) end [2025-04-07 01:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:24:22] Production.INFO: ==25304== Releasing lock... [2025-04-07 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:24:22] Production.INFO: 33 MB #Memory Used# [2025-04-07 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:25:05 [end_date_ymd] => 2025-04-07 01:25:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:25:05' and `end` < '2025-04-07 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-04-07 01:25:18] Production.INFO: count ==597 [2025-04-07 01:25:19] Production.ERROR: pbx CDR StartTime 2025-04-06 22:25:05 - End Time 2025-04-07 01:25:05 [2025-04-07 01:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851478', 'tblTempUsageDetail_20' ) start [2025-04-07 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851478', 'tblTempUsageDetail_20' ) end [2025-04-07 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851478', 'tblTempVendorCDR_20' ) start [2025-04-07 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851478', 'tblTempVendorCDR_20' ) end [2025-04-07 01:25:19] Production.INFO: ProcessCDR(1,14851478,1,1,2) [2025-04-07 01:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851478', 'tblTempUsageDetail_20' ) start [2025-04-07 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851478', 'tblTempUsageDetail_20' ) end [2025-04-07 01:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:25:22] Production.INFO: ==25415== Releasing lock... [2025-04-07 01:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:25:22] Production.INFO: 33 MB #Memory Used# [2025-04-07 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:26:05 [end_date_ymd] => 2025-04-07 01:26:05 [RateCDR] => 1 ) [2025-04-07 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 22:26:05' and `end` < '2025-04-07 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 01:26:18] Production.INFO: count ==596 [2025-04-07 01:26:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:26:05 - End Time 2025-04-07 01:26:05 [2025-04-07 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851483', 'tblTempUsageDetail_20' ) start [2025-04-07 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851483', 'tblTempUsageDetail_20' ) end [2025-04-07 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851483', 'tblTempVendorCDR_20' ) start [2025-04-07 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851483', 'tblTempVendorCDR_20' ) end [2025-04-07 01:26:18] Production.INFO: ProcessCDR(1,14851483,1,1,2) [2025-04-07 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851483', 'tblTempUsageDetail_20' ) start [2025-04-07 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851483', 'tblTempUsageDetail_20' ) end [2025-04-07 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:26:21] Production.INFO: ==25490== Releasing lock... [2025-04-07 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:26:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-07 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:27:05 [end_date_ymd] => 2025-04-07 01:27:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:27:05' and `end` < '2025-04-07 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-04-07 01:27:17] Production.INFO: count ==598 [2025-04-07 01:27:17] Production.ERROR: pbx CDR StartTime 2025-04-06 22:27:05 - End Time 2025-04-07 01:27:05 [2025-04-07 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851488', 'tblTempUsageDetail_20' ) start [2025-04-07 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851488', 'tblTempUsageDetail_20' ) end [2025-04-07 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851488', 'tblTempVendorCDR_20' ) start [2025-04-07 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851488', 'tblTempVendorCDR_20' ) end [2025-04-07 01:27:18] Production.INFO: ProcessCDR(1,14851488,1,1,2) [2025-04-07 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851488', 'tblTempUsageDetail_20' ) start [2025-04-07 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851488', 'tblTempUsageDetail_20' ) end [2025-04-07 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:27:21] Production.INFO: ==25563== Releasing lock... [2025-04-07 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:27:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 01:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:28:06 [end_date_ymd] => 2025-04-07 01:28:06 [RateCDR] => 1 ) [2025-04-07 01: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-04-06 22:28:06' and `end` < '2025-04-07 01: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-04-07 01:28:18] Production.INFO: count ==594 [2025-04-07 01:28:19] Production.ERROR: pbx CDR StartTime 2025-04-06 22:28:06 - End Time 2025-04-07 01:28:06 [2025-04-07 01:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851493', 'tblTempUsageDetail_20' ) start [2025-04-07 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851493', 'tblTempUsageDetail_20' ) end [2025-04-07 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851493', 'tblTempVendorCDR_20' ) start [2025-04-07 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851493', 'tblTempVendorCDR_20' ) end [2025-04-07 01:28:19] Production.INFO: ProcessCDR(1,14851493,1,1,2) [2025-04-07 01:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851493', 'tblTempUsageDetail_20' ) start [2025-04-07 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851493', 'tblTempUsageDetail_20' ) end [2025-04-07 01:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:28:22] Production.INFO: ==25638== Releasing lock... [2025-04-07 01:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:28:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-07 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:29:05 [end_date_ymd] => 2025-04-07 01:29:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:29:05' and `end` < '2025-04-07 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-04-07 01:29:18] Production.INFO: count ==598 [2025-04-07 01:29:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:29:05 - End Time 2025-04-07 01:29:05 [2025-04-07 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851498', 'tblTempUsageDetail_20' ) start [2025-04-07 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851498', 'tblTempUsageDetail_20' ) end [2025-04-07 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851498', 'tblTempVendorCDR_20' ) start [2025-04-07 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851498', 'tblTempVendorCDR_20' ) end [2025-04-07 01:29:18] Production.INFO: ProcessCDR(1,14851498,1,1,2) [2025-04-07 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851498', 'tblTempUsageDetail_20' ) start [2025-04-07 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851498', 'tblTempUsageDetail_20' ) end [2025-04-07 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:29:21] Production.INFO: ==25712== Releasing lock... [2025-04-07 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:29:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:30:06 [end_date_ymd] => 2025-04-07 01:30:06 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:30:06' and `end` < '2025-04-07 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-04-07 01:30:19] Production.INFO: count ==596 [2025-04-07 01:30:19] Production.ERROR: pbx CDR StartTime 2025-04-06 22:30:06 - End Time 2025-04-07 01:30:06 [2025-04-07 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851504', 'tblTempUsageDetail_20' ) start [2025-04-07 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851504', 'tblTempUsageDetail_20' ) end [2025-04-07 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851504', 'tblTempVendorCDR_20' ) start [2025-04-07 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851504', 'tblTempVendorCDR_20' ) end [2025-04-07 01:30:19] Production.INFO: ProcessCDR(1,14851504,1,1,2) [2025-04-07 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851504', 'tblTempUsageDetail_20' ) start [2025-04-07 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851504', 'tblTempUsageDetail_20' ) end [2025-04-07 01:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:30:23] Production.INFO: ==25787== Releasing lock... [2025-04-07 01:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:30:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:31:05 [end_date_ymd] => 2025-04-07 01:31:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:31:05' and `end` < '2025-04-07 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-04-07 01:31:18] Production.INFO: count ==586 [2025-04-07 01:31:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:31:05 - End Time 2025-04-07 01:31:05 [2025-04-07 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851509', 'tblTempUsageDetail_20' ) start [2025-04-07 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851509', 'tblTempUsageDetail_20' ) end [2025-04-07 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851509', 'tblTempVendorCDR_20' ) start [2025-04-07 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851509', 'tblTempVendorCDR_20' ) end [2025-04-07 01:31:18] Production.INFO: ProcessCDR(1,14851509,1,1,2) [2025-04-07 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851509', 'tblTempUsageDetail_20' ) start [2025-04-07 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851509', 'tblTempUsageDetail_20' ) end [2025-04-07 01:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:31:22] Production.INFO: ==25862== Releasing lock... [2025-04-07 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:31:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 01:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:32:06 [end_date_ymd] => 2025-04-07 01:32:06 [RateCDR] => 1 ) [2025-04-07 01: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-04-06 22:32:06' and `end` < '2025-04-07 01: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-04-07 01:32:19] Production.INFO: count ==584 [2025-04-07 01:32:19] Production.ERROR: pbx CDR StartTime 2025-04-06 22:32:06 - End Time 2025-04-07 01:32:06 [2025-04-07 01:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851514', 'tblTempUsageDetail_20' ) start [2025-04-07 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851514', 'tblTempUsageDetail_20' ) end [2025-04-07 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851514', 'tblTempVendorCDR_20' ) start [2025-04-07 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851514', 'tblTempVendorCDR_20' ) end [2025-04-07 01:32:19] Production.INFO: ProcessCDR(1,14851514,1,1,2) [2025-04-07 01:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851514', 'tblTempUsageDetail_20' ) start [2025-04-07 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851514', 'tblTempUsageDetail_20' ) end [2025-04-07 01:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:32:22] Production.INFO: ==25937== Releasing lock... [2025-04-07 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:32:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 01:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:33:04 [end_date_ymd] => 2025-04-07 01:33:04 [RateCDR] => 1 ) [2025-04-07 01:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 22:33:04' and `end` < '2025-04-07 01:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 01:33:17] Production.INFO: count ==580 [2025-04-07 01:33:17] Production.ERROR: pbx CDR StartTime 2025-04-06 22:33:04 - End Time 2025-04-07 01:33:04 [2025-04-07 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851519', 'tblTempUsageDetail_20' ) start [2025-04-07 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851519', 'tblTempUsageDetail_20' ) end [2025-04-07 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851519', 'tblTempVendorCDR_20' ) start [2025-04-07 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851519', 'tblTempVendorCDR_20' ) end [2025-04-07 01:33:17] Production.INFO: ProcessCDR(1,14851519,1,1,2) [2025-04-07 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851519', 'tblTempUsageDetail_20' ) start [2025-04-07 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851519', 'tblTempUsageDetail_20' ) end [2025-04-07 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:33:21] Production.INFO: ==26008== Releasing lock... [2025-04-07 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:33:21] Production.INFO: 33 MB #Memory Used# [2025-04-07 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:34:05 [end_date_ymd] => 2025-04-07 01:34:05 [RateCDR] => 1 ) [2025-04-07 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 22:34:05' and `end` < '2025-04-07 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 01:34:18] Production.INFO: count ==577 [2025-04-07 01:34:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:34:05 - End Time 2025-04-07 01:34:05 [2025-04-07 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851524', 'tblTempUsageDetail_20' ) start [2025-04-07 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851524', 'tblTempUsageDetail_20' ) end [2025-04-07 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851524', 'tblTempVendorCDR_20' ) start [2025-04-07 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851524', 'tblTempVendorCDR_20' ) end [2025-04-07 01:34:18] Production.INFO: ProcessCDR(1,14851524,1,1,2) [2025-04-07 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851524', 'tblTempUsageDetail_20' ) start [2025-04-07 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851524', 'tblTempUsageDetail_20' ) end [2025-04-07 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:34:22] Production.INFO: ==26091== Releasing lock... [2025-04-07 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:34:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-07 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:35:05 [end_date_ymd] => 2025-04-07 01:35:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:35:05' and `end` < '2025-04-07 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-04-07 01:35:17] Production.INFO: count ==572 [2025-04-07 01:35:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:35:05 - End Time 2025-04-07 01:35:05 [2025-04-07 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851529', 'tblTempUsageDetail_20' ) start [2025-04-07 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851529', 'tblTempUsageDetail_20' ) end [2025-04-07 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851529', 'tblTempVendorCDR_20' ) start [2025-04-07 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851529', 'tblTempVendorCDR_20' ) end [2025-04-07 01:35:18] Production.INFO: ProcessCDR(1,14851529,1,1,2) [2025-04-07 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851529', 'tblTempUsageDetail_20' ) start [2025-04-07 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851529', 'tblTempUsageDetail_20' ) end [2025-04-07 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:35:21] Production.INFO: ==26169== Releasing lock... [2025-04-07 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:35:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-07 01:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:36:06 [end_date_ymd] => 2025-04-07 01:36:06 [RateCDR] => 1 ) [2025-04-07 01: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-04-06 22:36:06' and `end` < '2025-04-07 01: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-04-07 01:36:18] Production.INFO: count ==569 [2025-04-07 01:36:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:36:06 - End Time 2025-04-07 01:36:06 [2025-04-07 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851534', 'tblTempUsageDetail_20' ) start [2025-04-07 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851534', 'tblTempUsageDetail_20' ) end [2025-04-07 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851534', 'tblTempVendorCDR_20' ) start [2025-04-07 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851534', 'tblTempVendorCDR_20' ) end [2025-04-07 01:36:18] Production.INFO: ProcessCDR(1,14851534,1,1,2) [2025-04-07 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851534', 'tblTempUsageDetail_20' ) start [2025-04-07 01:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851534', 'tblTempUsageDetail_20' ) end [2025-04-07 01:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:36:24] Production.INFO: ==26245== Releasing lock... [2025-04-07 01:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:36:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 01:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:37:04 [end_date_ymd] => 2025-04-07 01:37:04 [RateCDR] => 1 ) [2025-04-07 01:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 22:37:04' and `end` < '2025-04-07 01:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 01:37:17] Production.INFO: count ==568 [2025-04-07 01:37:17] Production.ERROR: pbx CDR StartTime 2025-04-06 22:37:04 - End Time 2025-04-07 01:37:04 [2025-04-07 01:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851539', 'tblTempUsageDetail_20' ) start [2025-04-07 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851539', 'tblTempUsageDetail_20' ) end [2025-04-07 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851539', 'tblTempVendorCDR_20' ) start [2025-04-07 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851539', 'tblTempVendorCDR_20' ) end [2025-04-07 01:37:18] Production.INFO: ProcessCDR(1,14851539,1,1,2) [2025-04-07 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851539', 'tblTempUsageDetail_20' ) start [2025-04-07 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851539', 'tblTempUsageDetail_20' ) end [2025-04-07 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:37:21] Production.INFO: ==26316== Releasing lock... [2025-04-07 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:37:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:38:05 [end_date_ymd] => 2025-04-07 01:38:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:38:05' and `end` < '2025-04-07 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-04-07 01:38:18] Production.INFO: count ==567 [2025-04-07 01:38:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:38:05 - End Time 2025-04-07 01:38:05 [2025-04-07 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851544', 'tblTempUsageDetail_20' ) start [2025-04-07 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851544', 'tblTempUsageDetail_20' ) end [2025-04-07 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851544', 'tblTempVendorCDR_20' ) start [2025-04-07 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851544', 'tblTempVendorCDR_20' ) end [2025-04-07 01:38:18] Production.INFO: ProcessCDR(1,14851544,1,1,2) [2025-04-07 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851544', 'tblTempUsageDetail_20' ) start [2025-04-07 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851544', 'tblTempUsageDetail_20' ) end [2025-04-07 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:38:22] Production.INFO: ==26392== Releasing lock... [2025-04-07 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:38:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 01:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:39:06 [end_date_ymd] => 2025-04-07 01:39:06 [RateCDR] => 1 ) [2025-04-07 01: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-04-06 22:39:06' and `end` < '2025-04-07 01: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-04-07 01:39:19] Production.INFO: count ==567 [2025-04-07 01:39:19] Production.ERROR: pbx CDR StartTime 2025-04-06 22:39:06 - End Time 2025-04-07 01:39:06 [2025-04-07 01:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851549', 'tblTempUsageDetail_20' ) start [2025-04-07 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851549', 'tblTempUsageDetail_20' ) end [2025-04-07 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851549', 'tblTempVendorCDR_20' ) start [2025-04-07 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851549', 'tblTempVendorCDR_20' ) end [2025-04-07 01:39:19] Production.INFO: ProcessCDR(1,14851549,1,1,2) [2025-04-07 01:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851549', 'tblTempUsageDetail_20' ) start [2025-04-07 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851549', 'tblTempUsageDetail_20' ) end [2025-04-07 01:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:39:22] Production.INFO: ==26466== Releasing lock... [2025-04-07 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:39:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:40:06 [end_date_ymd] => 2025-04-07 01:40:06 [RateCDR] => 1 ) [2025-04-07 01:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 22:40:06' and `end` < '2025-04-07 01:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 01:40:19] Production.INFO: count ==563 [2025-04-07 01:40:19] Production.ERROR: pbx CDR StartTime 2025-04-06 22:40:06 - End Time 2025-04-07 01:40:06 [2025-04-07 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851554', 'tblTempUsageDetail_20' ) start [2025-04-07 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851554', 'tblTempUsageDetail_20' ) end [2025-04-07 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851554', 'tblTempVendorCDR_20' ) start [2025-04-07 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851554', 'tblTempVendorCDR_20' ) end [2025-04-07 01:40:19] Production.INFO: ProcessCDR(1,14851554,1,1,2) [2025-04-07 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851554', 'tblTempUsageDetail_20' ) start [2025-04-07 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851554', 'tblTempUsageDetail_20' ) end [2025-04-07 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:40:22] Production.INFO: ==26543== Releasing lock... [2025-04-07 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:40:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 01:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:41:06 [end_date_ymd] => 2025-04-07 01:41:06 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:41:06' and `end` < '2025-04-07 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-04-07 01:41:19] Production.INFO: count ==560 [2025-04-07 01:41:19] Production.ERROR: pbx CDR StartTime 2025-04-06 22:41:06 - End Time 2025-04-07 01:41:06 [2025-04-07 01:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851560', 'tblTempUsageDetail_20' ) start [2025-04-07 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851560', 'tblTempUsageDetail_20' ) end [2025-04-07 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851560', 'tblTempVendorCDR_20' ) start [2025-04-07 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851560', 'tblTempVendorCDR_20' ) end [2025-04-07 01:41:19] Production.INFO: ProcessCDR(1,14851560,1,1,2) [2025-04-07 01:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851560', 'tblTempUsageDetail_20' ) start [2025-04-07 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851560', 'tblTempUsageDetail_20' ) end [2025-04-07 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:41:22] Production.INFO: ==26660== Releasing lock... [2025-04-07 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:41:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:42:05 [end_date_ymd] => 2025-04-07 01:42:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:42:05' and `end` < '2025-04-07 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-04-07 01:42:18] Production.INFO: count ==554 [2025-04-07 01:42:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:42:05 - End Time 2025-04-07 01:42:05 [2025-04-07 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851565', 'tblTempUsageDetail_20' ) start [2025-04-07 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851565', 'tblTempUsageDetail_20' ) end [2025-04-07 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851565', 'tblTempVendorCDR_20' ) start [2025-04-07 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851565', 'tblTempVendorCDR_20' ) end [2025-04-07 01:42:18] Production.INFO: ProcessCDR(1,14851565,1,1,2) [2025-04-07 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851565', 'tblTempUsageDetail_20' ) start [2025-04-07 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851565', 'tblTempUsageDetail_20' ) end [2025-04-07 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:42:22] Production.INFO: ==26732== Releasing lock... [2025-04-07 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:42:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:43:06 [end_date_ymd] => 2025-04-07 01:43:06 [RateCDR] => 1 ) [2025-04-07 01:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 22:43:06' and `end` < '2025-04-07 01:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 01:43:18] Production.INFO: count ==551 [2025-04-07 01:43:19] Production.ERROR: pbx CDR StartTime 2025-04-06 22:43:06 - End Time 2025-04-07 01:43:06 [2025-04-07 01:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851569', 'tblTempUsageDetail_20' ) start [2025-04-07 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851569', 'tblTempUsageDetail_20' ) end [2025-04-07 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851569', 'tblTempVendorCDR_20' ) start [2025-04-07 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851569', 'tblTempVendorCDR_20' ) end [2025-04-07 01:43:19] Production.INFO: ProcessCDR(1,14851569,1,1,2) [2025-04-07 01:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851569', 'tblTempUsageDetail_20' ) start [2025-04-07 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851569', 'tblTempUsageDetail_20' ) end [2025-04-07 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:43:22] Production.INFO: ==26808== Releasing lock... [2025-04-07 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:43:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:44:05 [end_date_ymd] => 2025-04-07 01:44:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:44:05' and `end` < '2025-04-07 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-04-07 01:44:18] Production.INFO: count ==550 [2025-04-07 01:44:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:44:05 - End Time 2025-04-07 01:44:05 [2025-04-07 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851575', 'tblTempUsageDetail_20' ) start [2025-04-07 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851575', 'tblTempUsageDetail_20' ) end [2025-04-07 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851575', 'tblTempVendorCDR_20' ) start [2025-04-07 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851575', 'tblTempVendorCDR_20' ) end [2025-04-07 01:44:18] Production.INFO: ProcessCDR(1,14851575,1,1,2) [2025-04-07 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851575', 'tblTempUsageDetail_20' ) start [2025-04-07 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851575', 'tblTempUsageDetail_20' ) end [2025-04-07 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:44:22] Production.INFO: ==26879== Releasing lock... [2025-04-07 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:44:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:45:06 [end_date_ymd] => 2025-04-07 01:45:06 [RateCDR] => 1 ) [2025-04-07 01:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 22:45:06' and `end` < '2025-04-07 01:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 01:45:18] Production.INFO: count ==552 [2025-04-07 01:45:19] Production.ERROR: pbx CDR StartTime 2025-04-06 22:45:06 - End Time 2025-04-07 01:45:06 [2025-04-07 01:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851580', 'tblTempUsageDetail_20' ) start [2025-04-07 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851580', 'tblTempUsageDetail_20' ) end [2025-04-07 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851580', 'tblTempVendorCDR_20' ) start [2025-04-07 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851580', 'tblTempVendorCDR_20' ) end [2025-04-07 01:45:19] Production.INFO: ProcessCDR(1,14851580,1,1,2) [2025-04-07 01:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851580', 'tblTempUsageDetail_20' ) start [2025-04-07 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851580', 'tblTempUsageDetail_20' ) end [2025-04-07 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:45:23] Production.INFO: ==26953== Releasing lock... [2025-04-07 01:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:45:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:46:05 [end_date_ymd] => 2025-04-07 01:46:05 [RateCDR] => 1 ) [2025-04-07 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 22:46:05' and `end` < '2025-04-07 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 01:46:18] Production.INFO: count ==550 [2025-04-07 01:46:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:46:05 - End Time 2025-04-07 01:46:05 [2025-04-07 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851585', 'tblTempUsageDetail_20' ) start [2025-04-07 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851585', 'tblTempUsageDetail_20' ) end [2025-04-07 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851585', 'tblTempVendorCDR_20' ) start [2025-04-07 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851585', 'tblTempVendorCDR_20' ) end [2025-04-07 01:46:18] Production.INFO: ProcessCDR(1,14851585,1,1,2) [2025-04-07 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851585', 'tblTempUsageDetail_20' ) start [2025-04-07 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851585', 'tblTempUsageDetail_20' ) end [2025-04-07 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:46:22] Production.INFO: ==27029== Releasing lock... [2025-04-07 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:46:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:47:06 [end_date_ymd] => 2025-04-07 01:47:06 [RateCDR] => 1 ) [2025-04-07 01:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 22:47:06' and `end` < '2025-04-07 01:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 01:47:19] Production.INFO: count ==549 [2025-04-07 01:47:19] Production.ERROR: pbx CDR StartTime 2025-04-06 22:47:06 - End Time 2025-04-07 01:47:06 [2025-04-07 01:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851590', 'tblTempUsageDetail_20' ) start [2025-04-07 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851590', 'tblTempUsageDetail_20' ) end [2025-04-07 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851590', 'tblTempVendorCDR_20' ) start [2025-04-07 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851590', 'tblTempVendorCDR_20' ) end [2025-04-07 01:47:19] Production.INFO: ProcessCDR(1,14851590,1,1,2) [2025-04-07 01:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851590', 'tblTempUsageDetail_20' ) start [2025-04-07 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851590', 'tblTempUsageDetail_20' ) end [2025-04-07 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:47:23] Production.INFO: ==27104== Releasing lock... [2025-04-07 01:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:47:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:48:05 [end_date_ymd] => 2025-04-07 01:48:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:48:05' and `end` < '2025-04-07 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-04-07 01:48:18] Production.INFO: count ==543 [2025-04-07 01:48:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:48:05 - End Time 2025-04-07 01:48:05 [2025-04-07 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851595', 'tblTempUsageDetail_20' ) start [2025-04-07 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851595', 'tblTempUsageDetail_20' ) end [2025-04-07 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851595', 'tblTempVendorCDR_20' ) start [2025-04-07 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851595', 'tblTempVendorCDR_20' ) end [2025-04-07 01:48:18] Production.INFO: ProcessCDR(1,14851595,1,1,2) [2025-04-07 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851595', 'tblTempUsageDetail_20' ) start [2025-04-07 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851595', 'tblTempUsageDetail_20' ) end [2025-04-07 01:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:48:22] Production.INFO: ==27184== Releasing lock... [2025-04-07 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:48:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:49:05 [end_date_ymd] => 2025-04-07 01:49:05 [RateCDR] => 1 ) [2025-04-07 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 22:49:05' and `end` < '2025-04-07 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 01:49:18] Production.INFO: count ==543 [2025-04-07 01:49:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:49:05 - End Time 2025-04-07 01:49:05 [2025-04-07 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851600', 'tblTempUsageDetail_20' ) start [2025-04-07 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851600', 'tblTempUsageDetail_20' ) end [2025-04-07 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851600', 'tblTempVendorCDR_20' ) start [2025-04-07 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851600', 'tblTempVendorCDR_20' ) end [2025-04-07 01:49:18] Production.INFO: ProcessCDR(1,14851600,1,1,2) [2025-04-07 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851600', 'tblTempUsageDetail_20' ) start [2025-04-07 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851600', 'tblTempUsageDetail_20' ) end [2025-04-07 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:49:21] Production.INFO: ==27257== Releasing lock... [2025-04-07 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:49:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:50:05 [end_date_ymd] => 2025-04-07 01:50:05 [RateCDR] => 1 ) [2025-04-07 01:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 22:50:05' and `end` < '2025-04-07 01:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 01:50:18] Production.INFO: count ==549 [2025-04-07 01:50:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:50:05 - End Time 2025-04-07 01:50:05 [2025-04-07 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851606', 'tblTempUsageDetail_20' ) start [2025-04-07 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851606', 'tblTempUsageDetail_20' ) end [2025-04-07 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851606', 'tblTempVendorCDR_20' ) start [2025-04-07 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851606', 'tblTempVendorCDR_20' ) end [2025-04-07 01:50:18] Production.INFO: ProcessCDR(1,14851606,1,1,2) [2025-04-07 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851606', 'tblTempUsageDetail_20' ) start [2025-04-07 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851606', 'tblTempUsageDetail_20' ) end [2025-04-07 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:50:22] Production.INFO: ==27332== Releasing lock... [2025-04-07 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:50:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:51:05 [end_date_ymd] => 2025-04-07 01:51:05 [RateCDR] => 1 ) [2025-04-07 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 22:51:05' and `end` < '2025-04-07 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 01:51:18] Production.INFO: count ==560 [2025-04-07 01:51:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:51:05 - End Time 2025-04-07 01:51:05 [2025-04-07 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851611', 'tblTempUsageDetail_20' ) start [2025-04-07 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851611', 'tblTempUsageDetail_20' ) end [2025-04-07 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851611', 'tblTempVendorCDR_20' ) start [2025-04-07 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851611', 'tblTempVendorCDR_20' ) end [2025-04-07 01:51:18] Production.INFO: ProcessCDR(1,14851611,1,1,2) [2025-04-07 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851611', 'tblTempUsageDetail_20' ) start [2025-04-07 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851611', 'tblTempUsageDetail_20' ) end [2025-04-07 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:51:22] Production.INFO: ==27410== Releasing lock... [2025-04-07 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:51:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:52:05 [end_date_ymd] => 2025-04-07 01:52:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:52:05' and `end` < '2025-04-07 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-04-07 01:52:18] Production.INFO: count ==567 [2025-04-07 01:52:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:52:05 - End Time 2025-04-07 01:52:05 [2025-04-07 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851616', 'tblTempUsageDetail_20' ) start [2025-04-07 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851616', 'tblTempUsageDetail_20' ) end [2025-04-07 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851616', 'tblTempVendorCDR_20' ) start [2025-04-07 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851616', 'tblTempVendorCDR_20' ) end [2025-04-07 01:52:18] Production.INFO: ProcessCDR(1,14851616,1,1,2) [2025-04-07 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851616', 'tblTempUsageDetail_20' ) start [2025-04-07 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851616', 'tblTempUsageDetail_20' ) end [2025-04-07 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:52:22] Production.INFO: ==27482== Releasing lock... [2025-04-07 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:52:22] Production.INFO: 33 MB #Memory Used# [2025-04-07 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:53:05 [end_date_ymd] => 2025-04-07 01:53:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:53:05' and `end` < '2025-04-07 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-04-07 01:53:18] Production.INFO: count ==571 [2025-04-07 01:53:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:53:05 - End Time 2025-04-07 01:53:05 [2025-04-07 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851621', 'tblTempUsageDetail_20' ) start [2025-04-07 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851621', 'tblTempUsageDetail_20' ) end [2025-04-07 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851621', 'tblTempVendorCDR_20' ) start [2025-04-07 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851621', 'tblTempVendorCDR_20' ) end [2025-04-07 01:53:18] Production.INFO: ProcessCDR(1,14851621,1,1,2) [2025-04-07 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851621', 'tblTempUsageDetail_20' ) start [2025-04-07 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851621', 'tblTempUsageDetail_20' ) end [2025-04-07 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:53:22] Production.INFO: ==27556== Releasing lock... [2025-04-07 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:53:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:54:06 [end_date_ymd] => 2025-04-07 01:54:06 [RateCDR] => 1 ) [2025-04-07 01: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-04-06 22:54:06' and `end` < '2025-04-07 01: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-04-07 01:54:18] Production.INFO: count ==573 [2025-04-07 01:54:19] Production.ERROR: pbx CDR StartTime 2025-04-06 22:54:06 - End Time 2025-04-07 01:54:06 [2025-04-07 01:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851626', 'tblTempUsageDetail_20' ) start [2025-04-07 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851626', 'tblTempUsageDetail_20' ) end [2025-04-07 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851626', 'tblTempVendorCDR_20' ) start [2025-04-07 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851626', 'tblTempVendorCDR_20' ) end [2025-04-07 01:54:19] Production.INFO: ProcessCDR(1,14851626,1,1,2) [2025-04-07 01:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851626', 'tblTempUsageDetail_20' ) start [2025-04-07 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851626', 'tblTempUsageDetail_20' ) end [2025-04-07 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:54:22] Production.INFO: ==27630== Releasing lock... [2025-04-07 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:54:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:55:05 [end_date_ymd] => 2025-04-07 01:55:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:55:05' and `end` < '2025-04-07 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-04-07 01:55:18] Production.INFO: count ==569 [2025-04-07 01:55:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:55:05 - End Time 2025-04-07 01:55:05 [2025-04-07 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851631', 'tblTempUsageDetail_20' ) start [2025-04-07 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851631', 'tblTempUsageDetail_20' ) end [2025-04-07 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851631', 'tblTempVendorCDR_20' ) start [2025-04-07 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851631', 'tblTempVendorCDR_20' ) end [2025-04-07 01:55:18] Production.INFO: ProcessCDR(1,14851631,1,1,2) [2025-04-07 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851631', 'tblTempUsageDetail_20' ) start [2025-04-07 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851631', 'tblTempUsageDetail_20' ) end [2025-04-07 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:55:22] Production.INFO: ==27710== Releasing lock... [2025-04-07 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:55:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-07 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:56:06 [end_date_ymd] => 2025-04-07 01:56:06 [RateCDR] => 1 ) [2025-04-07 01: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-04-06 22:56:06' and `end` < '2025-04-07 01: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-04-07 01:56:18] Production.INFO: count ==567 [2025-04-07 01:56:19] Production.ERROR: pbx CDR StartTime 2025-04-06 22:56:06 - End Time 2025-04-07 01:56:06 [2025-04-07 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851636', 'tblTempUsageDetail_20' ) start [2025-04-07 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851636', 'tblTempUsageDetail_20' ) end [2025-04-07 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851636', 'tblTempVendorCDR_20' ) start [2025-04-07 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851636', 'tblTempVendorCDR_20' ) end [2025-04-07 01:56:19] Production.INFO: ProcessCDR(1,14851636,1,1,2) [2025-04-07 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851636', 'tblTempUsageDetail_20' ) start [2025-04-07 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851636', 'tblTempUsageDetail_20' ) end [2025-04-07 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:56:22] Production.INFO: ==27826== Releasing lock... [2025-04-07 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:56:22] Production.INFO: 33 MB #Memory Used# [2025-04-07 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:57:05 [end_date_ymd] => 2025-04-07 01:57:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:57:05' and `end` < '2025-04-07 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-04-07 01:57:17] Production.INFO: count ==570 [2025-04-07 01:57:17] Production.ERROR: pbx CDR StartTime 2025-04-06 22:57:05 - End Time 2025-04-07 01:57:05 [2025-04-07 01:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851641', 'tblTempUsageDetail_20' ) start [2025-04-07 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851641', 'tblTempUsageDetail_20' ) end [2025-04-07 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851641', 'tblTempVendorCDR_20' ) start [2025-04-07 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851641', 'tblTempVendorCDR_20' ) end [2025-04-07 01:57:17] Production.INFO: ProcessCDR(1,14851641,1,1,2) [2025-04-07 01:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851641', 'tblTempUsageDetail_20' ) start [2025-04-07 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851641', 'tblTempUsageDetail_20' ) end [2025-04-07 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:57:21] Production.INFO: ==27897== Releasing lock... [2025-04-07 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:57:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-07 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:58:06 [end_date_ymd] => 2025-04-07 01:58:06 [RateCDR] => 1 ) [2025-04-07 01: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-04-06 22:58:06' and `end` < '2025-04-07 01: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-04-07 01:58:18] Production.INFO: count ==568 [2025-04-07 01:58:19] Production.ERROR: pbx CDR StartTime 2025-04-06 22:58:06 - End Time 2025-04-07 01:58:06 [2025-04-07 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851646', 'tblTempUsageDetail_20' ) start [2025-04-07 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851646', 'tblTempUsageDetail_20' ) end [2025-04-07 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851646', 'tblTempVendorCDR_20' ) start [2025-04-07 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851646', 'tblTempVendorCDR_20' ) end [2025-04-07 01:58:19] Production.INFO: ProcessCDR(1,14851646,1,1,2) [2025-04-07 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851646', 'tblTempUsageDetail_20' ) start [2025-04-07 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851646', 'tblTempUsageDetail_20' ) end [2025-04-07 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:58:22] Production.INFO: ==27971== Releasing lock... [2025-04-07 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:58:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-07 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 22:59:05 [end_date_ymd] => 2025-04-07 01:59:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 22:59:05' and `end` < '2025-04-07 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-04-07 01:59:18] Production.INFO: count ==564 [2025-04-07 01:59:18] Production.ERROR: pbx CDR StartTime 2025-04-06 22:59:05 - End Time 2025-04-07 01:59:05 [2025-04-07 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851651', 'tblTempUsageDetail_20' ) start [2025-04-07 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851651', 'tblTempUsageDetail_20' ) end [2025-04-07 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851651', 'tblTempVendorCDR_20' ) start [2025-04-07 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851651', 'tblTempVendorCDR_20' ) end [2025-04-07 01:59:18] Production.INFO: ProcessCDR(1,14851651,1,1,2) [2025-04-07 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851651', 'tblTempUsageDetail_20' ) start [2025-04-07 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851651', 'tblTempUsageDetail_20' ) end [2025-04-07 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 01:59:21] Production.INFO: ==28046== Releasing lock... [2025-04-07 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 01:59:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:00:06 [end_date_ymd] => 2025-04-07 02:00:06 [RateCDR] => 1 ) [2025-04-07 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-04-06 23:00:06' and `end` < '2025-04-07 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-04-07 02:00:19] Production.INFO: count ==565 [2025-04-07 02:00:19] Production.ERROR: pbx CDR StartTime 2025-04-06 23:00:06 - End Time 2025-04-07 02:00:06 [2025-04-07 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851657', 'tblTempUsageDetail_20' ) start [2025-04-07 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851657', 'tblTempUsageDetail_20' ) end [2025-04-07 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851657', 'tblTempVendorCDR_20' ) start [2025-04-07 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851657', 'tblTempVendorCDR_20' ) end [2025-04-07 02:00:19] Production.INFO: ProcessCDR(1,14851657,1,1,2) [2025-04-07 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851657', 'tblTempUsageDetail_20' ) start [2025-04-07 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851657', 'tblTempUsageDetail_20' ) end [2025-04-07 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:00:22] Production.INFO: ==28119== Releasing lock... [2025-04-07 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:00:22] Production.INFO: 33 MB #Memory Used# [2025-04-07 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:01:05 [end_date_ymd] => 2025-04-07 02:01:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 23:01:05' and `end` < '2025-04-07 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-04-07 02:01:18] Production.INFO: count ==560 [2025-04-07 02:01:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:01:05 - End Time 2025-04-07 02:01:05 [2025-04-07 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851662', 'tblTempUsageDetail_20' ) start [2025-04-07 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851662', 'tblTempUsageDetail_20' ) end [2025-04-07 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851662', 'tblTempVendorCDR_20' ) start [2025-04-07 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851662', 'tblTempVendorCDR_20' ) end [2025-04-07 02:01:18] Production.INFO: ProcessCDR(1,14851662,1,1,2) [2025-04-07 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851662', 'tblTempUsageDetail_20' ) start [2025-04-07 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851662', 'tblTempUsageDetail_20' ) end [2025-04-07 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:01:22] Production.INFO: ==28213== Releasing lock... [2025-04-07 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:01:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:02:06 [end_date_ymd] => 2025-04-07 02:02:06 [RateCDR] => 1 ) [2025-04-07 02: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-04-06 23:02:06' and `end` < '2025-04-07 02: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-04-07 02:02:19] Production.INFO: count ==567 [2025-04-07 02:02:19] Production.ERROR: pbx CDR StartTime 2025-04-06 23:02:06 - End Time 2025-04-07 02:02:06 [2025-04-07 02:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851667', 'tblTempUsageDetail_20' ) start [2025-04-07 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851667', 'tblTempUsageDetail_20' ) end [2025-04-07 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851667', 'tblTempVendorCDR_20' ) start [2025-04-07 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851667', 'tblTempVendorCDR_20' ) end [2025-04-07 02:02:19] Production.INFO: ProcessCDR(1,14851667,1,1,2) [2025-04-07 02:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851667', 'tblTempUsageDetail_20' ) start [2025-04-07 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851667', 'tblTempUsageDetail_20' ) end [2025-04-07 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:02:22] Production.INFO: ==28373== Releasing lock... [2025-04-07 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:02:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:03:05 [end_date_ymd] => 2025-04-07 02:03:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 23:03:05' and `end` < '2025-04-07 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-04-07 02:03:18] Production.INFO: count ==564 [2025-04-07 02:03:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:03:05 - End Time 2025-04-07 02:03:05 [2025-04-07 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851672', 'tblTempUsageDetail_20' ) start [2025-04-07 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851672', 'tblTempUsageDetail_20' ) end [2025-04-07 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851672', 'tblTempVendorCDR_20' ) start [2025-04-07 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851672', 'tblTempVendorCDR_20' ) end [2025-04-07 02:03:18] Production.INFO: ProcessCDR(1,14851672,1,1,2) [2025-04-07 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851672', 'tblTempUsageDetail_20' ) start [2025-04-07 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851672', 'tblTempUsageDetail_20' ) end [2025-04-07 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:03:21] Production.INFO: ==28450== Releasing lock... [2025-04-07 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:03:21] Production.INFO: 33 MB #Memory Used# [2025-04-07 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:04:05 [end_date_ymd] => 2025-04-07 02:04:05 [RateCDR] => 1 ) [2025-04-07 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 23:04:05' and `end` < '2025-04-07 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 02:04:18] Production.INFO: count ==560 [2025-04-07 02:04:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:04:05 - End Time 2025-04-07 02:04:05 [2025-04-07 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851677', 'tblTempUsageDetail_20' ) start [2025-04-07 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851677', 'tblTempUsageDetail_20' ) end [2025-04-07 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851677', 'tblTempVendorCDR_20' ) start [2025-04-07 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851677', 'tblTempVendorCDR_20' ) end [2025-04-07 02:04:18] Production.INFO: ProcessCDR(1,14851677,1,1,2) [2025-04-07 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851677', 'tblTempUsageDetail_20' ) start [2025-04-07 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851677', 'tblTempUsageDetail_20' ) end [2025-04-07 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:04:22] Production.INFO: ==28524== Releasing lock... [2025-04-07 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:04:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:05:05 [end_date_ymd] => 2025-04-07 02:05:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 23:05:05' and `end` < '2025-04-07 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-04-07 02:05:18] Production.INFO: count ==562 [2025-04-07 02:05:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:05:05 - End Time 2025-04-07 02:05:05 [2025-04-07 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851682', 'tblTempUsageDetail_20' ) start [2025-04-07 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851682', 'tblTempUsageDetail_20' ) end [2025-04-07 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851682', 'tblTempVendorCDR_20' ) start [2025-04-07 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851682', 'tblTempVendorCDR_20' ) end [2025-04-07 02:05:18] Production.INFO: ProcessCDR(1,14851682,1,1,2) [2025-04-07 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851682', 'tblTempUsageDetail_20' ) start [2025-04-07 02:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851682', 'tblTempUsageDetail_20' ) end [2025-04-07 02:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:05:23] Production.INFO: ==28596== Releasing lock... [2025-04-07 02:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:05:23] Production.INFO: 33 MB #Memory Used# [2025-04-07 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:06:05 [end_date_ymd] => 2025-04-07 02:06:05 [RateCDR] => 1 ) [2025-04-07 02:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 23:06:05' and `end` < '2025-04-07 02:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 02:06:18] Production.INFO: count ==561 [2025-04-07 02:06:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:06:05 - End Time 2025-04-07 02:06:05 [2025-04-07 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851687', 'tblTempUsageDetail_20' ) start [2025-04-07 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851687', 'tblTempUsageDetail_20' ) end [2025-04-07 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851687', 'tblTempVendorCDR_20' ) start [2025-04-07 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851687', 'tblTempVendorCDR_20' ) end [2025-04-07 02:06:18] Production.INFO: ProcessCDR(1,14851687,1,1,2) [2025-04-07 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851687', 'tblTempUsageDetail_20' ) start [2025-04-07 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851687', 'tblTempUsageDetail_20' ) end [2025-04-07 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:06:22] Production.INFO: ==28672== Releasing lock... [2025-04-07 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:06:22] Production.INFO: 33 MB #Memory Used# [2025-04-07 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:07:05 [end_date_ymd] => 2025-04-07 02:07:05 [RateCDR] => 1 ) [2025-04-07 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 23:07:05' and `end` < '2025-04-07 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 02:07:17] Production.INFO: count ==562 [2025-04-07 02:07:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:07:05 - End Time 2025-04-07 02:07:05 [2025-04-07 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851692', 'tblTempUsageDetail_20' ) start [2025-04-07 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851692', 'tblTempUsageDetail_20' ) end [2025-04-07 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851692', 'tblTempVendorCDR_20' ) start [2025-04-07 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851692', 'tblTempVendorCDR_20' ) end [2025-04-07 02:07:18] Production.INFO: ProcessCDR(1,14851692,1,1,2) [2025-04-07 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851692', 'tblTempUsageDetail_20' ) start [2025-04-07 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851692', 'tblTempUsageDetail_20' ) end [2025-04-07 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:07:21] Production.INFO: ==28744== Releasing lock... [2025-04-07 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:07:21] Production.INFO: 33 MB #Memory Used# [2025-04-07 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:08:05 [end_date_ymd] => 2025-04-07 02:08:05 [RateCDR] => 1 ) [2025-04-07 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 23:08:05' and `end` < '2025-04-07 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 02:08:18] Production.INFO: count ==566 [2025-04-07 02:08:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:08:05 - End Time 2025-04-07 02:08:05 [2025-04-07 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851697', 'tblTempUsageDetail_20' ) start [2025-04-07 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851697', 'tblTempUsageDetail_20' ) end [2025-04-07 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851697', 'tblTempVendorCDR_20' ) start [2025-04-07 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851697', 'tblTempVendorCDR_20' ) end [2025-04-07 02:08:18] Production.INFO: ProcessCDR(1,14851697,1,1,2) [2025-04-07 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851697', 'tblTempUsageDetail_20' ) start [2025-04-07 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851697', 'tblTempUsageDetail_20' ) end [2025-04-07 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:08:22] Production.INFO: ==28818== Releasing lock... [2025-04-07 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:08:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-07 02:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:09:04 [end_date_ymd] => 2025-04-07 02:09:04 [RateCDR] => 1 ) [2025-04-07 02: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-04-06 23:09:04' and `end` < '2025-04-07 02: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-04-07 02:09:17] Production.INFO: count ==562 [2025-04-07 02:09:17] Production.ERROR: pbx CDR StartTime 2025-04-06 23:09:04 - End Time 2025-04-07 02:09:04 [2025-04-07 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851702', 'tblTempUsageDetail_20' ) start [2025-04-07 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851702', 'tblTempUsageDetail_20' ) end [2025-04-07 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851702', 'tblTempVendorCDR_20' ) start [2025-04-07 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851702', 'tblTempVendorCDR_20' ) end [2025-04-07 02:09:17] Production.INFO: ProcessCDR(1,14851702,1,1,2) [2025-04-07 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851702', 'tblTempUsageDetail_20' ) start [2025-04-07 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851702', 'tblTempUsageDetail_20' ) end [2025-04-07 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:09:21] Production.INFO: ==28891== Releasing lock... [2025-04-07 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:09:21] Production.INFO: 33 MB #Memory Used# [2025-04-07 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:10:06 [end_date_ymd] => 2025-04-07 02:10:06 [RateCDR] => 1 ) [2025-04-07 02: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-04-06 23:10:06' and `end` < '2025-04-07 02: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-04-07 02:10:19] Production.INFO: count ==572 [2025-04-07 02:10:19] Production.ERROR: pbx CDR StartTime 2025-04-06 23:10:06 - End Time 2025-04-07 02:10:06 [2025-04-07 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851708', 'tblTempUsageDetail_20' ) start [2025-04-07 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851708', 'tblTempUsageDetail_20' ) end [2025-04-07 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851708', 'tblTempVendorCDR_20' ) start [2025-04-07 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851708', 'tblTempVendorCDR_20' ) end [2025-04-07 02:10:19] Production.INFO: ProcessCDR(1,14851708,1,1,2) [2025-04-07 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851708', 'tblTempUsageDetail_20' ) start [2025-04-07 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851708', 'tblTempUsageDetail_20' ) end [2025-04-07 02:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:10:23] Production.INFO: ==28965== Releasing lock... [2025-04-07 02:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:10:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 02:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:11:04 [end_date_ymd] => 2025-04-07 02:11:04 [RateCDR] => 1 ) [2025-04-07 02: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-04-06 23:11:04' and `end` < '2025-04-07 02: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-04-07 02:11:17] Production.INFO: count ==571 [2025-04-07 02:11:17] Production.ERROR: pbx CDR StartTime 2025-04-06 23:11:04 - End Time 2025-04-07 02:11:04 [2025-04-07 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851713', 'tblTempUsageDetail_20' ) start [2025-04-07 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851713', 'tblTempUsageDetail_20' ) end [2025-04-07 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851713', 'tblTempVendorCDR_20' ) start [2025-04-07 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851713', 'tblTempVendorCDR_20' ) end [2025-04-07 02:11:17] Production.INFO: ProcessCDR(1,14851713,1,1,2) [2025-04-07 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851713', 'tblTempUsageDetail_20' ) start [2025-04-07 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851713', 'tblTempUsageDetail_20' ) end [2025-04-07 02:11:20] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:11:20] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:11:20] Production.INFO: ==29040== Releasing lock... [2025-04-07 02:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:11:20] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:12:05 [end_date_ymd] => 2025-04-07 02:12:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 23:12:05' and `end` < '2025-04-07 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-04-07 02:12:18] Production.INFO: count ==571 [2025-04-07 02:12:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:12:05 - End Time 2025-04-07 02:12:05 [2025-04-07 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851718', 'tblTempUsageDetail_20' ) start [2025-04-07 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851718', 'tblTempUsageDetail_20' ) end [2025-04-07 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851718', 'tblTempVendorCDR_20' ) start [2025-04-07 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851718', 'tblTempVendorCDR_20' ) end [2025-04-07 02:12:18] Production.INFO: ProcessCDR(1,14851718,1,1,2) [2025-04-07 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851718', 'tblTempUsageDetail_20' ) start [2025-04-07 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851718', 'tblTempUsageDetail_20' ) end [2025-04-07 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:12:21] Production.INFO: ==29155== Releasing lock... [2025-04-07 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:12:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:13:05 [end_date_ymd] => 2025-04-07 02:13:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 23:13:05' and `end` < '2025-04-07 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-04-07 02:13:18] Production.INFO: count ==570 [2025-04-07 02:13:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:13:05 - End Time 2025-04-07 02:13:05 [2025-04-07 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851723', 'tblTempUsageDetail_20' ) start [2025-04-07 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851723', 'tblTempUsageDetail_20' ) end [2025-04-07 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851723', 'tblTempVendorCDR_20' ) start [2025-04-07 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851723', 'tblTempVendorCDR_20' ) end [2025-04-07 02:13:18] Production.INFO: ProcessCDR(1,14851723,1,1,2) [2025-04-07 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851723', 'tblTempUsageDetail_20' ) start [2025-04-07 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851723', 'tblTempUsageDetail_20' ) end [2025-04-07 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:13:22] Production.INFO: ==29232== Releasing lock... [2025-04-07 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:13:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-07 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:14:05 [end_date_ymd] => 2025-04-07 02:14:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 23:14:05' and `end` < '2025-04-07 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-04-07 02:14:18] Production.INFO: count ==569 [2025-04-07 02:14:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:14:05 - End Time 2025-04-07 02:14:05 [2025-04-07 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851728', 'tblTempUsageDetail_20' ) start [2025-04-07 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851728', 'tblTempUsageDetail_20' ) end [2025-04-07 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851728', 'tblTempVendorCDR_20' ) start [2025-04-07 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851728', 'tblTempVendorCDR_20' ) end [2025-04-07 02:14:18] Production.INFO: ProcessCDR(1,14851728,1,1,2) [2025-04-07 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851728', 'tblTempUsageDetail_20' ) start [2025-04-07 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851728', 'tblTempUsageDetail_20' ) end [2025-04-07 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:14:22] Production.INFO: ==29323== Releasing lock... [2025-04-07 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:14:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-07 02:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:15:06 [end_date_ymd] => 2025-04-07 02:15:06 [RateCDR] => 1 ) [2025-04-07 02: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-04-06 23:15:06' and `end` < '2025-04-07 02: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-04-07 02:15:19] Production.INFO: count ==569 [2025-04-07 02:15:19] Production.ERROR: pbx CDR StartTime 2025-04-06 23:15:06 - End Time 2025-04-07 02:15:06 [2025-04-07 02:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851733', 'tblTempUsageDetail_20' ) start [2025-04-07 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851733', 'tblTempUsageDetail_20' ) end [2025-04-07 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851733', 'tblTempVendorCDR_20' ) start [2025-04-07 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851733', 'tblTempVendorCDR_20' ) end [2025-04-07 02:15:19] Production.INFO: ProcessCDR(1,14851733,1,1,2) [2025-04-07 02:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851733', 'tblTempUsageDetail_20' ) start [2025-04-07 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851733', 'tblTempUsageDetail_20' ) end [2025-04-07 02:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:15:22] Production.INFO: ==29408== Releasing lock... [2025-04-07 02:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:15:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-07 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:16:05 [end_date_ymd] => 2025-04-07 02:16:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 23:16:05' and `end` < '2025-04-07 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-04-07 02:16:18] Production.INFO: count ==566 [2025-04-07 02:16:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:16:05 - End Time 2025-04-07 02:16:05 [2025-04-07 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851738', 'tblTempUsageDetail_20' ) start [2025-04-07 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851738', 'tblTempUsageDetail_20' ) end [2025-04-07 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851738', 'tblTempVendorCDR_20' ) start [2025-04-07 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851738', 'tblTempVendorCDR_20' ) end [2025-04-07 02:16:18] Production.INFO: ProcessCDR(1,14851738,1,1,2) [2025-04-07 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851738', 'tblTempUsageDetail_20' ) start [2025-04-07 02:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851738', 'tblTempUsageDetail_20' ) end [2025-04-07 02:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:16:23] Production.INFO: ==29492== Releasing lock... [2025-04-07 02:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:16:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:17:05 [end_date_ymd] => 2025-04-07 02:17:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 23:17:05' and `end` < '2025-04-07 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-04-07 02:17:18] Production.INFO: count ==570 [2025-04-07 02:17:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:17:05 - End Time 2025-04-07 02:17:05 [2025-04-07 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851743', 'tblTempUsageDetail_20' ) start [2025-04-07 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851743', 'tblTempUsageDetail_20' ) end [2025-04-07 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851743', 'tblTempVendorCDR_20' ) start [2025-04-07 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851743', 'tblTempVendorCDR_20' ) end [2025-04-07 02:17:18] Production.INFO: ProcessCDR(1,14851743,1,1,2) [2025-04-07 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851743', 'tblTempUsageDetail_20' ) start [2025-04-07 02:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851743', 'tblTempUsageDetail_20' ) end [2025-04-07 02:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:17:23] Production.INFO: ==29569== Releasing lock... [2025-04-07 02:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:17:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-07 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:18:05 [end_date_ymd] => 2025-04-07 02:18:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 23:18:05' and `end` < '2025-04-07 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-04-07 02:18:18] Production.INFO: count ==570 [2025-04-07 02:18:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:18:05 - End Time 2025-04-07 02:18:05 [2025-04-07 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851748', 'tblTempUsageDetail_20' ) start [2025-04-07 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851748', 'tblTempUsageDetail_20' ) end [2025-04-07 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851748', 'tblTempVendorCDR_20' ) start [2025-04-07 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851748', 'tblTempVendorCDR_20' ) end [2025-04-07 02:18:18] Production.INFO: ProcessCDR(1,14851748,1,1,2) [2025-04-07 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851748', 'tblTempUsageDetail_20' ) start [2025-04-07 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851748', 'tblTempUsageDetail_20' ) end [2025-04-07 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:18:22] Production.INFO: ==29657== Releasing lock... [2025-04-07 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:18:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-07 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:19:05 [end_date_ymd] => 2025-04-07 02:19:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 23:19:05' and `end` < '2025-04-07 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-04-07 02:19:18] Production.INFO: count ==568 [2025-04-07 02:19:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:19:05 - End Time 2025-04-07 02:19:05 [2025-04-07 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851753', 'tblTempUsageDetail_20' ) start [2025-04-07 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851753', 'tblTempUsageDetail_20' ) end [2025-04-07 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851753', 'tblTempVendorCDR_20' ) start [2025-04-07 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851753', 'tblTempVendorCDR_20' ) end [2025-04-07 02:19:18] Production.INFO: ProcessCDR(1,14851753,1,1,2) [2025-04-07 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851753', 'tblTempUsageDetail_20' ) start [2025-04-07 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851753', 'tblTempUsageDetail_20' ) end [2025-04-07 02:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:19:22] Production.INFO: ==29744== Releasing lock... [2025-04-07 02:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:19:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-07 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:20:06 [end_date_ymd] => 2025-04-07 02:20:06 [RateCDR] => 1 ) [2025-04-07 02:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 23:20:06' and `end` < '2025-04-07 02:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 02:20:19] Production.INFO: count ==576 [2025-04-07 02:20:19] Production.ERROR: pbx CDR StartTime 2025-04-06 23:20:06 - End Time 2025-04-07 02:20:06 [2025-04-07 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851759', 'tblTempUsageDetail_20' ) start [2025-04-07 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851759', 'tblTempUsageDetail_20' ) end [2025-04-07 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851759', 'tblTempVendorCDR_20' ) start [2025-04-07 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851759', 'tblTempVendorCDR_20' ) end [2025-04-07 02:20:19] Production.INFO: ProcessCDR(1,14851759,1,1,2) [2025-04-07 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851759', 'tblTempUsageDetail_20' ) start [2025-04-07 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851759', 'tblTempUsageDetail_20' ) end [2025-04-07 02:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:20:23] Production.INFO: ==29825== Releasing lock... [2025-04-07 02:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:20:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-07 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:21:05 [end_date_ymd] => 2025-04-07 02:21:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 23:21:05' and `end` < '2025-04-07 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-04-07 02:21:18] Production.INFO: count ==576 [2025-04-07 02:21:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:21:05 - End Time 2025-04-07 02:21:05 [2025-04-07 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851764', 'tblTempUsageDetail_20' ) start [2025-04-07 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851764', 'tblTempUsageDetail_20' ) end [2025-04-07 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851764', 'tblTempVendorCDR_20' ) start [2025-04-07 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851764', 'tblTempVendorCDR_20' ) end [2025-04-07 02:21:18] Production.INFO: ProcessCDR(1,14851764,1,1,2) [2025-04-07 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851764', 'tblTempUsageDetail_20' ) start [2025-04-07 02:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851764', 'tblTempUsageDetail_20' ) end [2025-04-07 02:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:21:23] Production.INFO: ==29906== Releasing lock... [2025-04-07 02:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:21:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-07 02:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:22:06 [end_date_ymd] => 2025-04-07 02:22:06 [RateCDR] => 1 ) [2025-04-07 02: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-04-06 23:22:06' and `end` < '2025-04-07 02: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-04-07 02:22:19] Production.INFO: count ==583 [2025-04-07 02:22:19] Production.ERROR: pbx CDR StartTime 2025-04-06 23:22:06 - End Time 2025-04-07 02:22:06 [2025-04-07 02:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851769', 'tblTempUsageDetail_20' ) start [2025-04-07 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851769', 'tblTempUsageDetail_20' ) end [2025-04-07 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851769', 'tblTempVendorCDR_20' ) start [2025-04-07 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851769', 'tblTempVendorCDR_20' ) end [2025-04-07 02:22:19] Production.INFO: ProcessCDR(1,14851769,1,1,2) [2025-04-07 02:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851769', 'tblTempUsageDetail_20' ) start [2025-04-07 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851769', 'tblTempUsageDetail_20' ) end [2025-04-07 02:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:22:22] Production.INFO: ==29985== Releasing lock... [2025-04-07 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:22:22] Production.INFO: 33 MB #Memory Used# [2025-04-07 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:23:05 [end_date_ymd] => 2025-04-07 02:23:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 23:23:05' and `end` < '2025-04-07 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-04-07 02:23:18] Production.INFO: count ==582 [2025-04-07 02:23:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:23:05 - End Time 2025-04-07 02:23:05 [2025-04-07 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851774', 'tblTempUsageDetail_20' ) start [2025-04-07 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851774', 'tblTempUsageDetail_20' ) end [2025-04-07 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851774', 'tblTempVendorCDR_20' ) start [2025-04-07 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851774', 'tblTempVendorCDR_20' ) end [2025-04-07 02:23:18] Production.INFO: ProcessCDR(1,14851774,1,1,2) [2025-04-07 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851774', 'tblTempUsageDetail_20' ) start [2025-04-07 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851774', 'tblTempUsageDetail_20' ) end [2025-04-07 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:23:21] Production.INFO: ==30066== Releasing lock... [2025-04-07 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:23:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:24:05 [end_date_ymd] => 2025-04-07 02:24:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 23:24:05' and `end` < '2025-04-07 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-04-07 02:24:18] Production.INFO: count ==582 [2025-04-07 02:24:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:24:05 - End Time 2025-04-07 02:24:05 [2025-04-07 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851779', 'tblTempUsageDetail_20' ) start [2025-04-07 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851779', 'tblTempUsageDetail_20' ) end [2025-04-07 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851779', 'tblTempVendorCDR_20' ) start [2025-04-07 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851779', 'tblTempVendorCDR_20' ) end [2025-04-07 02:24:18] Production.INFO: ProcessCDR(1,14851779,1,1,2) [2025-04-07 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851779', 'tblTempUsageDetail_20' ) start [2025-04-07 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851779', 'tblTempUsageDetail_20' ) end [2025-04-07 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:24:21] Production.INFO: ==30145== Releasing lock... [2025-04-07 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:24:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:25:05 [end_date_ymd] => 2025-04-07 02:25:05 [RateCDR] => 1 ) [2025-04-07 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 23:25:05' and `end` < '2025-04-07 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 02:25:18] Production.INFO: count ==575 [2025-04-07 02:25:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:25:05 - End Time 2025-04-07 02:25:05 [2025-04-07 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851784', 'tblTempUsageDetail_20' ) start [2025-04-07 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851784', 'tblTempUsageDetail_20' ) end [2025-04-07 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851784', 'tblTempVendorCDR_20' ) start [2025-04-07 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851784', 'tblTempVendorCDR_20' ) end [2025-04-07 02:25:18] Production.INFO: ProcessCDR(1,14851784,1,1,2) [2025-04-07 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851784', 'tblTempUsageDetail_20' ) start [2025-04-07 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851784', 'tblTempUsageDetail_20' ) end [2025-04-07 02:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:25:22] Production.INFO: ==30217== Releasing lock... [2025-04-07 02:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:25:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:26:05 [end_date_ymd] => 2025-04-07 02:26:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 23:26:05' and `end` < '2025-04-07 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-04-07 02:26:18] Production.INFO: count ==573 [2025-04-07 02:26:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:26:05 - End Time 2025-04-07 02:26:05 [2025-04-07 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851789', 'tblTempUsageDetail_20' ) start [2025-04-07 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851789', 'tblTempUsageDetail_20' ) end [2025-04-07 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851789', 'tblTempVendorCDR_20' ) start [2025-04-07 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851789', 'tblTempVendorCDR_20' ) end [2025-04-07 02:26:18] Production.INFO: ProcessCDR(1,14851789,1,1,2) [2025-04-07 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851789', 'tblTempUsageDetail_20' ) start [2025-04-07 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851789', 'tblTempUsageDetail_20' ) end [2025-04-07 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:26:22] Production.INFO: ==30301== Releasing lock... [2025-04-07 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:26:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:27:05 [end_date_ymd] => 2025-04-07 02:27:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 23:27:05' and `end` < '2025-04-07 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-04-07 02:27:18] Production.INFO: count ==573 [2025-04-07 02:27:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:27:05 - End Time 2025-04-07 02:27:05 [2025-04-07 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851793', 'tblTempUsageDetail_20' ) start [2025-04-07 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851793', 'tblTempUsageDetail_20' ) end [2025-04-07 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851793', 'tblTempVendorCDR_20' ) start [2025-04-07 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851793', 'tblTempVendorCDR_20' ) end [2025-04-07 02:27:18] Production.INFO: ProcessCDR(1,14851793,1,1,2) [2025-04-07 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851793', 'tblTempUsageDetail_20' ) start [2025-04-07 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851793', 'tblTempUsageDetail_20' ) end [2025-04-07 02:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:27:22] Production.INFO: ==30418== Releasing lock... [2025-04-07 02:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:27:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:28:05 [end_date_ymd] => 2025-04-07 02:28:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 23:28:05' and `end` < '2025-04-07 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-04-07 02:28:18] Production.INFO: count ==573 [2025-04-07 02:28:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:28:05 - End Time 2025-04-07 02:28:05 [2025-04-07 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851799', 'tblTempUsageDetail_20' ) start [2025-04-07 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851799', 'tblTempUsageDetail_20' ) end [2025-04-07 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851799', 'tblTempVendorCDR_20' ) start [2025-04-07 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851799', 'tblTempVendorCDR_20' ) end [2025-04-07 02:28:18] Production.INFO: ProcessCDR(1,14851799,1,1,2) [2025-04-07 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851799', 'tblTempUsageDetail_20' ) start [2025-04-07 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851799', 'tblTempUsageDetail_20' ) end [2025-04-07 02:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:28:22] Production.INFO: ==30495== Releasing lock... [2025-04-07 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:28:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:29:05 [end_date_ymd] => 2025-04-07 02:29:05 [RateCDR] => 1 ) [2025-04-07 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 23:29:05' and `end` < '2025-04-07 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 02:29:17] Production.INFO: count ==570 [2025-04-07 02:29:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:29:05 - End Time 2025-04-07 02:29:05 [2025-04-07 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851804', 'tblTempUsageDetail_20' ) start [2025-04-07 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851804', 'tblTempUsageDetail_20' ) end [2025-04-07 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851804', 'tblTempVendorCDR_20' ) start [2025-04-07 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851804', 'tblTempVendorCDR_20' ) end [2025-04-07 02:29:18] Production.INFO: ProcessCDR(1,14851804,1,1,2) [2025-04-07 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851804', 'tblTempUsageDetail_20' ) start [2025-04-07 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851804', 'tblTempUsageDetail_20' ) end [2025-04-07 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:29:21] Production.INFO: ==30570== Releasing lock... [2025-04-07 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:29:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:30:06 [end_date_ymd] => 2025-04-07 02:30:06 [RateCDR] => 1 ) [2025-04-07 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-04-06 23:30:06' and `end` < '2025-04-07 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-04-07 02:30:19] Production.INFO: count ==575 [2025-04-07 02:30:19] Production.ERROR: pbx CDR StartTime 2025-04-06 23:30:06 - End Time 2025-04-07 02:30:06 [2025-04-07 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851810', 'tblTempUsageDetail_20' ) start [2025-04-07 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851810', 'tblTempUsageDetail_20' ) end [2025-04-07 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851810', 'tblTempVendorCDR_20' ) start [2025-04-07 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851810', 'tblTempVendorCDR_20' ) end [2025-04-07 02:30:19] Production.INFO: ProcessCDR(1,14851810,1,1,2) [2025-04-07 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851810', 'tblTempUsageDetail_20' ) start [2025-04-07 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851810', 'tblTempUsageDetail_20' ) end [2025-04-07 02:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:30:23] Production.INFO: ==30660== Releasing lock... [2025-04-07 02:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:30:23] Production.INFO: 33 MB #Memory Used# [2025-04-07 02:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:31:05 [end_date_ymd] => 2025-04-07 02:31:05 [RateCDR] => 1 ) [2025-04-07 02: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-04-06 23:31:05' and `end` < '2025-04-07 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 02:31:18] Production.INFO: count ==569 [2025-04-07 02:31:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:31:05 - End Time 2025-04-07 02:31:05 [2025-04-07 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851815', 'tblTempUsageDetail_20' ) start [2025-04-07 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851815', 'tblTempUsageDetail_20' ) end [2025-04-07 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851815', 'tblTempVendorCDR_20' ) start [2025-04-07 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851815', 'tblTempVendorCDR_20' ) end [2025-04-07 02:31:18] Production.INFO: ProcessCDR(1,14851815,1,1,2) [2025-04-07 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851815', 'tblTempUsageDetail_20' ) start [2025-04-07 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851815', 'tblTempUsageDetail_20' ) end [2025-04-07 02:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:31:22] Production.INFO: ==30742== Releasing lock... [2025-04-07 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:31:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:32:05 [end_date_ymd] => 2025-04-07 02:32:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 23:32:05' and `end` < '2025-04-07 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-04-07 02:32:18] Production.INFO: count ==566 [2025-04-07 02:32:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:32:05 - End Time 2025-04-07 02:32:05 [2025-04-07 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851820', 'tblTempUsageDetail_20' ) start [2025-04-07 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851820', 'tblTempUsageDetail_20' ) end [2025-04-07 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851820', 'tblTempVendorCDR_20' ) start [2025-04-07 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851820', 'tblTempVendorCDR_20' ) end [2025-04-07 02:32:18] Production.INFO: ProcessCDR(1,14851820,1,1,2) [2025-04-07 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851820', 'tblTempUsageDetail_20' ) start [2025-04-07 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851820', 'tblTempUsageDetail_20' ) end [2025-04-07 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:32:21] Production.INFO: ==30817== Releasing lock... [2025-04-07 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:32:21] Production.INFO: 33 MB #Memory Used# [2025-04-07 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:33:05 [end_date_ymd] => 2025-04-07 02:33:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 23:33:05' and `end` < '2025-04-07 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-04-07 02:33:18] Production.INFO: count ==563 [2025-04-07 02:33:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:33:05 - End Time 2025-04-07 02:33:05 [2025-04-07 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851825', 'tblTempUsageDetail_20' ) start [2025-04-07 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851825', 'tblTempUsageDetail_20' ) end [2025-04-07 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851825', 'tblTempVendorCDR_20' ) start [2025-04-07 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851825', 'tblTempVendorCDR_20' ) end [2025-04-07 02:33:18] Production.INFO: ProcessCDR(1,14851825,1,1,2) [2025-04-07 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851825', 'tblTempUsageDetail_20' ) start [2025-04-07 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851825', 'tblTempUsageDetail_20' ) end [2025-04-07 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:33:22] Production.INFO: ==30892== Releasing lock... [2025-04-07 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:33:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:34:05 [end_date_ymd] => 2025-04-07 02:34:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 23:34:05' and `end` < '2025-04-07 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-04-07 02:34:18] Production.INFO: count ==561 [2025-04-07 02:34:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:34:05 - End Time 2025-04-07 02:34:05 [2025-04-07 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851830', 'tblTempUsageDetail_20' ) start [2025-04-07 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851830', 'tblTempUsageDetail_20' ) end [2025-04-07 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851830', 'tblTempVendorCDR_20' ) start [2025-04-07 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851830', 'tblTempVendorCDR_20' ) end [2025-04-07 02:34:18] Production.INFO: ProcessCDR(1,14851830,1,1,2) [2025-04-07 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851830', 'tblTempUsageDetail_20' ) start [2025-04-07 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851830', 'tblTempUsageDetail_20' ) end [2025-04-07 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:34:22] Production.INFO: ==30981== Releasing lock... [2025-04-07 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:34:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 02:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:35:06 [end_date_ymd] => 2025-04-07 02:35:06 [RateCDR] => 1 ) [2025-04-07 02:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 23:35:06' and `end` < '2025-04-07 02:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 02:35:19] Production.INFO: count ==559 [2025-04-07 02:35:19] Production.ERROR: pbx CDR StartTime 2025-04-06 23:35:06 - End Time 2025-04-07 02:35:06 [2025-04-07 02:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851835', 'tblTempUsageDetail_20' ) start [2025-04-07 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851835', 'tblTempUsageDetail_20' ) end [2025-04-07 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851835', 'tblTempVendorCDR_20' ) start [2025-04-07 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851835', 'tblTempVendorCDR_20' ) end [2025-04-07 02:35:19] Production.INFO: ProcessCDR(1,14851835,1,1,2) [2025-04-07 02:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851835', 'tblTempUsageDetail_20' ) start [2025-04-07 02:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851835', 'tblTempUsageDetail_20' ) end [2025-04-07 02:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:35:23] Production.INFO: ==31064== Releasing lock... [2025-04-07 02:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:35:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:36:06 [end_date_ymd] => 2025-04-07 02:36:06 [RateCDR] => 1 ) [2025-04-07 02: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-04-06 23:36:06' and `end` < '2025-04-07 02: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-04-07 02:36:18] Production.INFO: count ==557 [2025-04-07 02:36:19] Production.ERROR: pbx CDR StartTime 2025-04-06 23:36:06 - End Time 2025-04-07 02:36:06 [2025-04-07 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851840', 'tblTempUsageDetail_20' ) start [2025-04-07 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851840', 'tblTempUsageDetail_20' ) end [2025-04-07 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851840', 'tblTempVendorCDR_20' ) start [2025-04-07 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851840', 'tblTempVendorCDR_20' ) end [2025-04-07 02:36:19] Production.INFO: ProcessCDR(1,14851840,1,1,2) [2025-04-07 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851840', 'tblTempUsageDetail_20' ) start [2025-04-07 02:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851840', 'tblTempUsageDetail_20' ) end [2025-04-07 02:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:36:23] Production.INFO: ==31139== Releasing lock... [2025-04-07 02:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:36:23] Production.INFO: 33 MB #Memory Used# [2025-04-07 02:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:37:06 [end_date_ymd] => 2025-04-07 02:37:06 [RateCDR] => 1 ) [2025-04-07 02:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 23:37:06' and `end` < '2025-04-07 02:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 02:37:19] Production.INFO: count ==553 [2025-04-07 02:37:19] Production.ERROR: pbx CDR StartTime 2025-04-06 23:37:06 - End Time 2025-04-07 02:37:06 [2025-04-07 02:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851845', 'tblTempUsageDetail_20' ) start [2025-04-07 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851845', 'tblTempUsageDetail_20' ) end [2025-04-07 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851845', 'tblTempVendorCDR_20' ) start [2025-04-07 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851845', 'tblTempVendorCDR_20' ) end [2025-04-07 02:37:19] Production.INFO: ProcessCDR(1,14851845,1,1,2) [2025-04-07 02:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851845', 'tblTempUsageDetail_20' ) start [2025-04-07 02:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851845', 'tblTempUsageDetail_20' ) end [2025-04-07 02:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:37:23] Production.INFO: ==31224== Releasing lock... [2025-04-07 02:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:37:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 02:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:38:06 [end_date_ymd] => 2025-04-07 02:38:06 [RateCDR] => 1 ) [2025-04-07 02: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-04-06 23:38:06' and `end` < '2025-04-07 02: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-04-07 02:38:19] Production.INFO: count ==550 [2025-04-07 02:38:19] Production.ERROR: pbx CDR StartTime 2025-04-06 23:38:06 - End Time 2025-04-07 02:38:06 [2025-04-07 02:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851850', 'tblTempUsageDetail_20' ) start [2025-04-07 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851850', 'tblTempUsageDetail_20' ) end [2025-04-07 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851850', 'tblTempVendorCDR_20' ) start [2025-04-07 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851850', 'tblTempVendorCDR_20' ) end [2025-04-07 02:38:19] Production.INFO: ProcessCDR(1,14851850,1,1,2) [2025-04-07 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851850', 'tblTempUsageDetail_20' ) start [2025-04-07 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851850', 'tblTempUsageDetail_20' ) end [2025-04-07 02:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:38:23] Production.INFO: ==31300== Releasing lock... [2025-04-07 02:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:38:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 02:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:39:06 [end_date_ymd] => 2025-04-07 02:39:06 [RateCDR] => 1 ) [2025-04-07 02:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 23:39:06' and `end` < '2025-04-07 02:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 02:39:18] Production.INFO: count ==548 [2025-04-07 02:39:19] Production.ERROR: pbx CDR StartTime 2025-04-06 23:39:06 - End Time 2025-04-07 02:39:06 [2025-04-07 02:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851855', 'tblTempUsageDetail_20' ) start [2025-04-07 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851855', 'tblTempUsageDetail_20' ) end [2025-04-07 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851855', 'tblTempVendorCDR_20' ) start [2025-04-07 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851855', 'tblTempVendorCDR_20' ) end [2025-04-07 02:39:19] Production.INFO: ProcessCDR(1,14851855,1,1,2) [2025-04-07 02:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851855', 'tblTempUsageDetail_20' ) start [2025-04-07 02:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851855', 'tblTempUsageDetail_20' ) end [2025-04-07 02:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:39:23] Production.INFO: ==31379== Releasing lock... [2025-04-07 02:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:39:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:40:06 [end_date_ymd] => 2025-04-07 02:40:06 [RateCDR] => 1 ) [2025-04-07 02:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 23:40:06' and `end` < '2025-04-07 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 02:40:19] Production.INFO: count ==543 [2025-04-07 02:40:19] Production.ERROR: pbx CDR StartTime 2025-04-06 23:40:06 - End Time 2025-04-07 02:40:06 [2025-04-07 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851861', 'tblTempUsageDetail_20' ) start [2025-04-07 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851861', 'tblTempUsageDetail_20' ) end [2025-04-07 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851861', 'tblTempVendorCDR_20' ) start [2025-04-07 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851861', 'tblTempVendorCDR_20' ) end [2025-04-07 02:40:19] Production.INFO: ProcessCDR(1,14851861,1,1,2) [2025-04-07 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851861', 'tblTempUsageDetail_20' ) start [2025-04-07 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851861', 'tblTempUsageDetail_20' ) end [2025-04-07 02:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:40:23] Production.INFO: ==31462== Releasing lock... [2025-04-07 02:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:40:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 02:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:41:06 [end_date_ymd] => 2025-04-07 02:41:06 [RateCDR] => 1 ) [2025-04-07 02: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-04-06 23:41:06' and `end` < '2025-04-07 02: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-04-07 02:41:19] Production.INFO: count ==534 [2025-04-07 02:41:19] Production.ERROR: pbx CDR StartTime 2025-04-06 23:41:06 - End Time 2025-04-07 02:41:06 [2025-04-07 02:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851866', 'tblTempUsageDetail_20' ) start [2025-04-07 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851866', 'tblTempUsageDetail_20' ) end [2025-04-07 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851866', 'tblTempVendorCDR_20' ) start [2025-04-07 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851866', 'tblTempVendorCDR_20' ) end [2025-04-07 02:41:19] Production.INFO: ProcessCDR(1,14851866,1,1,2) [2025-04-07 02:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851866', 'tblTempUsageDetail_20' ) start [2025-04-07 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851866', 'tblTempUsageDetail_20' ) end [2025-04-07 02:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:41:23] Production.INFO: ==31546== Releasing lock... [2025-04-07 02:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:41:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:42:06 [end_date_ymd] => 2025-04-07 02:42:06 [RateCDR] => 1 ) [2025-04-07 02:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 23:42:06' and `end` < '2025-04-07 02:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 02:42:19] Production.INFO: count ==524 [2025-04-07 02:42:19] Production.ERROR: pbx CDR StartTime 2025-04-06 23:42:06 - End Time 2025-04-07 02:42:06 [2025-04-07 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851871', 'tblTempUsageDetail_20' ) start [2025-04-07 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851871', 'tblTempUsageDetail_20' ) end [2025-04-07 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851871', 'tblTempVendorCDR_20' ) start [2025-04-07 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851871', 'tblTempVendorCDR_20' ) end [2025-04-07 02:42:19] Production.INFO: ProcessCDR(1,14851871,1,1,2) [2025-04-07 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851871', 'tblTempUsageDetail_20' ) start [2025-04-07 02:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851871', 'tblTempUsageDetail_20' ) end [2025-04-07 02:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:42:23] Production.INFO: ==31628== Releasing lock... [2025-04-07 02:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:42:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:43:05 [end_date_ymd] => 2025-04-07 02:43:05 [RateCDR] => 1 ) [2025-04-07 02:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 23:43:05' and `end` < '2025-04-07 02:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 02:43:18] Production.INFO: count ==526 [2025-04-07 02:43:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:43:05 - End Time 2025-04-07 02:43:05 [2025-04-07 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851876', 'tblTempUsageDetail_20' ) start [2025-04-07 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851876', 'tblTempUsageDetail_20' ) end [2025-04-07 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851876', 'tblTempVendorCDR_20' ) start [2025-04-07 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851876', 'tblTempVendorCDR_20' ) end [2025-04-07 02:43:19] Production.INFO: ProcessCDR(1,14851876,1,1,2) [2025-04-07 02:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851876', 'tblTempUsageDetail_20' ) start [2025-04-07 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851876', 'tblTempUsageDetail_20' ) end [2025-04-07 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:43:22] Production.INFO: ==31747== Releasing lock... [2025-04-07 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:43:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:44:05 [end_date_ymd] => 2025-04-07 02:44:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 23:44:05' and `end` < '2025-04-07 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-04-07 02:44:18] Production.INFO: count ==520 [2025-04-07 02:44:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:44:05 - End Time 2025-04-07 02:44:05 [2025-04-07 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851881', 'tblTempUsageDetail_20' ) start [2025-04-07 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851881', 'tblTempUsageDetail_20' ) end [2025-04-07 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851881', 'tblTempVendorCDR_20' ) start [2025-04-07 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851881', 'tblTempVendorCDR_20' ) end [2025-04-07 02:44:18] Production.INFO: ProcessCDR(1,14851881,1,1,2) [2025-04-07 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851881', 'tblTempUsageDetail_20' ) start [2025-04-07 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851881', 'tblTempUsageDetail_20' ) end [2025-04-07 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:44:22] Production.INFO: ==31832== Releasing lock... [2025-04-07 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:44:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 02:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:45:06 [end_date_ymd] => 2025-04-07 02:45:06 [RateCDR] => 1 ) [2025-04-07 02: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-04-06 23:45:06' and `end` < '2025-04-07 02: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-04-07 02:45:19] Production.INFO: count ==520 [2025-04-07 02:45:19] Production.ERROR: pbx CDR StartTime 2025-04-06 23:45:06 - End Time 2025-04-07 02:45:06 [2025-04-07 02:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851886', 'tblTempUsageDetail_20' ) start [2025-04-07 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851886', 'tblTempUsageDetail_20' ) end [2025-04-07 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851886', 'tblTempVendorCDR_20' ) start [2025-04-07 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851886', 'tblTempVendorCDR_20' ) end [2025-04-07 02:45:19] Production.INFO: ProcessCDR(1,14851886,1,1,2) [2025-04-07 02:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851886', 'tblTempUsageDetail_20' ) start [2025-04-07 02:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851886', 'tblTempUsageDetail_20' ) end [2025-04-07 02:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:45:23] Production.INFO: ==31919== Releasing lock... [2025-04-07 02:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:45:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:46:05 [end_date_ymd] => 2025-04-07 02:46:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 23:46:05' and `end` < '2025-04-07 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-04-07 02:46:18] Production.INFO: count ==520 [2025-04-07 02:46:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:46:05 - End Time 2025-04-07 02:46:05 [2025-04-07 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851891', 'tblTempUsageDetail_20' ) start [2025-04-07 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851891', 'tblTempUsageDetail_20' ) end [2025-04-07 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851891', 'tblTempVendorCDR_20' ) start [2025-04-07 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851891', 'tblTempVendorCDR_20' ) end [2025-04-07 02:46:18] Production.INFO: ProcessCDR(1,14851891,1,1,2) [2025-04-07 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851891', 'tblTempUsageDetail_20' ) start [2025-04-07 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851891', 'tblTempUsageDetail_20' ) end [2025-04-07 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:46:22] Production.INFO: ==32001== Releasing lock... [2025-04-07 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:46:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:47:05 [end_date_ymd] => 2025-04-07 02:47:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 23:47:05' and `end` < '2025-04-07 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-04-07 02:47:18] Production.INFO: count ==520 [2025-04-07 02:47:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:47:05 - End Time 2025-04-07 02:47:05 [2025-04-07 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851896', 'tblTempUsageDetail_20' ) start [2025-04-07 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851896', 'tblTempUsageDetail_20' ) end [2025-04-07 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851896', 'tblTempVendorCDR_20' ) start [2025-04-07 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851896', 'tblTempVendorCDR_20' ) end [2025-04-07 02:47:18] Production.INFO: ProcessCDR(1,14851896,1,1,2) [2025-04-07 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851896', 'tblTempUsageDetail_20' ) start [2025-04-07 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851896', 'tblTempUsageDetail_20' ) end [2025-04-07 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:47:22] Production.INFO: ==32090== Releasing lock... [2025-04-07 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:47:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:48:05 [end_date_ymd] => 2025-04-07 02:48:05 [RateCDR] => 1 ) [2025-04-07 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 23:48:05' and `end` < '2025-04-07 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 02:48:18] Production.INFO: count ==520 [2025-04-07 02:48:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:48:05 - End Time 2025-04-07 02:48:05 [2025-04-07 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851901', 'tblTempUsageDetail_20' ) start [2025-04-07 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851901', 'tblTempUsageDetail_20' ) end [2025-04-07 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851901', 'tblTempVendorCDR_20' ) start [2025-04-07 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851901', 'tblTempVendorCDR_20' ) end [2025-04-07 02:48:18] Production.INFO: ProcessCDR(1,14851901,1,1,2) [2025-04-07 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851901', 'tblTempUsageDetail_20' ) start [2025-04-07 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851901', 'tblTempUsageDetail_20' ) end [2025-04-07 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:48:22] Production.INFO: ==32170== Releasing lock... [2025-04-07 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:48:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 02:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:49:06 [end_date_ymd] => 2025-04-07 02:49:06 [RateCDR] => 1 ) [2025-04-07 02:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 23:49:06' and `end` < '2025-04-07 02:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 02:49:19] Production.INFO: count ==520 [2025-04-07 02:49:19] Production.ERROR: pbx CDR StartTime 2025-04-06 23:49:06 - End Time 2025-04-07 02:49:06 [2025-04-07 02:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851906', 'tblTempUsageDetail_20' ) start [2025-04-07 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851906', 'tblTempUsageDetail_20' ) end [2025-04-07 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851906', 'tblTempVendorCDR_20' ) start [2025-04-07 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851906', 'tblTempVendorCDR_20' ) end [2025-04-07 02:49:19] Production.INFO: ProcessCDR(1,14851906,1,1,2) [2025-04-07 02:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851906', 'tblTempUsageDetail_20' ) start [2025-04-07 02:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851906', 'tblTempUsageDetail_20' ) end [2025-04-07 02:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:49:23] Production.INFO: ==32248== Releasing lock... [2025-04-07 02:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:49:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:50:06 [end_date_ymd] => 2025-04-07 02:50:06 [RateCDR] => 1 ) [2025-04-07 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-04-06 23:50:06' and `end` < '2025-04-07 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-04-07 02:50:19] Production.INFO: count ==518 [2025-04-07 02:50:19] Production.ERROR: pbx CDR StartTime 2025-04-06 23:50:06 - End Time 2025-04-07 02:50:06 [2025-04-07 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851912', 'tblTempUsageDetail_20' ) start [2025-04-07 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851912', 'tblTempUsageDetail_20' ) end [2025-04-07 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851912', 'tblTempVendorCDR_20' ) start [2025-04-07 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851912', 'tblTempVendorCDR_20' ) end [2025-04-07 02:50:19] Production.INFO: ProcessCDR(1,14851912,1,1,2) [2025-04-07 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851912', 'tblTempUsageDetail_20' ) start [2025-04-07 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851912', 'tblTempUsageDetail_20' ) end [2025-04-07 02:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:50:23] Production.INFO: ==32326== Releasing lock... [2025-04-07 02:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:50:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 02:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:51:06 [end_date_ymd] => 2025-04-07 02:51:06 [RateCDR] => 1 ) [2025-04-07 02: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-04-06 23:51:06' and `end` < '2025-04-07 02: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-04-07 02:51:19] Production.INFO: count ==509 [2025-04-07 02:51:19] Production.ERROR: pbx CDR StartTime 2025-04-06 23:51:06 - End Time 2025-04-07 02:51:06 [2025-04-07 02:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851917', 'tblTempUsageDetail_20' ) start [2025-04-07 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851917', 'tblTempUsageDetail_20' ) end [2025-04-07 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851917', 'tblTempVendorCDR_20' ) start [2025-04-07 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851917', 'tblTempVendorCDR_20' ) end [2025-04-07 02:51:19] Production.INFO: ProcessCDR(1,14851917,1,1,2) [2025-04-07 02:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851917', 'tblTempUsageDetail_20' ) start [2025-04-07 02:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851917', 'tblTempUsageDetail_20' ) end [2025-04-07 02:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:51:23] Production.INFO: ==32415== Releasing lock... [2025-04-07 02:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:51:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-07 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:52:05 [end_date_ymd] => 2025-04-07 02:52:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 23:52:05' and `end` < '2025-04-07 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 02:52:18] Production.INFO: count ==507 [2025-04-07 02:52:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:52:05 - End Time 2025-04-07 02:52:05 [2025-04-07 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851922', 'tblTempUsageDetail_20' ) start [2025-04-07 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851922', 'tblTempUsageDetail_20' ) end [2025-04-07 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851922', 'tblTempVendorCDR_20' ) start [2025-04-07 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851922', 'tblTempVendorCDR_20' ) end [2025-04-07 02:52:18] Production.INFO: ProcessCDR(1,14851922,1,1,2) [2025-04-07 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851922', 'tblTempUsageDetail_20' ) start [2025-04-07 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851922', 'tblTempUsageDetail_20' ) end [2025-04-07 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:52:22] Production.INFO: ==32491== Releasing lock... [2025-04-07 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:52:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:53:06 [end_date_ymd] => 2025-04-07 02:53:06 [RateCDR] => 1 ) [2025-04-07 02:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 23:53:06' and `end` < '2025-04-07 02:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 02:53:18] Production.INFO: count ==514 [2025-04-07 02:53:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:53:06 - End Time 2025-04-07 02:53:06 [2025-04-07 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851927', 'tblTempUsageDetail_20' ) start [2025-04-07 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851927', 'tblTempUsageDetail_20' ) end [2025-04-07 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851927', 'tblTempVendorCDR_20' ) start [2025-04-07 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851927', 'tblTempVendorCDR_20' ) end [2025-04-07 02:53:18] Production.INFO: ProcessCDR(1,14851927,1,1,2) [2025-04-07 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851927', 'tblTempUsageDetail_20' ) start [2025-04-07 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851927', 'tblTempUsageDetail_20' ) end [2025-04-07 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:53:22] Production.INFO: ==32573== Releasing lock... [2025-04-07 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:53:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-07 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:54:05 [end_date_ymd] => 2025-04-07 02:54:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 23:54:05' and `end` < '2025-04-07 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-04-07 02:54:18] Production.INFO: count ==514 [2025-04-07 02:54:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:54:05 - End Time 2025-04-07 02:54:05 [2025-04-07 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851932', 'tblTempUsageDetail_20' ) start [2025-04-07 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851932', 'tblTempUsageDetail_20' ) end [2025-04-07 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851932', 'tblTempVendorCDR_20' ) start [2025-04-07 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851932', 'tblTempVendorCDR_20' ) end [2025-04-07 02:54:18] Production.INFO: ProcessCDR(1,14851932,1,1,2) [2025-04-07 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851932', 'tblTempUsageDetail_20' ) start [2025-04-07 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851932', 'tblTempUsageDetail_20' ) end [2025-04-07 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:54:22] Production.INFO: ==32652== Releasing lock... [2025-04-07 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:54:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-07 02:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:55:06 [end_date_ymd] => 2025-04-07 02:55:06 [RateCDR] => 1 ) [2025-04-07 02:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 23:55:06' and `end` < '2025-04-07 02:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 02:55:19] Production.INFO: count ==513 [2025-04-07 02:55:19] Production.ERROR: pbx CDR StartTime 2025-04-06 23:55:06 - End Time 2025-04-07 02:55:06 [2025-04-07 02:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851937', 'tblTempUsageDetail_20' ) start [2025-04-07 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851937', 'tblTempUsageDetail_20' ) end [2025-04-07 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851937', 'tblTempVendorCDR_20' ) start [2025-04-07 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851937', 'tblTempVendorCDR_20' ) end [2025-04-07 02:55:19] Production.INFO: ProcessCDR(1,14851937,1,1,2) [2025-04-07 02:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851937', 'tblTempUsageDetail_20' ) start [2025-04-07 02:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851937', 'tblTempUsageDetail_20' ) end [2025-04-07 02:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:55:23] Production.INFO: ==32721== Releasing lock... [2025-04-07 02:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:55:23] Production.INFO: 33 MB #Memory Used# [2025-04-07 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:56:05 [end_date_ymd] => 2025-04-07 02:56:05 [RateCDR] => 1 ) [2025-04-07 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-04-06 23:56:05' and `end` < '2025-04-07 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-04-07 02:56:18] Production.INFO: count ==505 [2025-04-07 02:56:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:56:05 - End Time 2025-04-07 02:56:05 [2025-04-07 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851942', 'tblTempUsageDetail_20' ) start [2025-04-07 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851942', 'tblTempUsageDetail_20' ) end [2025-04-07 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851942', 'tblTempVendorCDR_20' ) start [2025-04-07 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851942', 'tblTempVendorCDR_20' ) end [2025-04-07 02:56:18] Production.INFO: ProcessCDR(1,14851942,1,1,2) [2025-04-07 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851942', 'tblTempUsageDetail_20' ) start [2025-04-07 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851942', 'tblTempUsageDetail_20' ) end [2025-04-07 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:56:22] Production.INFO: ==338== Releasing lock... [2025-04-07 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:56:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 02:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:57:06 [end_date_ymd] => 2025-04-07 02:57:06 [RateCDR] => 1 ) [2025-04-07 02:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 23:57:06' and `end` < '2025-04-07 02:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 02:57:19] Production.INFO: count ==502 [2025-04-07 02:57:19] Production.ERROR: pbx CDR StartTime 2025-04-06 23:57:06 - End Time 2025-04-07 02:57:06 [2025-04-07 02:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851947', 'tblTempUsageDetail_20' ) start [2025-04-07 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851947', 'tblTempUsageDetail_20' ) end [2025-04-07 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851947', 'tblTempVendorCDR_20' ) start [2025-04-07 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851947', 'tblTempVendorCDR_20' ) end [2025-04-07 02:57:19] Production.INFO: ProcessCDR(1,14851947,1,1,2) [2025-04-07 02:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851947', 'tblTempUsageDetail_20' ) start [2025-04-07 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851947', 'tblTempUsageDetail_20' ) end [2025-04-07 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:57:22] Production.INFO: ==429== Releasing lock... [2025-04-07 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:57:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:58:05 [end_date_ymd] => 2025-04-07 02:58:05 [RateCDR] => 1 ) [2025-04-07 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 23:58:05' and `end` < '2025-04-07 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 02:58:18] Production.INFO: count ==501 [2025-04-07 02:58:18] Production.ERROR: pbx CDR StartTime 2025-04-06 23:58:05 - End Time 2025-04-07 02:58:05 [2025-04-07 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851952', 'tblTempUsageDetail_20' ) start [2025-04-07 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851952', 'tblTempUsageDetail_20' ) end [2025-04-07 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851952', 'tblTempVendorCDR_20' ) start [2025-04-07 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851952', 'tblTempVendorCDR_20' ) end [2025-04-07 02:58:18] Production.INFO: ProcessCDR(1,14851952,1,1,2) [2025-04-07 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851952', 'tblTempUsageDetail_20' ) start [2025-04-07 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851952', 'tblTempUsageDetail_20' ) end [2025-04-07 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:58:22] Production.INFO: ==548== Releasing lock... [2025-04-07 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:58:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 02:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 23:59:06 [end_date_ymd] => 2025-04-07 02:59:06 [RateCDR] => 1 ) [2025-04-07 02: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-04-06 23:59:06' and `end` < '2025-04-07 02: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-04-07 02:59:19] Production.INFO: count ==497 [2025-04-07 02:59:19] Production.ERROR: pbx CDR StartTime 2025-04-06 23:59:06 - End Time 2025-04-07 02:59:06 [2025-04-07 02:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851957', 'tblTempUsageDetail_20' ) start [2025-04-07 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851957', 'tblTempUsageDetail_20' ) end [2025-04-07 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851957', 'tblTempVendorCDR_20' ) start [2025-04-07 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851957', 'tblTempVendorCDR_20' ) end [2025-04-07 02:59:19] Production.INFO: ProcessCDR(1,14851957,1,1,2) [2025-04-07 02:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 02:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 02:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851957', 'tblTempUsageDetail_20' ) start [2025-04-07 02:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851957', 'tblTempUsageDetail_20' ) end [2025-04-07 02:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 02:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 02:59:23] Production.INFO: ==633== Releasing lock... [2025-04-07 02:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 02:59:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-07 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:00:06 [end_date_ymd] => 2025-04-07 03:00:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:00:06' and `end` < '2025-04-07 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-04-07 03:00:19] Production.INFO: count ==502 [2025-04-07 03:00:19] Production.ERROR: pbx CDR StartTime 2025-04-07 00:00:06 - End Time 2025-04-07 03:00:06 [2025-04-07 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851963', 'tblTempUsageDetail_20' ) start [2025-04-07 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851963', 'tblTempUsageDetail_20' ) end [2025-04-07 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851963', 'tblTempVendorCDR_20' ) start [2025-04-07 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851963', 'tblTempVendorCDR_20' ) end [2025-04-07 03:00:19] Production.INFO: ProcessCDR(1,14851963,1,1,2) [2025-04-07 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851963', 'tblTempUsageDetail_20' ) start [2025-04-07 03:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851963', 'tblTempUsageDetail_20' ) end [2025-04-07 03:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:00:24] Production.INFO: ==734== Releasing lock... [2025-04-07 03:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:00:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:01:05 [end_date_ymd] => 2025-04-07 03:01:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:01:05' and `end` < '2025-04-07 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-04-07 03:01:18] Production.INFO: count ==484 [2025-04-07 03:01:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:01:05 - End Time 2025-04-07 03:01:05 [2025-04-07 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851968', 'tblTempUsageDetail_20' ) start [2025-04-07 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851968', 'tblTempUsageDetail_20' ) end [2025-04-07 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851968', 'tblTempVendorCDR_20' ) start [2025-04-07 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851968', 'tblTempVendorCDR_20' ) end [2025-04-07 03:01:18] Production.INFO: ProcessCDR(1,14851968,1,1,2) [2025-04-07 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851968', 'tblTempUsageDetail_20' ) start [2025-04-07 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851968', 'tblTempUsageDetail_20' ) end [2025-04-07 03:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:01:22] Production.INFO: ==827== Releasing lock... [2025-04-07 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:01:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:02:05 [end_date_ymd] => 2025-04-07 03:02:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:02:05' and `end` < '2025-04-07 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-04-07 03:02:18] Production.INFO: count ==497 [2025-04-07 03:02:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:02:05 - End Time 2025-04-07 03:02:05 [2025-04-07 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851973', 'tblTempUsageDetail_20' ) start [2025-04-07 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851973', 'tblTempUsageDetail_20' ) end [2025-04-07 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851973', 'tblTempVendorCDR_20' ) start [2025-04-07 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851973', 'tblTempVendorCDR_20' ) end [2025-04-07 03:02:18] Production.INFO: ProcessCDR(1,14851973,1,1,2) [2025-04-07 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851973', 'tblTempUsageDetail_20' ) start [2025-04-07 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851973', 'tblTempUsageDetail_20' ) end [2025-04-07 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:02:22] Production.INFO: ==980== Releasing lock... [2025-04-07 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:02:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 03:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:03:06 [end_date_ymd] => 2025-04-07 03:03:06 [RateCDR] => 1 ) [2025-04-07 03:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 00:03:06' and `end` < '2025-04-07 03:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 03:03:19] Production.INFO: count ==528 [2025-04-07 03:03:19] Production.ERROR: pbx CDR StartTime 2025-04-07 00:03:06 - End Time 2025-04-07 03:03:06 [2025-04-07 03:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851978', 'tblTempUsageDetail_20' ) start [2025-04-07 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851978', 'tblTempUsageDetail_20' ) end [2025-04-07 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851978', 'tblTempVendorCDR_20' ) start [2025-04-07 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851978', 'tblTempVendorCDR_20' ) end [2025-04-07 03:03:19] Production.INFO: ProcessCDR(1,14851978,1,1,2) [2025-04-07 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851978', 'tblTempUsageDetail_20' ) start [2025-04-07 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851978', 'tblTempUsageDetail_20' ) end [2025-04-07 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:03:22] Production.INFO: ==1055== Releasing lock... [2025-04-07 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:03:22] Production.INFO: 33 MB #Memory Used# [2025-04-07 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:04:05 [end_date_ymd] => 2025-04-07 03:04:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:04:05' and `end` < '2025-04-07 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-04-07 03:04:18] Production.INFO: count ==532 [2025-04-07 03:04:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:04:05 - End Time 2025-04-07 03:04:05 [2025-04-07 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851983', 'tblTempUsageDetail_20' ) start [2025-04-07 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851983', 'tblTempUsageDetail_20' ) end [2025-04-07 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851983', 'tblTempVendorCDR_20' ) start [2025-04-07 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851983', 'tblTempVendorCDR_20' ) end [2025-04-07 03:04:18] Production.INFO: ProcessCDR(1,14851983,1,1,2) [2025-04-07 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851983', 'tblTempUsageDetail_20' ) start [2025-04-07 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851983', 'tblTempUsageDetail_20' ) end [2025-04-07 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:04:21] Production.INFO: ==1133== Releasing lock... [2025-04-07 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:04:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:05:05 [end_date_ymd] => 2025-04-07 03:05:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:05:05' and `end` < '2025-04-07 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-04-07 03:05:18] Production.INFO: count ==527 [2025-04-07 03:05:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:05:05 - End Time 2025-04-07 03:05:05 [2025-04-07 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851988', 'tblTempUsageDetail_20' ) start [2025-04-07 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851988', 'tblTempUsageDetail_20' ) end [2025-04-07 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851988', 'tblTempVendorCDR_20' ) start [2025-04-07 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851988', 'tblTempVendorCDR_20' ) end [2025-04-07 03:05:18] Production.INFO: ProcessCDR(1,14851988,1,1,2) [2025-04-07 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851988', 'tblTempUsageDetail_20' ) start [2025-04-07 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851988', 'tblTempUsageDetail_20' ) end [2025-04-07 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:05:21] Production.INFO: ==1212== Releasing lock... [2025-04-07 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:05:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:06:05 [end_date_ymd] => 2025-04-07 03:06:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:06:05' and `end` < '2025-04-07 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-04-07 03:06:18] Production.INFO: count ==523 [2025-04-07 03:06:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:06:05 - End Time 2025-04-07 03:06:05 [2025-04-07 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851993', 'tblTempUsageDetail_20' ) start [2025-04-07 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851993', 'tblTempUsageDetail_20' ) end [2025-04-07 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851993', 'tblTempVendorCDR_20' ) start [2025-04-07 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851993', 'tblTempVendorCDR_20' ) end [2025-04-07 03:06:18] Production.INFO: ProcessCDR(1,14851993,1,1,2) [2025-04-07 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851993', 'tblTempUsageDetail_20' ) start [2025-04-07 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851993', 'tblTempUsageDetail_20' ) end [2025-04-07 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:06:21] Production.INFO: ==1374== Releasing lock... [2025-04-07 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:06:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:07:05 [end_date_ymd] => 2025-04-07 03:07:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:07:05' and `end` < '2025-04-07 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-04-07 03:07:18] Production.INFO: count ==522 [2025-04-07 03:07:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:07:05 - End Time 2025-04-07 03:07:05 [2025-04-07 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851998', 'tblTempUsageDetail_20' ) start [2025-04-07 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851998', 'tblTempUsageDetail_20' ) end [2025-04-07 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851998', 'tblTempVendorCDR_20' ) start [2025-04-07 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851998', 'tblTempVendorCDR_20' ) end [2025-04-07 03:07:18] Production.INFO: ProcessCDR(1,14851998,1,1,2) [2025-04-07 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851998', 'tblTempUsageDetail_20' ) start [2025-04-07 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851998', 'tblTempUsageDetail_20' ) end [2025-04-07 03:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:07:22] Production.INFO: ==1446== Releasing lock... [2025-04-07 03:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:07:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 03:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:08:06 [end_date_ymd] => 2025-04-07 03:08:06 [RateCDR] => 1 ) [2025-04-07 03: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-04-07 00:08:06' and `end` < '2025-04-07 03: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-04-07 03:08:19] Production.INFO: count ==523 [2025-04-07 03:08:19] Production.ERROR: pbx CDR StartTime 2025-04-07 00:08:06 - End Time 2025-04-07 03:08:06 [2025-04-07 03:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852003', 'tblTempUsageDetail_20' ) start [2025-04-07 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852003', 'tblTempUsageDetail_20' ) end [2025-04-07 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852003', 'tblTempVendorCDR_20' ) start [2025-04-07 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852003', 'tblTempVendorCDR_20' ) end [2025-04-07 03:08:19] Production.INFO: ProcessCDR(1,14852003,1,1,2) [2025-04-07 03:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852003', 'tblTempUsageDetail_20' ) start [2025-04-07 03:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852003', 'tblTempUsageDetail_20' ) end [2025-04-07 03:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:08:24] Production.INFO: ==1553== Releasing lock... [2025-04-07 03:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:08:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:09:05 [end_date_ymd] => 2025-04-07 03:09:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:09:05' and `end` < '2025-04-07 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-04-07 03:09:18] Production.INFO: count ==520 [2025-04-07 03:09:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:09:05 - End Time 2025-04-07 03:09:05 [2025-04-07 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852008', 'tblTempUsageDetail_20' ) start [2025-04-07 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852008', 'tblTempUsageDetail_20' ) end [2025-04-07 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852008', 'tblTempVendorCDR_20' ) start [2025-04-07 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852008', 'tblTempVendorCDR_20' ) end [2025-04-07 03:09:18] Production.INFO: ProcessCDR(1,14852008,1,1,2) [2025-04-07 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852008', 'tblTempUsageDetail_20' ) start [2025-04-07 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852008', 'tblTempUsageDetail_20' ) end [2025-04-07 03:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:09:22] Production.INFO: ==1711== Releasing lock... [2025-04-07 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:09:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 03:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:10:07 [end_date_ymd] => 2025-04-07 03:10:07 [RateCDR] => 1 ) [2025-04-07 03:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 00:10:07' and `end` < '2025-04-07 03:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 03:10:20] Production.INFO: count ==522 [2025-04-07 03:10:20] Production.ERROR: pbx CDR StartTime 2025-04-07 00:10:07 - End Time 2025-04-07 03:10:07 [2025-04-07 03:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852014', 'tblTempUsageDetail_20' ) start [2025-04-07 03:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852014', 'tblTempUsageDetail_20' ) end [2025-04-07 03:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852014', 'tblTempVendorCDR_20' ) start [2025-04-07 03:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852014', 'tblTempVendorCDR_20' ) end [2025-04-07 03:10:20] Production.INFO: ProcessCDR(1,14852014,1,1,2) [2025-04-07 03:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852014', 'tblTempUsageDetail_20' ) start [2025-04-07 03:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852014', 'tblTempUsageDetail_20' ) end [2025-04-07 03:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:10:23] Production.INFO: ==1789== Releasing lock... [2025-04-07 03:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:10:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 03:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:11:04 [end_date_ymd] => 2025-04-07 03:11:04 [RateCDR] => 1 ) [2025-04-07 03: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-04-07 00:11:04' and `end` < '2025-04-07 03: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-04-07 03:11:17] Production.INFO: count ==521 [2025-04-07 03:11:17] Production.ERROR: pbx CDR StartTime 2025-04-07 00:11:04 - End Time 2025-04-07 03:11:04 [2025-04-07 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852019', 'tblTempUsageDetail_20' ) start [2025-04-07 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852019', 'tblTempUsageDetail_20' ) end [2025-04-07 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852019', 'tblTempVendorCDR_20' ) start [2025-04-07 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852019', 'tblTempVendorCDR_20' ) end [2025-04-07 03:11:17] Production.INFO: ProcessCDR(1,14852019,1,1,2) [2025-04-07 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852019', 'tblTempUsageDetail_20' ) start [2025-04-07 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852019', 'tblTempUsageDetail_20' ) end [2025-04-07 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:11:21] Production.INFO: ==1867== Releasing lock... [2025-04-07 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:11:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 03:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:12:06 [end_date_ymd] => 2025-04-07 03:12:06 [RateCDR] => 1 ) [2025-04-07 03: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-04-07 00:12:06' and `end` < '2025-04-07 03: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-04-07 03:12:18] Production.INFO: count ==521 [2025-04-07 03:12:19] Production.ERROR: pbx CDR StartTime 2025-04-07 00:12:06 - End Time 2025-04-07 03:12:06 [2025-04-07 03:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852024', 'tblTempUsageDetail_20' ) start [2025-04-07 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852024', 'tblTempUsageDetail_20' ) end [2025-04-07 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852024', 'tblTempVendorCDR_20' ) start [2025-04-07 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852024', 'tblTempVendorCDR_20' ) end [2025-04-07 03:12:19] Production.INFO: ProcessCDR(1,14852024,1,1,2) [2025-04-07 03:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852024', 'tblTempUsageDetail_20' ) start [2025-04-07 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852024', 'tblTempUsageDetail_20' ) end [2025-04-07 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:12:22] Production.INFO: ==1946== Releasing lock... [2025-04-07 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:12:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:13:05 [end_date_ymd] => 2025-04-07 03:13:05 [RateCDR] => 1 ) [2025-04-07 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 00:13:05' and `end` < '2025-04-07 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 03:13:18] Production.INFO: count ==519 [2025-04-07 03:13:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:13:05 - End Time 2025-04-07 03:13:05 [2025-04-07 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852029', 'tblTempUsageDetail_20' ) start [2025-04-07 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852029', 'tblTempUsageDetail_20' ) end [2025-04-07 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852029', 'tblTempVendorCDR_20' ) start [2025-04-07 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852029', 'tblTempVendorCDR_20' ) end [2025-04-07 03:13:18] Production.INFO: ProcessCDR(1,14852029,1,1,2) [2025-04-07 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852029', 'tblTempUsageDetail_20' ) start [2025-04-07 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852029', 'tblTempUsageDetail_20' ) end [2025-04-07 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:13:22] Production.INFO: ==2136== Releasing lock... [2025-04-07 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:13:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 03:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:14:05 [end_date_ymd] => 2025-04-07 03:14:05 [RateCDR] => 1 ) [2025-04-07 03: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-04-07 00:14:05' and `end` < '2025-04-07 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-04-07 03:14:18] Production.INFO: count ==518 [2025-04-07 03:14:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:14:05 - End Time 2025-04-07 03:14:05 [2025-04-07 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852034', 'tblTempUsageDetail_20' ) start [2025-04-07 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852034', 'tblTempUsageDetail_20' ) end [2025-04-07 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852034', 'tblTempVendorCDR_20' ) start [2025-04-07 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852034', 'tblTempVendorCDR_20' ) end [2025-04-07 03:14:18] Production.INFO: ProcessCDR(1,14852034,1,1,2) [2025-04-07 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852034', 'tblTempUsageDetail_20' ) start [2025-04-07 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852034', 'tblTempUsageDetail_20' ) end [2025-04-07 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:14:22] Production.INFO: ==2212== Releasing lock... [2025-04-07 03:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:14:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:15:05 [end_date_ymd] => 2025-04-07 03:15:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:15:05' and `end` < '2025-04-07 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-04-07 03:15:18] Production.INFO: count ==518 [2025-04-07 03:15:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:15:05 - End Time 2025-04-07 03:15:05 [2025-04-07 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852039', 'tblTempUsageDetail_20' ) start [2025-04-07 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852039', 'tblTempUsageDetail_20' ) end [2025-04-07 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852039', 'tblTempVendorCDR_20' ) start [2025-04-07 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852039', 'tblTempVendorCDR_20' ) end [2025-04-07 03:15:18] Production.INFO: ProcessCDR(1,14852039,1,1,2) [2025-04-07 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852039', 'tblTempUsageDetail_20' ) start [2025-04-07 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852039', 'tblTempUsageDetail_20' ) end [2025-04-07 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:15:21] Production.INFO: ==2284== Releasing lock... [2025-04-07 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:15:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 03:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:16:06 [end_date_ymd] => 2025-04-07 03:16:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:16:06' and `end` < '2025-04-07 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-04-07 03:16:18] Production.INFO: count ==518 [2025-04-07 03:16:19] Production.ERROR: pbx CDR StartTime 2025-04-07 00:16:06 - End Time 2025-04-07 03:16:06 [2025-04-07 03:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852044', 'tblTempUsageDetail_20' ) start [2025-04-07 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852044', 'tblTempUsageDetail_20' ) end [2025-04-07 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852044', 'tblTempVendorCDR_20' ) start [2025-04-07 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852044', 'tblTempVendorCDR_20' ) end [2025-04-07 03:16:19] Production.INFO: ProcessCDR(1,14852044,1,1,2) [2025-04-07 03:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852044', 'tblTempUsageDetail_20' ) start [2025-04-07 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852044', 'tblTempUsageDetail_20' ) end [2025-04-07 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:16:22] Production.INFO: ==2357== Releasing lock... [2025-04-07 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:16:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:17:05 [end_date_ymd] => 2025-04-07 03:17:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:17:05' and `end` < '2025-04-07 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-04-07 03:17:17] Production.INFO: count ==514 [2025-04-07 03:17:17] Production.ERROR: pbx CDR StartTime 2025-04-07 00:17:05 - End Time 2025-04-07 03:17:05 [2025-04-07 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852049', 'tblTempUsageDetail_20' ) start [2025-04-07 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852049', 'tblTempUsageDetail_20' ) end [2025-04-07 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852049', 'tblTempVendorCDR_20' ) start [2025-04-07 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852049', 'tblTempVendorCDR_20' ) end [2025-04-07 03:17:17] Production.INFO: ProcessCDR(1,14852049,1,1,2) [2025-04-07 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852049', 'tblTempUsageDetail_20' ) start [2025-04-07 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852049', 'tblTempUsageDetail_20' ) end [2025-04-07 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:17:21] Production.INFO: ==2510== Releasing lock... [2025-04-07 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:17:21] Production.INFO: 32 MB #Memory Used# [2025-04-07 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:18:05 [end_date_ymd] => 2025-04-07 03:18:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:18:05' and `end` < '2025-04-07 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-04-07 03:18:18] Production.INFO: count ==513 [2025-04-07 03:18:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:18:05 - End Time 2025-04-07 03:18:05 [2025-04-07 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852054', 'tblTempUsageDetail_20' ) start [2025-04-07 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852054', 'tblTempUsageDetail_20' ) end [2025-04-07 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852054', 'tblTempVendorCDR_20' ) start [2025-04-07 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852054', 'tblTempVendorCDR_20' ) end [2025-04-07 03:18:18] Production.INFO: ProcessCDR(1,14852054,1,1,2) [2025-04-07 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852054', 'tblTempUsageDetail_20' ) start [2025-04-07 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852054', 'tblTempUsageDetail_20' ) end [2025-04-07 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:18:22] Production.INFO: ==2582== Releasing lock... [2025-04-07 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:18:22] Production.INFO: 32 MB #Memory Used# [2025-04-07 03:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:19:04 [end_date_ymd] => 2025-04-07 03:19:04 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:19:04' and `end` < '2025-04-07 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-04-07 03:19:17] Production.INFO: count ==513 [2025-04-07 03:19:17] Production.ERROR: pbx CDR StartTime 2025-04-07 00:19:04 - End Time 2025-04-07 03:19:04 [2025-04-07 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852059', 'tblTempUsageDetail_20' ) start [2025-04-07 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852059', 'tblTempUsageDetail_20' ) end [2025-04-07 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852059', 'tblTempVendorCDR_20' ) start [2025-04-07 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852059', 'tblTempVendorCDR_20' ) end [2025-04-07 03:19:17] Production.INFO: ProcessCDR(1,14852059,1,1,2) [2025-04-07 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852059', 'tblTempUsageDetail_20' ) start [2025-04-07 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852059', 'tblTempUsageDetail_20' ) end [2025-04-07 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:19:21] Production.INFO: ==2653== Releasing lock... [2025-04-07 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:19:21] Production.INFO: 32 MB #Memory Used# [2025-04-07 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:20:06 [end_date_ymd] => 2025-04-07 03:20:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:20:06' and `end` < '2025-04-07 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-04-07 03:20:19] Production.INFO: count ==511 [2025-04-07 03:20:19] Production.ERROR: pbx CDR StartTime 2025-04-07 00:20:06 - End Time 2025-04-07 03:20:06 [2025-04-07 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852065', 'tblTempUsageDetail_20' ) start [2025-04-07 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852065', 'tblTempUsageDetail_20' ) end [2025-04-07 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852065', 'tblTempVendorCDR_20' ) start [2025-04-07 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852065', 'tblTempVendorCDR_20' ) end [2025-04-07 03:20:19] Production.INFO: ProcessCDR(1,14852065,1,1,2) [2025-04-07 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852065', 'tblTempUsageDetail_20' ) start [2025-04-07 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852065', 'tblTempUsageDetail_20' ) end [2025-04-07 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:20:22] Production.INFO: ==2726== Releasing lock... [2025-04-07 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:20:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 03:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:21:06 [end_date_ymd] => 2025-04-07 03:21:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:21:06' and `end` < '2025-04-07 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-04-07 03:21:18] Production.INFO: count ==499 [2025-04-07 03:21:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:21:06 - End Time 2025-04-07 03:21:06 [2025-04-07 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852070', 'tblTempUsageDetail_20' ) start [2025-04-07 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852070', 'tblTempUsageDetail_20' ) end [2025-04-07 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852070', 'tblTempVendorCDR_20' ) start [2025-04-07 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852070', 'tblTempVendorCDR_20' ) end [2025-04-07 03:21:18] Production.INFO: ProcessCDR(1,14852070,1,1,2) [2025-04-07 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852070', 'tblTempUsageDetail_20' ) start [2025-04-07 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852070', 'tblTempUsageDetail_20' ) end [2025-04-07 03:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:21:22] Production.INFO: ==2801== Releasing lock... [2025-04-07 03:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:21:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-07 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:22:05 [end_date_ymd] => 2025-04-07 03:22:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:22:05' and `end` < '2025-04-07 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-04-07 03:22:18] Production.INFO: count ==506 [2025-04-07 03:22:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:22:05 - End Time 2025-04-07 03:22:05 [2025-04-07 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852075', 'tblTempUsageDetail_20' ) start [2025-04-07 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852075', 'tblTempUsageDetail_20' ) end [2025-04-07 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852075', 'tblTempVendorCDR_20' ) start [2025-04-07 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852075', 'tblTempVendorCDR_20' ) end [2025-04-07 03:22:18] Production.INFO: ProcessCDR(1,14852075,1,1,2) [2025-04-07 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852075', 'tblTempUsageDetail_20' ) start [2025-04-07 03:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852075', 'tblTempUsageDetail_20' ) end [2025-04-07 03:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:22:23] Production.INFO: ==2874== Releasing lock... [2025-04-07 03:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:22:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 03:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:23:06 [end_date_ymd] => 2025-04-07 03:23:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:23:06' and `end` < '2025-04-07 03: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-04-07 03:23:18] Production.INFO: count ==508 [2025-04-07 03:23:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:23:06 - End Time 2025-04-07 03:23:06 [2025-04-07 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852080', 'tblTempUsageDetail_20' ) start [2025-04-07 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852080', 'tblTempUsageDetail_20' ) end [2025-04-07 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852080', 'tblTempVendorCDR_20' ) start [2025-04-07 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852080', 'tblTempVendorCDR_20' ) end [2025-04-07 03:23:18] Production.INFO: ProcessCDR(1,14852080,1,1,2) [2025-04-07 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852080', 'tblTempUsageDetail_20' ) start [2025-04-07 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852080', 'tblTempUsageDetail_20' ) end [2025-04-07 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:23:22] Production.INFO: ==2947== Releasing lock... [2025-04-07 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:23:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-07 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:24:05 [end_date_ymd] => 2025-04-07 03:24:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:24:05' and `end` < '2025-04-07 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-04-07 03:24:18] Production.INFO: count ==500 [2025-04-07 03:24:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:24:05 - End Time 2025-04-07 03:24:05 [2025-04-07 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852085', 'tblTempUsageDetail_20' ) start [2025-04-07 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852085', 'tblTempUsageDetail_20' ) end [2025-04-07 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852085', 'tblTempVendorCDR_20' ) start [2025-04-07 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852085', 'tblTempVendorCDR_20' ) end [2025-04-07 03:24:18] Production.INFO: ProcessCDR(1,14852085,1,1,2) [2025-04-07 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852085', 'tblTempUsageDetail_20' ) start [2025-04-07 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852085', 'tblTempUsageDetail_20' ) end [2025-04-07 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:24:21] Production.INFO: ==3020== Releasing lock... [2025-04-07 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:24:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-07 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:25:05 [end_date_ymd] => 2025-04-07 03:25:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:25:05' and `end` < '2025-04-07 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-04-07 03:25:18] Production.INFO: count ==493 [2025-04-07 03:25:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:25:05 - End Time 2025-04-07 03:25:05 [2025-04-07 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852090', 'tblTempUsageDetail_20' ) start [2025-04-07 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852090', 'tblTempUsageDetail_20' ) end [2025-04-07 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852090', 'tblTempVendorCDR_20' ) start [2025-04-07 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852090', 'tblTempVendorCDR_20' ) end [2025-04-07 03:25:18] Production.INFO: ProcessCDR(1,14852090,1,1,2) [2025-04-07 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852090', 'tblTempUsageDetail_20' ) start [2025-04-07 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852090', 'tblTempUsageDetail_20' ) end [2025-04-07 03:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:25:22] Production.INFO: ==3093== Releasing lock... [2025-04-07 03:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:25:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-07 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:26:05 [end_date_ymd] => 2025-04-07 03:26:05 [RateCDR] => 1 ) [2025-04-07 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 00:26:05' and `end` < '2025-04-07 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 03:26:18] Production.INFO: count ==490 [2025-04-07 03:26:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:26:05 - End Time 2025-04-07 03:26:05 [2025-04-07 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852095', 'tblTempUsageDetail_20' ) start [2025-04-07 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852095', 'tblTempUsageDetail_20' ) end [2025-04-07 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852095', 'tblTempVendorCDR_20' ) start [2025-04-07 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852095', 'tblTempVendorCDR_20' ) end [2025-04-07 03:26:18] Production.INFO: ProcessCDR(1,14852095,1,1,2) [2025-04-07 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852095', 'tblTempUsageDetail_20' ) start [2025-04-07 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852095', 'tblTempUsageDetail_20' ) end [2025-04-07 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:26:21] Production.INFO: ==3165== Releasing lock... [2025-04-07 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:26:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-07 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:27:05 [end_date_ymd] => 2025-04-07 03:27:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:27:05' and `end` < '2025-04-07 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-04-07 03:27:18] Production.INFO: count ==490 [2025-04-07 03:27:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:27:05 - End Time 2025-04-07 03:27:05 [2025-04-07 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852100', 'tblTempUsageDetail_20' ) start [2025-04-07 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852100', 'tblTempUsageDetail_20' ) end [2025-04-07 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852100', 'tblTempVendorCDR_20' ) start [2025-04-07 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852100', 'tblTempVendorCDR_20' ) end [2025-04-07 03:27:18] Production.INFO: ProcessCDR(1,14852100,1,1,2) [2025-04-07 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852100', 'tblTempUsageDetail_20' ) start [2025-04-07 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852100', 'tblTempUsageDetail_20' ) end [2025-04-07 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:27:22] Production.INFO: ==3238== Releasing lock... [2025-04-07 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:27:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-07 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:28:05 [end_date_ymd] => 2025-04-07 03:28:05 [RateCDR] => 1 ) [2025-04-07 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 00:28:05' and `end` < '2025-04-07 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 03:28:18] Production.INFO: count ==490 [2025-04-07 03:28:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:28:05 - End Time 2025-04-07 03:28:05 [2025-04-07 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852105', 'tblTempUsageDetail_20' ) start [2025-04-07 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852105', 'tblTempUsageDetail_20' ) end [2025-04-07 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852105', 'tblTempVendorCDR_20' ) start [2025-04-07 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852105', 'tblTempVendorCDR_20' ) end [2025-04-07 03:28:18] Production.INFO: ProcessCDR(1,14852105,1,1,2) [2025-04-07 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852105', 'tblTempUsageDetail_20' ) start [2025-04-07 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852105', 'tblTempUsageDetail_20' ) end [2025-04-07 03:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:28:22] Production.INFO: ==3307== Releasing lock... [2025-04-07 03:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:28:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-07 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:29:05 [end_date_ymd] => 2025-04-07 03:29:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:29:05' and `end` < '2025-04-07 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-04-07 03:29:18] Production.INFO: count ==486 [2025-04-07 03:29:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:29:05 - End Time 2025-04-07 03:29:05 [2025-04-07 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852110', 'tblTempUsageDetail_20' ) start [2025-04-07 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852110', 'tblTempUsageDetail_20' ) end [2025-04-07 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852110', 'tblTempVendorCDR_20' ) start [2025-04-07 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852110', 'tblTempVendorCDR_20' ) end [2025-04-07 03:29:18] Production.INFO: ProcessCDR(1,14852110,1,1,2) [2025-04-07 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852110', 'tblTempUsageDetail_20' ) start [2025-04-07 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852110', 'tblTempUsageDetail_20' ) end [2025-04-07 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:29:21] Production.INFO: ==3378== Releasing lock... [2025-04-07 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:29:21] Production.INFO: 32 MB #Memory Used# [2025-04-07 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:30:06 [end_date_ymd] => 2025-04-07 03:30:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:30:06' and `end` < '2025-04-07 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-04-07 03:30:19] Production.INFO: count ==486 [2025-04-07 03:30:19] Production.ERROR: pbx CDR StartTime 2025-04-07 00:30:06 - End Time 2025-04-07 03:30:06 [2025-04-07 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852115', 'tblTempUsageDetail_20' ) start [2025-04-07 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852115', 'tblTempUsageDetail_20' ) end [2025-04-07 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852115', 'tblTempVendorCDR_20' ) start [2025-04-07 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852115', 'tblTempVendorCDR_20' ) end [2025-04-07 03:30:19] Production.INFO: ProcessCDR(1,14852115,1,1,2) [2025-04-07 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852115', 'tblTempUsageDetail_20' ) start [2025-04-07 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852115', 'tblTempUsageDetail_20' ) end [2025-04-07 03:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:30:23] Production.INFO: ==3453== Releasing lock... [2025-04-07 03:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:30:23] Production.INFO: 32 MB #Memory Used# [2025-04-07 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:31:05 [end_date_ymd] => 2025-04-07 03:31:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:31:05' and `end` < '2025-04-07 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-04-07 03:31:18] Production.INFO: count ==486 [2025-04-07 03:31:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:31:05 - End Time 2025-04-07 03:31:05 [2025-04-07 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852121', 'tblTempUsageDetail_20' ) start [2025-04-07 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852121', 'tblTempUsageDetail_20' ) end [2025-04-07 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852121', 'tblTempVendorCDR_20' ) start [2025-04-07 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852121', 'tblTempVendorCDR_20' ) end [2025-04-07 03:31:18] Production.INFO: ProcessCDR(1,14852121,1,1,2) [2025-04-07 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852121', 'tblTempUsageDetail_20' ) start [2025-04-07 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852121', 'tblTempUsageDetail_20' ) end [2025-04-07 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:31:22] Production.INFO: ==3571== Releasing lock... [2025-04-07 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:31:22] Production.INFO: 32 MB #Memory Used# [2025-04-07 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:32:06 [end_date_ymd] => 2025-04-07 03:32:06 [RateCDR] => 1 ) [2025-04-07 03:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 00:32:06' and `end` < '2025-04-07 03:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 03:32:19] Production.INFO: count ==486 [2025-04-07 03:32:19] Production.ERROR: pbx CDR StartTime 2025-04-07 00:32:06 - End Time 2025-04-07 03:32:06 [2025-04-07 03:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852126', 'tblTempUsageDetail_20' ) start [2025-04-07 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852126', 'tblTempUsageDetail_20' ) end [2025-04-07 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852126', 'tblTempVendorCDR_20' ) start [2025-04-07 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852126', 'tblTempVendorCDR_20' ) end [2025-04-07 03:32:19] Production.INFO: ProcessCDR(1,14852126,1,1,2) [2025-04-07 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852126', 'tblTempUsageDetail_20' ) start [2025-04-07 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852126', 'tblTempUsageDetail_20' ) end [2025-04-07 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:32:22] Production.INFO: ==3651== Releasing lock... [2025-04-07 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:32:22] Production.INFO: 32 MB #Memory Used# [2025-04-07 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:33:05 [end_date_ymd] => 2025-04-07 03:33:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:33:05' and `end` < '2025-04-07 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-04-07 03:33:17] Production.INFO: count ==486 [2025-04-07 03:33:17] Production.ERROR: pbx CDR StartTime 2025-04-07 00:33:05 - End Time 2025-04-07 03:33:05 [2025-04-07 03:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852131', 'tblTempUsageDetail_20' ) start [2025-04-07 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852131', 'tblTempUsageDetail_20' ) end [2025-04-07 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852131', 'tblTempVendorCDR_20' ) start [2025-04-07 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852131', 'tblTempVendorCDR_20' ) end [2025-04-07 03:33:17] Production.INFO: ProcessCDR(1,14852131,1,1,2) [2025-04-07 03:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852131', 'tblTempUsageDetail_20' ) start [2025-04-07 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852131', 'tblTempUsageDetail_20' ) end [2025-04-07 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:33:21] Production.INFO: ==3725== Releasing lock... [2025-04-07 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:33:21] Production.INFO: 32 MB #Memory Used# [2025-04-07 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:34:06 [end_date_ymd] => 2025-04-07 03:34:06 [RateCDR] => 1 ) [2025-04-07 03:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 00:34:06' and `end` < '2025-04-07 03:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 03:34:19] Production.INFO: count ==483 [2025-04-07 03:34:19] Production.ERROR: pbx CDR StartTime 2025-04-07 00:34:06 - End Time 2025-04-07 03:34:06 [2025-04-07 03:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852136', 'tblTempUsageDetail_20' ) start [2025-04-07 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852136', 'tblTempUsageDetail_20' ) end [2025-04-07 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852136', 'tblTempVendorCDR_20' ) start [2025-04-07 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852136', 'tblTempVendorCDR_20' ) end [2025-04-07 03:34:19] Production.INFO: ProcessCDR(1,14852136,1,1,2) [2025-04-07 03:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852136', 'tblTempUsageDetail_20' ) start [2025-04-07 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852136', 'tblTempUsageDetail_20' ) end [2025-04-07 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:34:22] Production.INFO: ==3800== Releasing lock... [2025-04-07 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:34:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:35:05 [end_date_ymd] => 2025-04-07 03:35:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:35:05' and `end` < '2025-04-07 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-04-07 03:35:18] Production.INFO: count ==479 [2025-04-07 03:35:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:35:05 - End Time 2025-04-07 03:35:05 [2025-04-07 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852141', 'tblTempUsageDetail_20' ) start [2025-04-07 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852141', 'tblTempUsageDetail_20' ) end [2025-04-07 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852141', 'tblTempVendorCDR_20' ) start [2025-04-07 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852141', 'tblTempVendorCDR_20' ) end [2025-04-07 03:35:18] Production.INFO: ProcessCDR(1,14852141,1,1,2) [2025-04-07 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852141', 'tblTempUsageDetail_20' ) start [2025-04-07 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852141', 'tblTempUsageDetail_20' ) end [2025-04-07 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:35:22] Production.INFO: ==3873== Releasing lock... [2025-04-07 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:35:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:36:06 [end_date_ymd] => 2025-04-07 03:36:06 [RateCDR] => 1 ) [2025-04-07 03:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 00:36:06' and `end` < '2025-04-07 03:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 03:36:18] Production.INFO: count ==479 [2025-04-07 03:36:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:36:06 - End Time 2025-04-07 03:36:06 [2025-04-07 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852146', 'tblTempUsageDetail_20' ) start [2025-04-07 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852146', 'tblTempUsageDetail_20' ) end [2025-04-07 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852146', 'tblTempVendorCDR_20' ) start [2025-04-07 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852146', 'tblTempVendorCDR_20' ) end [2025-04-07 03:36:19] Production.INFO: ProcessCDR(1,14852146,1,1,2) [2025-04-07 03:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852146', 'tblTempUsageDetail_20' ) start [2025-04-07 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852146', 'tblTempUsageDetail_20' ) end [2025-04-07 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:36:22] Production.INFO: ==3950== Releasing lock... [2025-04-07 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:36:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:37:05 [end_date_ymd] => 2025-04-07 03:37:05 [RateCDR] => 1 ) [2025-04-07 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 00:37:05' and `end` < '2025-04-07 03:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 03:37:18] Production.INFO: count ==479 [2025-04-07 03:37:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:37:05 - End Time 2025-04-07 03:37:05 [2025-04-07 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852151', 'tblTempUsageDetail_20' ) start [2025-04-07 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852151', 'tblTempUsageDetail_20' ) end [2025-04-07 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852151', 'tblTempVendorCDR_20' ) start [2025-04-07 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852151', 'tblTempVendorCDR_20' ) end [2025-04-07 03:37:18] Production.INFO: ProcessCDR(1,14852151,1,1,2) [2025-04-07 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852151', 'tblTempUsageDetail_20' ) start [2025-04-07 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852151', 'tblTempUsageDetail_20' ) end [2025-04-07 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:37:21] Production.INFO: ==4026== Releasing lock... [2025-04-07 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:37:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:38:06 [end_date_ymd] => 2025-04-07 03:38:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:38:06' and `end` < '2025-04-07 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-04-07 03:38:18] Production.INFO: count ==479 [2025-04-07 03:38:19] Production.ERROR: pbx CDR StartTime 2025-04-07 00:38:06 - End Time 2025-04-07 03:38:06 [2025-04-07 03:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852156', 'tblTempUsageDetail_20' ) start [2025-04-07 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852156', 'tblTempUsageDetail_20' ) end [2025-04-07 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852156', 'tblTempVendorCDR_20' ) start [2025-04-07 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852156', 'tblTempVendorCDR_20' ) end [2025-04-07 03:38:19] Production.INFO: ProcessCDR(1,14852156,1,1,2) [2025-04-07 03:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852156', 'tblTempUsageDetail_20' ) start [2025-04-07 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852156', 'tblTempUsageDetail_20' ) end [2025-04-07 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:38:22] Production.INFO: ==4104== Releasing lock... [2025-04-07 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:38:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:39:05 [end_date_ymd] => 2025-04-07 03:39:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:39:05' and `end` < '2025-04-07 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-04-07 03:39:18] Production.INFO: count ==479 [2025-04-07 03:39:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:39:05 - End Time 2025-04-07 03:39:05 [2025-04-07 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852161', 'tblTempUsageDetail_20' ) start [2025-04-07 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852161', 'tblTempUsageDetail_20' ) end [2025-04-07 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852161', 'tblTempVendorCDR_20' ) start [2025-04-07 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852161', 'tblTempVendorCDR_20' ) end [2025-04-07 03:39:18] Production.INFO: ProcessCDR(1,14852161,1,1,2) [2025-04-07 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852161', 'tblTempUsageDetail_20' ) start [2025-04-07 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852161', 'tblTempUsageDetail_20' ) end [2025-04-07 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:39:21] Production.INFO: ==4177== Releasing lock... [2025-04-07 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:39:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:40:06 [end_date_ymd] => 2025-04-07 03:40:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:40:06' and `end` < '2025-04-07 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-04-07 03:40:19] Production.INFO: count ==466 [2025-04-07 03:40:19] Production.ERROR: pbx CDR StartTime 2025-04-07 00:40:06 - End Time 2025-04-07 03:40:06 [2025-04-07 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852166', 'tblTempUsageDetail_20' ) start [2025-04-07 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852166', 'tblTempUsageDetail_20' ) end [2025-04-07 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852166', 'tblTempVendorCDR_20' ) start [2025-04-07 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852166', 'tblTempVendorCDR_20' ) end [2025-04-07 03:40:19] Production.INFO: ProcessCDR(1,14852166,1,1,2) [2025-04-07 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852166', 'tblTempUsageDetail_20' ) start [2025-04-07 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852166', 'tblTempUsageDetail_20' ) end [2025-04-07 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:40:23] Production.INFO: ==4250== Releasing lock... [2025-04-07 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:40:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-07 03:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:41:04 [end_date_ymd] => 2025-04-07 03:41:04 [RateCDR] => 1 ) [2025-04-07 03:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 00:41:04' and `end` < '2025-04-07 03:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 03:41:17] Production.INFO: count ==440 [2025-04-07 03:41:17] Production.ERROR: pbx CDR StartTime 2025-04-07 00:41:04 - End Time 2025-04-07 03:41:04 [2025-04-07 03:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852172', 'tblTempUsageDetail_20' ) start [2025-04-07 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852172', 'tblTempUsageDetail_20' ) end [2025-04-07 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852172', 'tblTempVendorCDR_20' ) start [2025-04-07 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852172', 'tblTempVendorCDR_20' ) end [2025-04-07 03:41:17] Production.INFO: ProcessCDR(1,14852172,1,1,2) [2025-04-07 03:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852172', 'tblTempUsageDetail_20' ) start [2025-04-07 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852172', 'tblTempUsageDetail_20' ) end [2025-04-07 03:41:20] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:41:20] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:41:20] Production.INFO: ==4328== Releasing lock... [2025-04-07 03:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:41:20] Production.INFO: 32 MB #Memory Used# [2025-04-07 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:42:05 [end_date_ymd] => 2025-04-07 03:42:05 [RateCDR] => 1 ) [2025-04-07 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 00:42:05' and `end` < '2025-04-07 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 03:42:18] Production.INFO: count ==434 [2025-04-07 03:42:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:42:05 - End Time 2025-04-07 03:42:05 [2025-04-07 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852177', 'tblTempUsageDetail_20' ) start [2025-04-07 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852177', 'tblTempUsageDetail_20' ) end [2025-04-07 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852177', 'tblTempVendorCDR_20' ) start [2025-04-07 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852177', 'tblTempVendorCDR_20' ) end [2025-04-07 03:42:18] Production.INFO: ProcessCDR(1,14852177,1,1,2) [2025-04-07 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852177', 'tblTempUsageDetail_20' ) start [2025-04-07 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852177', 'tblTempUsageDetail_20' ) end [2025-04-07 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:42:21] Production.INFO: ==4402== Releasing lock... [2025-04-07 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:42:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-07 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:43:06 [end_date_ymd] => 2025-04-07 03:43:06 [RateCDR] => 1 ) [2025-04-07 03:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 00:43:06' and `end` < '2025-04-07 03:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 03:43:18] Production.INFO: count ==425 [2025-04-07 03:43:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:43:06 - End Time 2025-04-07 03:43:06 [2025-04-07 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852181', 'tblTempUsageDetail_20' ) start [2025-04-07 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852181', 'tblTempUsageDetail_20' ) end [2025-04-07 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852181', 'tblTempVendorCDR_20' ) start [2025-04-07 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852181', 'tblTempVendorCDR_20' ) end [2025-04-07 03:43:18] Production.INFO: ProcessCDR(1,14852181,1,1,2) [2025-04-07 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852181', 'tblTempUsageDetail_20' ) start [2025-04-07 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852181', 'tblTempUsageDetail_20' ) end [2025-04-07 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:43:22] Production.INFO: ==4476== Releasing lock... [2025-04-07 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:43:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-07 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:44:05 [end_date_ymd] => 2025-04-07 03:44:05 [RateCDR] => 1 ) [2025-04-07 03:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 00:44:05' and `end` < '2025-04-07 03:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 03:44:18] Production.INFO: count ==415 [2025-04-07 03:44:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:44:05 - End Time 2025-04-07 03:44:05 [2025-04-07 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852187', 'tblTempUsageDetail_20' ) start [2025-04-07 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852187', 'tblTempUsageDetail_20' ) end [2025-04-07 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852187', 'tblTempVendorCDR_20' ) start [2025-04-07 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852187', 'tblTempVendorCDR_20' ) end [2025-04-07 03:44:18] Production.INFO: ProcessCDR(1,14852187,1,1,2) [2025-04-07 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852187', 'tblTempUsageDetail_20' ) start [2025-04-07 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852187', 'tblTempUsageDetail_20' ) end [2025-04-07 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:44:21] Production.INFO: ==4546== Releasing lock... [2025-04-07 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:44:21] Production.INFO: 32 MB #Memory Used# [2025-04-07 03:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:45:06 [end_date_ymd] => 2025-04-07 03:45:06 [RateCDR] => 1 ) [2025-04-07 03: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-04-07 00:45:06' and `end` < '2025-04-07 03: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-04-07 03:45:18] Production.INFO: count ==409 [2025-04-07 03:45:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:45:06 - End Time 2025-04-07 03:45:06 [2025-04-07 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852192', 'tblTempUsageDetail_20' ) start [2025-04-07 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852192', 'tblTempUsageDetail_20' ) end [2025-04-07 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852192', 'tblTempVendorCDR_20' ) start [2025-04-07 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852192', 'tblTempVendorCDR_20' ) end [2025-04-07 03:45:19] Production.INFO: ProcessCDR(1,14852192,1,1,2) [2025-04-07 03:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852192', 'tblTempUsageDetail_20' ) start [2025-04-07 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852192', 'tblTempUsageDetail_20' ) end [2025-04-07 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:45:22] Production.INFO: ==4626== Releasing lock... [2025-04-07 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:45:22] Production.INFO: 32 MB #Memory Used# [2025-04-07 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:46:06 [end_date_ymd] => 2025-04-07 03:46:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:46:06' and `end` < '2025-04-07 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-04-07 03:46:18] Production.INFO: count ==403 [2025-04-07 03:46:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:46:06 - End Time 2025-04-07 03:46:06 [2025-04-07 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852197', 'tblTempUsageDetail_20' ) start [2025-04-07 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852197', 'tblTempUsageDetail_20' ) end [2025-04-07 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852197', 'tblTempVendorCDR_20' ) start [2025-04-07 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852197', 'tblTempVendorCDR_20' ) end [2025-04-07 03:46:18] Production.INFO: ProcessCDR(1,14852197,1,1,2) [2025-04-07 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852197', 'tblTempUsageDetail_20' ) start [2025-04-07 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852197', 'tblTempUsageDetail_20' ) end [2025-04-07 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:46:22] Production.INFO: ==4743== Releasing lock... [2025-04-07 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:46:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-07 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:47:05 [end_date_ymd] => 2025-04-07 03:47:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:47:05' and `end` < '2025-04-07 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-04-07 03:47:18] Production.INFO: count ==399 [2025-04-07 03:47:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:47:05 - End Time 2025-04-07 03:47:05 [2025-04-07 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852202', 'tblTempUsageDetail_20' ) start [2025-04-07 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852202', 'tblTempUsageDetail_20' ) end [2025-04-07 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852202', 'tblTempVendorCDR_20' ) start [2025-04-07 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852202', 'tblTempVendorCDR_20' ) end [2025-04-07 03:47:18] Production.INFO: ProcessCDR(1,14852202,1,1,2) [2025-04-07 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852202', 'tblTempUsageDetail_20' ) start [2025-04-07 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852202', 'tblTempUsageDetail_20' ) end [2025-04-07 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:47:21] Production.INFO: ==4828== Releasing lock... [2025-04-07 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:47:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-07 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:48:05 [end_date_ymd] => 2025-04-07 03:48:05 [RateCDR] => 1 ) [2025-04-07 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 00:48:05' and `end` < '2025-04-07 03:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 03:48:18] Production.INFO: count ==384 [2025-04-07 03:48:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:48:05 - End Time 2025-04-07 03:48:05 [2025-04-07 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852207', 'tblTempUsageDetail_20' ) start [2025-04-07 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852207', 'tblTempUsageDetail_20' ) end [2025-04-07 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852207', 'tblTempVendorCDR_20' ) start [2025-04-07 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852207', 'tblTempVendorCDR_20' ) end [2025-04-07 03:48:18] Production.INFO: ProcessCDR(1,14852207,1,1,2) [2025-04-07 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852207', 'tblTempUsageDetail_20' ) start [2025-04-07 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852207', 'tblTempUsageDetail_20' ) end [2025-04-07 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:48:22] Production.INFO: ==4940== Releasing lock... [2025-04-07 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:48:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-07 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:49:05 [end_date_ymd] => 2025-04-07 03:49:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:49:05' and `end` < '2025-04-07 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-04-07 03:49:18] Production.INFO: count ==384 [2025-04-07 03:49:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:49:05 - End Time 2025-04-07 03:49:05 [2025-04-07 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852212', 'tblTempUsageDetail_20' ) start [2025-04-07 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852212', 'tblTempUsageDetail_20' ) end [2025-04-07 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852212', 'tblTempVendorCDR_20' ) start [2025-04-07 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852212', 'tblTempVendorCDR_20' ) end [2025-04-07 03:49:18] Production.INFO: ProcessCDR(1,14852212,1,1,2) [2025-04-07 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852212', 'tblTempUsageDetail_20' ) start [2025-04-07 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852212', 'tblTempUsageDetail_20' ) end [2025-04-07 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:49:22] Production.INFO: ==5017== Releasing lock... [2025-04-07 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:49:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-07 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:50:06 [end_date_ymd] => 2025-04-07 03:50:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:50:06' and `end` < '2025-04-07 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-04-07 03:50:19] Production.INFO: count ==374 [2025-04-07 03:50:19] Production.ERROR: pbx CDR StartTime 2025-04-07 00:50:06 - End Time 2025-04-07 03:50:06 [2025-04-07 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852217', 'tblTempUsageDetail_20' ) start [2025-04-07 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852217', 'tblTempUsageDetail_20' ) end [2025-04-07 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852217', 'tblTempVendorCDR_20' ) start [2025-04-07 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852217', 'tblTempVendorCDR_20' ) end [2025-04-07 03:50:19] Production.INFO: ProcessCDR(1,14852217,1,1,2) [2025-04-07 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852217', 'tblTempUsageDetail_20' ) start [2025-04-07 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852217', 'tblTempUsageDetail_20' ) end [2025-04-07 03:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:50:23] Production.INFO: ==5096== Releasing lock... [2025-04-07 03:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:50:23] Production.INFO: 31 MB #Memory Used# [2025-04-07 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:51:05 [end_date_ymd] => 2025-04-07 03:51:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:51:05' and `end` < '2025-04-07 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-04-07 03:51:18] Production.INFO: count ==364 [2025-04-07 03:51:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:51:05 - End Time 2025-04-07 03:51:05 [2025-04-07 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852223', 'tblTempUsageDetail_20' ) start [2025-04-07 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852223', 'tblTempUsageDetail_20' ) end [2025-04-07 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852223', 'tblTempVendorCDR_20' ) start [2025-04-07 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852223', 'tblTempVendorCDR_20' ) end [2025-04-07 03:51:18] Production.INFO: ProcessCDR(1,14852223,1,1,2) [2025-04-07 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852223', 'tblTempUsageDetail_20' ) start [2025-04-07 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852223', 'tblTempUsageDetail_20' ) end [2025-04-07 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:51:21] Production.INFO: ==5184== Releasing lock... [2025-04-07 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:51:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-07 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:52:05 [end_date_ymd] => 2025-04-07 03:52:05 [RateCDR] => 1 ) [2025-04-07 03:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 00:52:05' and `end` < '2025-04-07 03:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 03:52:18] Production.INFO: count ==358 [2025-04-07 03:52:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:52:05 - End Time 2025-04-07 03:52:05 [2025-04-07 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852228', 'tblTempUsageDetail_20' ) start [2025-04-07 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852228', 'tblTempUsageDetail_20' ) end [2025-04-07 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852228', 'tblTempVendorCDR_20' ) start [2025-04-07 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852228', 'tblTempVendorCDR_20' ) end [2025-04-07 03:52:18] Production.INFO: ProcessCDR(1,14852228,1,1,2) [2025-04-07 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852228', 'tblTempUsageDetail_20' ) start [2025-04-07 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852228', 'tblTempUsageDetail_20' ) end [2025-04-07 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:52:21] Production.INFO: ==5260== Releasing lock... [2025-04-07 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:52:21] Production.INFO: 31 MB #Memory Used# [2025-04-07 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:53:05 [end_date_ymd] => 2025-04-07 03:53:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:53:05' and `end` < '2025-04-07 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-04-07 03:53:18] Production.INFO: count ==357 [2025-04-07 03:53:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:53:05 - End Time 2025-04-07 03:53:05 [2025-04-07 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852233', 'tblTempUsageDetail_20' ) start [2025-04-07 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852233', 'tblTempUsageDetail_20' ) end [2025-04-07 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852233', 'tblTempVendorCDR_20' ) start [2025-04-07 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852233', 'tblTempVendorCDR_20' ) end [2025-04-07 03:53:18] Production.INFO: ProcessCDR(1,14852233,1,1,2) [2025-04-07 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852233', 'tblTempUsageDetail_20' ) start [2025-04-07 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852233', 'tblTempUsageDetail_20' ) end [2025-04-07 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:53:22] Production.INFO: ==5347== Releasing lock... [2025-04-07 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:53:22] Production.INFO: 31 MB #Memory Used# [2025-04-07 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:54:06 [end_date_ymd] => 2025-04-07 03:54:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:54:06' and `end` < '2025-04-07 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-04-07 03:54:18] Production.INFO: count ==357 [2025-04-07 03:54:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:54:06 - End Time 2025-04-07 03:54:06 [2025-04-07 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852238', 'tblTempUsageDetail_20' ) start [2025-04-07 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852238', 'tblTempUsageDetail_20' ) end [2025-04-07 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852238', 'tblTempVendorCDR_20' ) start [2025-04-07 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852238', 'tblTempVendorCDR_20' ) end [2025-04-07 03:54:18] Production.INFO: ProcessCDR(1,14852238,1,1,2) [2025-04-07 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852238', 'tblTempUsageDetail_20' ) start [2025-04-07 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852238', 'tblTempUsageDetail_20' ) end [2025-04-07 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:54:22] Production.INFO: ==5432== Releasing lock... [2025-04-07 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:54:22] Production.INFO: 31 MB #Memory Used# [2025-04-07 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:55:06 [end_date_ymd] => 2025-04-07 03:55:06 [RateCDR] => 1 ) [2025-04-07 03: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-04-07 00:55:06' and `end` < '2025-04-07 03: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-04-07 03:55:19] Production.INFO: count ==357 [2025-04-07 03:55:19] Production.ERROR: pbx CDR StartTime 2025-04-07 00:55:06 - End Time 2025-04-07 03:55:06 [2025-04-07 03:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852243', 'tblTempUsageDetail_20' ) start [2025-04-07 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852243', 'tblTempUsageDetail_20' ) end [2025-04-07 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852243', 'tblTempVendorCDR_20' ) start [2025-04-07 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852243', 'tblTempVendorCDR_20' ) end [2025-04-07 03:55:19] Production.INFO: ProcessCDR(1,14852243,1,1,2) [2025-04-07 03:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852243', 'tblTempUsageDetail_20' ) start [2025-04-07 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852243', 'tblTempUsageDetail_20' ) end [2025-04-07 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:55:22] Production.INFO: ==5513== Releasing lock... [2025-04-07 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:55:22] Production.INFO: 31 MB #Memory Used# [2025-04-07 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:56:05 [end_date_ymd] => 2025-04-07 03:56:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:56:05' and `end` < '2025-04-07 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-04-07 03:56:18] Production.INFO: count ==357 [2025-04-07 03:56:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:56:05 - End Time 2025-04-07 03:56:05 [2025-04-07 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852248', 'tblTempUsageDetail_20' ) start [2025-04-07 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852248', 'tblTempUsageDetail_20' ) end [2025-04-07 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852248', 'tblTempVendorCDR_20' ) start [2025-04-07 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852248', 'tblTempVendorCDR_20' ) end [2025-04-07 03:56:18] Production.INFO: ProcessCDR(1,14852248,1,1,2) [2025-04-07 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852248', 'tblTempUsageDetail_20' ) start [2025-04-07 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852248', 'tblTempUsageDetail_20' ) end [2025-04-07 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:56:22] Production.INFO: ==5595== Releasing lock... [2025-04-07 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:56:22] Production.INFO: 31 MB #Memory Used# [2025-04-07 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:57:06 [end_date_ymd] => 2025-04-07 03:57:06 [RateCDR] => 1 ) [2025-04-07 03:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 00:57:06' and `end` < '2025-04-07 03:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 03:57:19] Production.INFO: count ==363 [2025-04-07 03:57:19] Production.ERROR: pbx CDR StartTime 2025-04-07 00:57:06 - End Time 2025-04-07 03:57:06 [2025-04-07 03:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852253', 'tblTempUsageDetail_20' ) start [2025-04-07 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852253', 'tblTempUsageDetail_20' ) end [2025-04-07 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852253', 'tblTempVendorCDR_20' ) start [2025-04-07 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852253', 'tblTempVendorCDR_20' ) end [2025-04-07 03:57:19] Production.INFO: ProcessCDR(1,14852253,1,1,2) [2025-04-07 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852253', 'tblTempUsageDetail_20' ) start [2025-04-07 03:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852253', 'tblTempUsageDetail_20' ) end [2025-04-07 03:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:57:23] Production.INFO: ==5683== Releasing lock... [2025-04-07 03:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:57:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-07 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:58:05 [end_date_ymd] => 2025-04-07 03:58:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 00:58:05' and `end` < '2025-04-07 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-04-07 03:58:18] Production.INFO: count ==355 [2025-04-07 03:58:18] Production.ERROR: pbx CDR StartTime 2025-04-07 00:58:05 - End Time 2025-04-07 03:58:05 [2025-04-07 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852258', 'tblTempUsageDetail_20' ) start [2025-04-07 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852258', 'tblTempUsageDetail_20' ) end [2025-04-07 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852258', 'tblTempVendorCDR_20' ) start [2025-04-07 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852258', 'tblTempVendorCDR_20' ) end [2025-04-07 03:58:18] Production.INFO: ProcessCDR(1,14852258,1,1,2) [2025-04-07 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852258', 'tblTempUsageDetail_20' ) start [2025-04-07 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852258', 'tblTempUsageDetail_20' ) end [2025-04-07 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:58:21] Production.INFO: ==5756== Releasing lock... [2025-04-07 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:58:21] Production.INFO: 31 MB #Memory Used# [2025-04-07 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 00:59:06 [end_date_ymd] => 2025-04-07 03:59:06 [RateCDR] => 1 ) [2025-04-07 03: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-04-07 00:59:06' and `end` < '2025-04-07 03: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-04-07 03:59:19] Production.INFO: count ==355 [2025-04-07 03:59:19] Production.ERROR: pbx CDR StartTime 2025-04-07 00:59:06 - End Time 2025-04-07 03:59:06 [2025-04-07 03:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852263', 'tblTempUsageDetail_20' ) start [2025-04-07 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852263', 'tblTempUsageDetail_20' ) end [2025-04-07 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852263', 'tblTempVendorCDR_20' ) start [2025-04-07 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852263', 'tblTempVendorCDR_20' ) end [2025-04-07 03:59:19] Production.INFO: ProcessCDR(1,14852263,1,1,2) [2025-04-07 03:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852263', 'tblTempUsageDetail_20' ) start [2025-04-07 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852263', 'tblTempUsageDetail_20' ) end [2025-04-07 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 03:59:22] Production.INFO: ==5831== Releasing lock... [2025-04-07 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 03:59:22] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:00:06 [end_date_ymd] => 2025-04-07 04:00:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:00:06' and `end` < '2025-04-07 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-04-07 04:00:19] Production.INFO: count ==351 [2025-04-07 04:00:19] Production.ERROR: pbx CDR StartTime 2025-04-07 01:00:06 - End Time 2025-04-07 04:00:06 [2025-04-07 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852269', 'tblTempUsageDetail_20' ) start [2025-04-07 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852269', 'tblTempUsageDetail_20' ) end [2025-04-07 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852269', 'tblTempVendorCDR_20' ) start [2025-04-07 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852269', 'tblTempVendorCDR_20' ) end [2025-04-07 04:00:19] Production.INFO: ProcessCDR(1,14852269,1,1,2) [2025-04-07 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852269', 'tblTempUsageDetail_20' ) start [2025-04-07 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852269', 'tblTempUsageDetail_20' ) end [2025-04-07 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:00:23] Production.INFO: ==5909== Releasing lock... [2025-04-07 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:00:23] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:01:06 [end_date_ymd] => 2025-04-07 04:01:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:01:06' and `end` < '2025-04-07 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-04-07 04:01:19] Production.INFO: count ==333 [2025-04-07 04:01:19] Production.ERROR: pbx CDR StartTime 2025-04-07 01:01:06 - End Time 2025-04-07 04:01:06 [2025-04-07 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852275', 'tblTempUsageDetail_20' ) start [2025-04-07 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852275', 'tblTempUsageDetail_20' ) end [2025-04-07 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852275', 'tblTempVendorCDR_20' ) start [2025-04-07 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852275', 'tblTempVendorCDR_20' ) end [2025-04-07 04:01:19] Production.INFO: ProcessCDR(1,14852275,1,1,2) [2025-04-07 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852275', 'tblTempUsageDetail_20' ) start [2025-04-07 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852275', 'tblTempUsageDetail_20' ) end [2025-04-07 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:01:22] Production.INFO: ==6003== Releasing lock... [2025-04-07 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:01:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-07 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:02:05 [end_date_ymd] => 2025-04-07 04:02:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:02:05' and `end` < '2025-04-07 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-04-07 04:02:18] Production.INFO: count ==334 [2025-04-07 04:02:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:02:05 - End Time 2025-04-07 04:02:05 [2025-04-07 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852280', 'tblTempUsageDetail_20' ) start [2025-04-07 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852280', 'tblTempUsageDetail_20' ) end [2025-04-07 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852280', 'tblTempVendorCDR_20' ) start [2025-04-07 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852280', 'tblTempVendorCDR_20' ) end [2025-04-07 04:02:18] Production.INFO: ProcessCDR(1,14852280,1,1,2) [2025-04-07 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852280', 'tblTempUsageDetail_20' ) start [2025-04-07 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852280', 'tblTempUsageDetail_20' ) end [2025-04-07 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:02:22] Production.INFO: ==6119== Releasing lock... [2025-04-07 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:02:22] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:03:05 [end_date_ymd] => 2025-04-07 04:03:05 [RateCDR] => 1 ) [2025-04-07 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 01:03:05' and `end` < '2025-04-07 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 04:03:18] Production.INFO: count ==329 [2025-04-07 04:03:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:03:05 - End Time 2025-04-07 04:03:05 [2025-04-07 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852285', 'tblTempUsageDetail_20' ) start [2025-04-07 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852285', 'tblTempUsageDetail_20' ) end [2025-04-07 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852285', 'tblTempVendorCDR_20' ) start [2025-04-07 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852285', 'tblTempVendorCDR_20' ) end [2025-04-07 04:03:18] Production.INFO: ProcessCDR(1,14852285,1,1,2) [2025-04-07 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852285', 'tblTempUsageDetail_20' ) start [2025-04-07 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852285', 'tblTempUsageDetail_20' ) end [2025-04-07 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:03:22] Production.INFO: ==6192== Releasing lock... [2025-04-07 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:03:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-07 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:04:05 [end_date_ymd] => 2025-04-07 04:04:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:04:05' and `end` < '2025-04-07 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-04-07 04:04:18] Production.INFO: count ==329 [2025-04-07 04:04:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:04:05 - End Time 2025-04-07 04:04:05 [2025-04-07 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852290', 'tblTempUsageDetail_20' ) start [2025-04-07 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852290', 'tblTempUsageDetail_20' ) end [2025-04-07 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852290', 'tblTempVendorCDR_20' ) start [2025-04-07 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852290', 'tblTempVendorCDR_20' ) end [2025-04-07 04:04:18] Production.INFO: ProcessCDR(1,14852290,1,1,2) [2025-04-07 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852290', 'tblTempUsageDetail_20' ) start [2025-04-07 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852290', 'tblTempUsageDetail_20' ) end [2025-04-07 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:04:21] Production.INFO: ==6266== Releasing lock... [2025-04-07 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:04:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-07 04:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:05:06 [end_date_ymd] => 2025-04-07 04:05:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:05:06' and `end` < '2025-04-07 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-04-07 04:05:19] Production.INFO: count ==330 [2025-04-07 04:05:19] Production.ERROR: pbx CDR StartTime 2025-04-07 01:05:06 - End Time 2025-04-07 04:05:06 [2025-04-07 04:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852295', 'tblTempUsageDetail_20' ) start [2025-04-07 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852295', 'tblTempUsageDetail_20' ) end [2025-04-07 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852295', 'tblTempVendorCDR_20' ) start [2025-04-07 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852295', 'tblTempVendorCDR_20' ) end [2025-04-07 04:05:19] Production.INFO: ProcessCDR(1,14852295,1,1,2) [2025-04-07 04:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852295', 'tblTempUsageDetail_20' ) start [2025-04-07 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852295', 'tblTempUsageDetail_20' ) end [2025-04-07 04:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:05:22] Production.INFO: ==6344== Releasing lock... [2025-04-07 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:05:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-07 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:06:05 [end_date_ymd] => 2025-04-07 04:06:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:06:05' and `end` < '2025-04-07 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-04-07 04:06:18] Production.INFO: count ==332 [2025-04-07 04:06:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:06:05 - End Time 2025-04-07 04:06:05 [2025-04-07 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852296', 'tblTempUsageDetail_20' ) start [2025-04-07 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852296', 'tblTempUsageDetail_20' ) end [2025-04-07 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852296', 'tblTempVendorCDR_20' ) start [2025-04-07 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852296', 'tblTempVendorCDR_20' ) end [2025-04-07 04:06:18] Production.INFO: ProcessCDR(1,14852296,1,1,2) [2025-04-07 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852296', 'tblTempUsageDetail_20' ) start [2025-04-07 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852296', 'tblTempUsageDetail_20' ) end [2025-04-07 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:06:21] Production.INFO: ==6419== Releasing lock... [2025-04-07 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:06:21] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:07:06 [end_date_ymd] => 2025-04-07 04:07:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:07:06' and `end` < '2025-04-07 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-04-07 04:07:18] Production.INFO: count ==331 [2025-04-07 04:07:19] Production.ERROR: pbx CDR StartTime 2025-04-07 01:07:06 - End Time 2025-04-07 04:07:06 [2025-04-07 04:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852305', 'tblTempUsageDetail_20' ) start [2025-04-07 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852305', 'tblTempUsageDetail_20' ) end [2025-04-07 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852305', 'tblTempVendorCDR_20' ) start [2025-04-07 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852305', 'tblTempVendorCDR_20' ) end [2025-04-07 04:07:19] Production.INFO: ProcessCDR(1,14852305,1,1,2) [2025-04-07 04:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852305', 'tblTempUsageDetail_20' ) start [2025-04-07 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852305', 'tblTempUsageDetail_20' ) end [2025-04-07 04:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:07:22] Production.INFO: ==6497== Releasing lock... [2025-04-07 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:07:22] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:08:05 [end_date_ymd] => 2025-04-07 04:08:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:08:05' and `end` < '2025-04-07 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-04-07 04:08:17] Production.INFO: count ==331 [2025-04-07 04:08:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:08:05 - End Time 2025-04-07 04:08:05 [2025-04-07 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852310', 'tblTempUsageDetail_20' ) start [2025-04-07 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852310', 'tblTempUsageDetail_20' ) end [2025-04-07 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852310', 'tblTempVendorCDR_20' ) start [2025-04-07 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852310', 'tblTempVendorCDR_20' ) end [2025-04-07 04:08:18] Production.INFO: ProcessCDR(1,14852310,1,1,2) [2025-04-07 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852310', 'tblTempUsageDetail_20' ) start [2025-04-07 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852310', 'tblTempUsageDetail_20' ) end [2025-04-07 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:08:21] Production.INFO: ==6573== Releasing lock... [2025-04-07 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:08:21] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:09:05 [end_date_ymd] => 2025-04-07 04:09:05 [RateCDR] => 1 ) [2025-04-07 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 01:09:05' and `end` < '2025-04-07 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 04:09:18] Production.INFO: count ==335 [2025-04-07 04:09:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:09:05 - End Time 2025-04-07 04:09:05 [2025-04-07 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852315', 'tblTempUsageDetail_20' ) start [2025-04-07 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852315', 'tblTempUsageDetail_20' ) end [2025-04-07 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852315', 'tblTempVendorCDR_20' ) start [2025-04-07 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852315', 'tblTempVendorCDR_20' ) end [2025-04-07 04:09:18] Production.INFO: ProcessCDR(1,14852315,1,1,2) [2025-04-07 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852315', 'tblTempUsageDetail_20' ) start [2025-04-07 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852315', 'tblTempUsageDetail_20' ) end [2025-04-07 04:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:09:22] Production.INFO: ==6647== Releasing lock... [2025-04-07 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:09:22] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:10:05 [end_date_ymd] => 2025-04-07 04:10:05 [RateCDR] => 1 ) [2025-04-07 04: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-04-07 01:10:05' and `end` < '2025-04-07 04: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-04-07 04:10:18] Production.INFO: count ==335 [2025-04-07 04:10:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:10:05 - End Time 2025-04-07 04:10:05 [2025-04-07 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852321', 'tblTempUsageDetail_20' ) start [2025-04-07 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852321', 'tblTempUsageDetail_20' ) end [2025-04-07 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852321', 'tblTempVendorCDR_20' ) start [2025-04-07 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852321', 'tblTempVendorCDR_20' ) end [2025-04-07 04:10:18] Production.INFO: ProcessCDR(1,14852321,1,1,2) [2025-04-07 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852321', 'tblTempUsageDetail_20' ) start [2025-04-07 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852321', 'tblTempUsageDetail_20' ) end [2025-04-07 04:10:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:10:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:10:21] Production.INFO: ==6733== Releasing lock... [2025-04-07 04:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:10:21] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:11:05 [end_date_ymd] => 2025-04-07 04:11:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:11:05' and `end` < '2025-04-07 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-04-07 04:11:18] Production.INFO: count ==331 [2025-04-07 04:11:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:11:05 - End Time 2025-04-07 04:11:05 [2025-04-07 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852326', 'tblTempUsageDetail_20' ) start [2025-04-07 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852326', 'tblTempUsageDetail_20' ) end [2025-04-07 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852326', 'tblTempVendorCDR_20' ) start [2025-04-07 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852326', 'tblTempVendorCDR_20' ) end [2025-04-07 04:11:18] Production.INFO: ProcessCDR(1,14852326,1,1,2) [2025-04-07 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852326', 'tblTempUsageDetail_20' ) start [2025-04-07 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852326', 'tblTempUsageDetail_20' ) end [2025-04-07 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:11:21] Production.INFO: ==6807== Releasing lock... [2025-04-07 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:11:21] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:12:05 [end_date_ymd] => 2025-04-07 04:12:05 [RateCDR] => 1 ) [2025-04-07 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 01:12:05' and `end` < '2025-04-07 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 04:12:18] Production.INFO: count ==325 [2025-04-07 04:12:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:12:05 - End Time 2025-04-07 04:12:05 [2025-04-07 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852331', 'tblTempUsageDetail_20' ) start [2025-04-07 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852331', 'tblTempUsageDetail_20' ) end [2025-04-07 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852331', 'tblTempVendorCDR_20' ) start [2025-04-07 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852331', 'tblTempVendorCDR_20' ) end [2025-04-07 04:12:18] Production.INFO: ProcessCDR(1,14852331,1,1,2) [2025-04-07 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852331', 'tblTempUsageDetail_20' ) start [2025-04-07 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852331', 'tblTempUsageDetail_20' ) end [2025-04-07 04:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:12:22] Production.INFO: ==6881== Releasing lock... [2025-04-07 04:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:12:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-07 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:13:05 [end_date_ymd] => 2025-04-07 04:13:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:13:05' and `end` < '2025-04-07 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-04-07 04:13:17] Production.INFO: count ==322 [2025-04-07 04:13:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:13:05 - End Time 2025-04-07 04:13:05 [2025-04-07 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852336', 'tblTempUsageDetail_20' ) start [2025-04-07 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852336', 'tblTempUsageDetail_20' ) end [2025-04-07 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852336', 'tblTempVendorCDR_20' ) start [2025-04-07 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852336', 'tblTempVendorCDR_20' ) end [2025-04-07 04:13:18] Production.INFO: ProcessCDR(1,14852336,1,1,2) [2025-04-07 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852336', 'tblTempUsageDetail_20' ) start [2025-04-07 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852336', 'tblTempUsageDetail_20' ) end [2025-04-07 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:13:21] Production.INFO: ==6950== Releasing lock... [2025-04-07 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:13:21] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:14:06 [end_date_ymd] => 2025-04-07 04:14:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:14:06' and `end` < '2025-04-07 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-04-07 04:14:18] Production.INFO: count ==318 [2025-04-07 04:14:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:14:06 - End Time 2025-04-07 04:14:06 [2025-04-07 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852341', 'tblTempUsageDetail_20' ) start [2025-04-07 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852341', 'tblTempUsageDetail_20' ) end [2025-04-07 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852341', 'tblTempVendorCDR_20' ) start [2025-04-07 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852341', 'tblTempVendorCDR_20' ) end [2025-04-07 04:14:18] Production.INFO: ProcessCDR(1,14852341,1,1,2) [2025-04-07 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852341', 'tblTempUsageDetail_20' ) start [2025-04-07 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852341', 'tblTempUsageDetail_20' ) end [2025-04-07 04:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:14:22] Production.INFO: ==7023== Releasing lock... [2025-04-07 04:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:14:22] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:15:05 [end_date_ymd] => 2025-04-07 04:15:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:15:05' and `end` < '2025-04-07 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-04-07 04:15:18] Production.INFO: count ==318 [2025-04-07 04:15:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:15:05 - End Time 2025-04-07 04:15:05 [2025-04-07 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852346', 'tblTempUsageDetail_20' ) start [2025-04-07 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852346', 'tblTempUsageDetail_20' ) end [2025-04-07 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852346', 'tblTempVendorCDR_20' ) start [2025-04-07 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852346', 'tblTempVendorCDR_20' ) end [2025-04-07 04:15:18] Production.INFO: ProcessCDR(1,14852346,1,1,2) [2025-04-07 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852346', 'tblTempUsageDetail_20' ) start [2025-04-07 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852346', 'tblTempUsageDetail_20' ) end [2025-04-07 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:15:21] Production.INFO: ==7095== Releasing lock... [2025-04-07 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:15:21] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:16:06 [end_date_ymd] => 2025-04-07 04:16:06 [RateCDR] => 1 ) [2025-04-07 04: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-04-07 01:16:06' and `end` < '2025-04-07 04: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-04-07 04:16:18] Production.INFO: count ==318 [2025-04-07 04:16:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:16:06 - End Time 2025-04-07 04:16:06 [2025-04-07 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852351', 'tblTempUsageDetail_20' ) start [2025-04-07 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852351', 'tblTempUsageDetail_20' ) end [2025-04-07 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852351', 'tblTempVendorCDR_20' ) start [2025-04-07 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852351', 'tblTempVendorCDR_20' ) end [2025-04-07 04:16:18] Production.INFO: ProcessCDR(1,14852351,1,1,2) [2025-04-07 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852351', 'tblTempUsageDetail_20' ) start [2025-04-07 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852351', 'tblTempUsageDetail_20' ) end [2025-04-07 04:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:16:22] Production.INFO: ==7168== Releasing lock... [2025-04-07 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:16:22] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:17:05 [end_date_ymd] => 2025-04-07 04:17:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:17:05' and `end` < '2025-04-07 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-04-07 04:17:18] Production.INFO: count ==318 [2025-04-07 04:17:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:17:05 - End Time 2025-04-07 04:17:05 [2025-04-07 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852356', 'tblTempUsageDetail_20' ) start [2025-04-07 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852356', 'tblTempUsageDetail_20' ) end [2025-04-07 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852356', 'tblTempVendorCDR_20' ) start [2025-04-07 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852356', 'tblTempVendorCDR_20' ) end [2025-04-07 04:17:18] Production.INFO: ProcessCDR(1,14852356,1,1,2) [2025-04-07 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852356', 'tblTempUsageDetail_20' ) start [2025-04-07 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852356', 'tblTempUsageDetail_20' ) end [2025-04-07 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:17:21] Production.INFO: ==7278== Releasing lock... [2025-04-07 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:17:21] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:18:06 [end_date_ymd] => 2025-04-07 04:18:06 [RateCDR] => 1 ) [2025-04-07 04:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 01:18:06' and `end` < '2025-04-07 04:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 04:18:18] Production.INFO: count ==318 [2025-04-07 04:18:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:18:06 - End Time 2025-04-07 04:18:06 [2025-04-07 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852361', 'tblTempUsageDetail_20' ) start [2025-04-07 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852361', 'tblTempUsageDetail_20' ) end [2025-04-07 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852361', 'tblTempVendorCDR_20' ) start [2025-04-07 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852361', 'tblTempVendorCDR_20' ) end [2025-04-07 04:18:18] Production.INFO: ProcessCDR(1,14852361,1,1,2) [2025-04-07 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852361', 'tblTempUsageDetail_20' ) start [2025-04-07 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852361', 'tblTempUsageDetail_20' ) end [2025-04-07 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:18:22] Production.INFO: ==7348== Releasing lock... [2025-04-07 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:18:22] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:19:05 [end_date_ymd] => 2025-04-07 04:19:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:19:05' and `end` < '2025-04-07 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-04-07 04:19:17] Production.INFO: count ==317 [2025-04-07 04:19:17] Production.ERROR: pbx CDR StartTime 2025-04-07 01:19:05 - End Time 2025-04-07 04:19:05 [2025-04-07 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852366', 'tblTempUsageDetail_20' ) start [2025-04-07 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852366', 'tblTempUsageDetail_20' ) end [2025-04-07 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852366', 'tblTempVendorCDR_20' ) start [2025-04-07 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852366', 'tblTempVendorCDR_20' ) end [2025-04-07 04:19:17] Production.INFO: ProcessCDR(1,14852366,1,1,2) [2025-04-07 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852366', 'tblTempUsageDetail_20' ) start [2025-04-07 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852366', 'tblTempUsageDetail_20' ) end [2025-04-07 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:19:21] Production.INFO: ==7420== Releasing lock... [2025-04-07 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:19:21] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:20:06 [end_date_ymd] => 2025-04-07 04:20:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:20:06' and `end` < '2025-04-07 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-04-07 04:20:19] Production.INFO: count ==317 [2025-04-07 04:20:19] Production.ERROR: pbx CDR StartTime 2025-04-07 01:20:06 - End Time 2025-04-07 04:20:06 [2025-04-07 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852372', 'tblTempUsageDetail_20' ) start [2025-04-07 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852372', 'tblTempUsageDetail_20' ) end [2025-04-07 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852372', 'tblTempVendorCDR_20' ) start [2025-04-07 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852372', 'tblTempVendorCDR_20' ) end [2025-04-07 04:20:19] Production.INFO: ProcessCDR(1,14852372,1,1,2) [2025-04-07 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852372', 'tblTempUsageDetail_20' ) start [2025-04-07 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852372', 'tblTempUsageDetail_20' ) end [2025-04-07 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:20:22] Production.INFO: ==7495== Releasing lock... [2025-04-07 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:20:22] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:21:05 [end_date_ymd] => 2025-04-07 04:21:05 [RateCDR] => 1 ) [2025-04-07 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 01:21:05' and `end` < '2025-04-07 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 04:21:17] Production.INFO: count ==317 [2025-04-07 04:21:17] Production.ERROR: pbx CDR StartTime 2025-04-07 01:21:05 - End Time 2025-04-07 04:21:05 [2025-04-07 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852377', 'tblTempUsageDetail_20' ) start [2025-04-07 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852377', 'tblTempUsageDetail_20' ) end [2025-04-07 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852377', 'tblTempVendorCDR_20' ) start [2025-04-07 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852377', 'tblTempVendorCDR_20' ) end [2025-04-07 04:21:17] Production.INFO: ProcessCDR(1,14852377,1,1,2) [2025-04-07 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852377', 'tblTempUsageDetail_20' ) start [2025-04-07 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852377', 'tblTempUsageDetail_20' ) end [2025-04-07 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:21:21] Production.INFO: ==7567== Releasing lock... [2025-04-07 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:21:21] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:22:05 [end_date_ymd] => 2025-04-07 04:22:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:22:05' and `end` < '2025-04-07 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-04-07 04:22:18] Production.INFO: count ==317 [2025-04-07 04:22:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:22:05 - End Time 2025-04-07 04:22:05 [2025-04-07 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852382', 'tblTempUsageDetail_20' ) start [2025-04-07 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852382', 'tblTempUsageDetail_20' ) end [2025-04-07 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852382', 'tblTempVendorCDR_20' ) start [2025-04-07 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852382', 'tblTempVendorCDR_20' ) end [2025-04-07 04:22:18] Production.INFO: ProcessCDR(1,14852382,1,1,2) [2025-04-07 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852382', 'tblTempUsageDetail_20' ) start [2025-04-07 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852382', 'tblTempUsageDetail_20' ) end [2025-04-07 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:22:21] Production.INFO: ==7638== Releasing lock... [2025-04-07 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:22:21] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:23:05 [end_date_ymd] => 2025-04-07 04:23:05 [RateCDR] => 1 ) [2025-04-07 04:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 01:23:05' and `end` < '2025-04-07 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 04:23:18] Production.INFO: count ==321 [2025-04-07 04:23:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:23:05 - End Time 2025-04-07 04:23:05 [2025-04-07 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852387', 'tblTempUsageDetail_20' ) start [2025-04-07 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852387', 'tblTempUsageDetail_20' ) end [2025-04-07 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852387', 'tblTempVendorCDR_20' ) start [2025-04-07 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852387', 'tblTempVendorCDR_20' ) end [2025-04-07 04:23:18] Production.INFO: ProcessCDR(1,14852387,1,1,2) [2025-04-07 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852387', 'tblTempUsageDetail_20' ) start [2025-04-07 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852387', 'tblTempUsageDetail_20' ) end [2025-04-07 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:23:21] Production.INFO: ==7712== Releasing lock... [2025-04-07 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:23:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-07 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:24:05 [end_date_ymd] => 2025-04-07 04:24:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:24:05' and `end` < '2025-04-07 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-04-07 04:24:18] Production.INFO: count ==325 [2025-04-07 04:24:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:24:05 - End Time 2025-04-07 04:24:05 [2025-04-07 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852392', 'tblTempUsageDetail_20' ) start [2025-04-07 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852392', 'tblTempUsageDetail_20' ) end [2025-04-07 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852392', 'tblTempVendorCDR_20' ) start [2025-04-07 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852392', 'tblTempVendorCDR_20' ) end [2025-04-07 04:24:18] Production.INFO: ProcessCDR(1,14852392,1,1,2) [2025-04-07 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852392', 'tblTempUsageDetail_20' ) start [2025-04-07 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852392', 'tblTempUsageDetail_20' ) end [2025-04-07 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:24:21] Production.INFO: ==7790== Releasing lock... [2025-04-07 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:24:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-07 04:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:25:04 [end_date_ymd] => 2025-04-07 04:25:04 [RateCDR] => 1 ) [2025-04-07 04:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 01:25:04' and `end` < '2025-04-07 04:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 04:25:17] Production.INFO: count ==324 [2025-04-07 04:25:17] Production.ERROR: pbx CDR StartTime 2025-04-07 01:25:04 - End Time 2025-04-07 04:25:04 [2025-04-07 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852397', 'tblTempUsageDetail_20' ) start [2025-04-07 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852397', 'tblTempUsageDetail_20' ) end [2025-04-07 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852397', 'tblTempVendorCDR_20' ) start [2025-04-07 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852397', 'tblTempVendorCDR_20' ) end [2025-04-07 04:25:17] Production.INFO: ProcessCDR(1,14852397,1,1,2) [2025-04-07 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852397', 'tblTempUsageDetail_20' ) start [2025-04-07 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852397', 'tblTempUsageDetail_20' ) end [2025-04-07 04:25:20] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:25:20] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:25:20] Production.INFO: ==7860== Releasing lock... [2025-04-07 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:25:20] Production.INFO: 31.25 MB #Memory Used# [2025-04-07 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:26:05 [end_date_ymd] => 2025-04-07 04:26:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:26:05' and `end` < '2025-04-07 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-04-07 04:26:17] Production.INFO: count ==324 [2025-04-07 04:26:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:26:05 - End Time 2025-04-07 04:26:05 [2025-04-07 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852402', 'tblTempUsageDetail_20' ) start [2025-04-07 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852402', 'tblTempUsageDetail_20' ) end [2025-04-07 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852402', 'tblTempVendorCDR_20' ) start [2025-04-07 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852402', 'tblTempVendorCDR_20' ) end [2025-04-07 04:26:18] Production.INFO: ProcessCDR(1,14852402,1,1,2) [2025-04-07 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852402', 'tblTempUsageDetail_20' ) start [2025-04-07 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852402', 'tblTempUsageDetail_20' ) end [2025-04-07 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:26:21] Production.INFO: ==7931== Releasing lock... [2025-04-07 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:26:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-07 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:27:05 [end_date_ymd] => 2025-04-07 04:27:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:27:05' and `end` < '2025-04-07 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-04-07 04:27:18] Production.INFO: count ==327 [2025-04-07 04:27:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:27:05 - End Time 2025-04-07 04:27:05 [2025-04-07 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852407', 'tblTempUsageDetail_20' ) start [2025-04-07 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852407', 'tblTempUsageDetail_20' ) end [2025-04-07 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852407', 'tblTempVendorCDR_20' ) start [2025-04-07 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852407', 'tblTempVendorCDR_20' ) end [2025-04-07 04:27:18] Production.INFO: ProcessCDR(1,14852407,1,1,2) [2025-04-07 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852407', 'tblTempUsageDetail_20' ) start [2025-04-07 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852407', 'tblTempUsageDetail_20' ) end [2025-04-07 04:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:27:22] Production.INFO: ==8003== Releasing lock... [2025-04-07 04:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:27:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-07 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:28:05 [end_date_ymd] => 2025-04-07 04:28:05 [RateCDR] => 1 ) [2025-04-07 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 01:28:05' and `end` < '2025-04-07 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 04:28:18] Production.INFO: count ==323 [2025-04-07 04:28:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:28:05 - End Time 2025-04-07 04:28:05 [2025-04-07 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852412', 'tblTempUsageDetail_20' ) start [2025-04-07 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852412', 'tblTempUsageDetail_20' ) end [2025-04-07 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852412', 'tblTempVendorCDR_20' ) start [2025-04-07 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852412', 'tblTempVendorCDR_20' ) end [2025-04-07 04:28:18] Production.INFO: ProcessCDR(1,14852412,1,1,2) [2025-04-07 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852412', 'tblTempUsageDetail_20' ) start [2025-04-07 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852412', 'tblTempUsageDetail_20' ) end [2025-04-07 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:28:21] Production.INFO: ==8075== Releasing lock... [2025-04-07 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:28:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-07 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:29:05 [end_date_ymd] => 2025-04-07 04:29:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:29:05' and `end` < '2025-04-07 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-04-07 04:29:18] Production.INFO: count ==319 [2025-04-07 04:29:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:29:05 - End Time 2025-04-07 04:29:05 [2025-04-07 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852417', 'tblTempUsageDetail_20' ) start [2025-04-07 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852417', 'tblTempUsageDetail_20' ) end [2025-04-07 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852417', 'tblTempVendorCDR_20' ) start [2025-04-07 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852417', 'tblTempVendorCDR_20' ) end [2025-04-07 04:29:18] Production.INFO: ProcessCDR(1,14852417,1,1,2) [2025-04-07 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852417', 'tblTempUsageDetail_20' ) start [2025-04-07 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852417', 'tblTempUsageDetail_20' ) end [2025-04-07 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:29:21] Production.INFO: ==8144== Releasing lock... [2025-04-07 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:29:21] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:30:06 [end_date_ymd] => 2025-04-07 04:30:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:30:06' and `end` < '2025-04-07 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-04-07 04:30:19] Production.INFO: count ==321 [2025-04-07 04:30:19] Production.ERROR: pbx CDR StartTime 2025-04-07 01:30:06 - End Time 2025-04-07 04:30:06 [2025-04-07 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852424', 'tblTempUsageDetail_20' ) start [2025-04-07 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852424', 'tblTempUsageDetail_20' ) end [2025-04-07 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852424', 'tblTempVendorCDR_20' ) start [2025-04-07 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852424', 'tblTempVendorCDR_20' ) end [2025-04-07 04:30:19] Production.INFO: ProcessCDR(1,14852424,1,1,2) [2025-04-07 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852424', 'tblTempUsageDetail_20' ) start [2025-04-07 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852424', 'tblTempUsageDetail_20' ) end [2025-04-07 04:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:30:23] Production.INFO: ==8231== Releasing lock... [2025-04-07 04:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:30:23] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:31:05 [end_date_ymd] => 2025-04-07 04:31:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:31:05' and `end` < '2025-04-07 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-04-07 04:31:18] Production.INFO: count ==321 [2025-04-07 04:31:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:31:05 - End Time 2025-04-07 04:31:05 [2025-04-07 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852429', 'tblTempUsageDetail_20' ) start [2025-04-07 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852429', 'tblTempUsageDetail_20' ) end [2025-04-07 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852429', 'tblTempVendorCDR_20' ) start [2025-04-07 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852429', 'tblTempVendorCDR_20' ) end [2025-04-07 04:31:18] Production.INFO: ProcessCDR(1,14852429,1,1,2) [2025-04-07 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852429', 'tblTempUsageDetail_20' ) start [2025-04-07 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852429', 'tblTempUsageDetail_20' ) end [2025-04-07 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:31:22] Production.INFO: ==8378== Releasing lock... [2025-04-07 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:31:22] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:32:05 [end_date_ymd] => 2025-04-07 04:32:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:32:05' and `end` < '2025-04-07 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-04-07 04:32:18] Production.INFO: count ==318 [2025-04-07 04:32:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:32:05 - End Time 2025-04-07 04:32:05 [2025-04-07 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852434', 'tblTempUsageDetail_20' ) start [2025-04-07 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852434', 'tblTempUsageDetail_20' ) end [2025-04-07 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852434', 'tblTempVendorCDR_20' ) start [2025-04-07 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852434', 'tblTempVendorCDR_20' ) end [2025-04-07 04:32:18] Production.INFO: ProcessCDR(1,14852434,1,1,2) [2025-04-07 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852434', 'tblTempUsageDetail_20' ) start [2025-04-07 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852434', 'tblTempUsageDetail_20' ) end [2025-04-07 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:32:21] Production.INFO: ==8488== Releasing lock... [2025-04-07 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:32:21] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:33:05 [end_date_ymd] => 2025-04-07 04:33:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:33:05' and `end` < '2025-04-07 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-04-07 04:33:18] Production.INFO: count ==321 [2025-04-07 04:33:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:33:05 - End Time 2025-04-07 04:33:05 [2025-04-07 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852439', 'tblTempUsageDetail_20' ) start [2025-04-07 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852439', 'tblTempUsageDetail_20' ) end [2025-04-07 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852439', 'tblTempVendorCDR_20' ) start [2025-04-07 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852439', 'tblTempVendorCDR_20' ) end [2025-04-07 04:33:18] Production.INFO: ProcessCDR(1,14852439,1,1,2) [2025-04-07 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852439', 'tblTempUsageDetail_20' ) start [2025-04-07 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852439', 'tblTempUsageDetail_20' ) end [2025-04-07 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:33:21] Production.INFO: ==8562== Releasing lock... [2025-04-07 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:33:21] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:34:06 [end_date_ymd] => 2025-04-07 04:34:06 [RateCDR] => 1 ) [2025-04-07 04: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-04-07 01:34:06' and `end` < '2025-04-07 04: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-04-07 04:34:19] Production.INFO: count ==321 [2025-04-07 04:34:19] Production.ERROR: pbx CDR StartTime 2025-04-07 01:34:06 - End Time 2025-04-07 04:34:06 [2025-04-07 04:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852444', 'tblTempUsageDetail_20' ) start [2025-04-07 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852444', 'tblTempUsageDetail_20' ) end [2025-04-07 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852444', 'tblTempVendorCDR_20' ) start [2025-04-07 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852444', 'tblTempVendorCDR_20' ) end [2025-04-07 04:34:19] Production.INFO: ProcessCDR(1,14852444,1,1,2) [2025-04-07 04:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852444', 'tblTempUsageDetail_20' ) start [2025-04-07 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852444', 'tblTempUsageDetail_20' ) end [2025-04-07 04:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:34:22] Production.INFO: ==8632== Releasing lock... [2025-04-07 04:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:34:22] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:35:05 [end_date_ymd] => 2025-04-07 04:35:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:35:05' and `end` < '2025-04-07 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-04-07 04:35:18] Production.INFO: count ==321 [2025-04-07 04:35:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:35:05 - End Time 2025-04-07 04:35:05 [2025-04-07 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852449', 'tblTempUsageDetail_20' ) start [2025-04-07 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852449', 'tblTempUsageDetail_20' ) end [2025-04-07 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852449', 'tblTempVendorCDR_20' ) start [2025-04-07 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852449', 'tblTempVendorCDR_20' ) end [2025-04-07 04:35:18] Production.INFO: ProcessCDR(1,14852449,1,1,2) [2025-04-07 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852449', 'tblTempUsageDetail_20' ) start [2025-04-07 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852449', 'tblTempUsageDetail_20' ) end [2025-04-07 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:35:21] Production.INFO: ==8706== Releasing lock... [2025-04-07 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:35:21] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:36:06 [end_date_ymd] => 2025-04-07 04:36:06 [RateCDR] => 1 ) [2025-04-07 04: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-04-07 01:36:06' and `end` < '2025-04-07 04: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-04-07 04:36:19] Production.INFO: count ==316 [2025-04-07 04:36:19] Production.ERROR: pbx CDR StartTime 2025-04-07 01:36:06 - End Time 2025-04-07 04:36:06 [2025-04-07 04:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852454', 'tblTempUsageDetail_20' ) start [2025-04-07 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852454', 'tblTempUsageDetail_20' ) end [2025-04-07 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852454', 'tblTempVendorCDR_20' ) start [2025-04-07 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852454', 'tblTempVendorCDR_20' ) end [2025-04-07 04:36:19] Production.INFO: ProcessCDR(1,14852454,1,1,2) [2025-04-07 04:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852454', 'tblTempUsageDetail_20' ) start [2025-04-07 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852454', 'tblTempUsageDetail_20' ) end [2025-04-07 04:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:36:22] Production.INFO: ==8778== Releasing lock... [2025-04-07 04:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:36:22] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:37:05 [end_date_ymd] => 2025-04-07 04:37:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:37:05' and `end` < '2025-04-07 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-04-07 04:37:17] Production.INFO: count ==316 [2025-04-07 04:37:17] Production.ERROR: pbx CDR StartTime 2025-04-07 01:37:05 - End Time 2025-04-07 04:37:05 [2025-04-07 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852459', 'tblTempUsageDetail_20' ) start [2025-04-07 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852459', 'tblTempUsageDetail_20' ) end [2025-04-07 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852459', 'tblTempVendorCDR_20' ) start [2025-04-07 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852459', 'tblTempVendorCDR_20' ) end [2025-04-07 04:37:17] Production.INFO: ProcessCDR(1,14852459,1,1,2) [2025-04-07 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852459', 'tblTempUsageDetail_20' ) start [2025-04-07 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852459', 'tblTempUsageDetail_20' ) end [2025-04-07 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:37:21] Production.INFO: ==8850== Releasing lock... [2025-04-07 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:37:21] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:38:06 [end_date_ymd] => 2025-04-07 04:38:06 [RateCDR] => 1 ) [2025-04-07 04: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-04-07 01:38:06' and `end` < '2025-04-07 04: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-04-07 04:38:18] Production.INFO: count ==316 [2025-04-07 04:38:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:38:06 - End Time 2025-04-07 04:38:06 [2025-04-07 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852464', 'tblTempUsageDetail_20' ) start [2025-04-07 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852464', 'tblTempUsageDetail_20' ) end [2025-04-07 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852464', 'tblTempVendorCDR_20' ) start [2025-04-07 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852464', 'tblTempVendorCDR_20' ) end [2025-04-07 04:38:19] Production.INFO: ProcessCDR(1,14852464,1,1,2) [2025-04-07 04:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852464', 'tblTempUsageDetail_20' ) start [2025-04-07 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852464', 'tblTempUsageDetail_20' ) end [2025-04-07 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:38:22] Production.INFO: ==8925== Releasing lock... [2025-04-07 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:38:22] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:39:04 [end_date_ymd] => 2025-04-07 04:39:04 [RateCDR] => 1 ) [2025-04-07 04:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 01:39:04' and `end` < '2025-04-07 04:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 04:39:17] Production.INFO: count ==316 [2025-04-07 04:39:17] Production.ERROR: pbx CDR StartTime 2025-04-07 01:39:04 - End Time 2025-04-07 04:39:04 [2025-04-07 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852469', 'tblTempUsageDetail_20' ) start [2025-04-07 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852469', 'tblTempUsageDetail_20' ) end [2025-04-07 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852469', 'tblTempVendorCDR_20' ) start [2025-04-07 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852469', 'tblTempVendorCDR_20' ) end [2025-04-07 04:39:17] Production.INFO: ProcessCDR(1,14852469,1,1,2) [2025-04-07 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852469', 'tblTempUsageDetail_20' ) start [2025-04-07 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852469', 'tblTempUsageDetail_20' ) end [2025-04-07 04:39:20] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:39:20] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:39:20] Production.INFO: ==8998== Releasing lock... [2025-04-07 04:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:39:20] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:40:06 [end_date_ymd] => 2025-04-07 04:40:06 [RateCDR] => 1 ) [2025-04-07 04:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 01:40:06' and `end` < '2025-04-07 04:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 04:40:19] Production.INFO: count ==316 [2025-04-07 04:40:19] Production.ERROR: pbx CDR StartTime 2025-04-07 01:40:06 - End Time 2025-04-07 04:40:06 [2025-04-07 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852475', 'tblTempUsageDetail_20' ) start [2025-04-07 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852475', 'tblTempUsageDetail_20' ) end [2025-04-07 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852475', 'tblTempVendorCDR_20' ) start [2025-04-07 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852475', 'tblTempVendorCDR_20' ) end [2025-04-07 04:40:19] Production.INFO: ProcessCDR(1,14852475,1,1,2) [2025-04-07 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852475', 'tblTempUsageDetail_20' ) start [2025-04-07 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852475', 'tblTempUsageDetail_20' ) end [2025-04-07 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:40:22] Production.INFO: ==9071== Releasing lock... [2025-04-07 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:40:22] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:41:05 [end_date_ymd] => 2025-04-07 04:41:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:41:05' and `end` < '2025-04-07 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-04-07 04:41:18] Production.INFO: count ==316 [2025-04-07 04:41:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:41:05 - End Time 2025-04-07 04:41:05 [2025-04-07 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852480', 'tblTempUsageDetail_20' ) start [2025-04-07 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852480', 'tblTempUsageDetail_20' ) end [2025-04-07 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852480', 'tblTempVendorCDR_20' ) start [2025-04-07 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852480', 'tblTempVendorCDR_20' ) end [2025-04-07 04:41:18] Production.INFO: ProcessCDR(1,14852480,1,1,2) [2025-04-07 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852480', 'tblTempUsageDetail_20' ) start [2025-04-07 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852480', 'tblTempUsageDetail_20' ) end [2025-04-07 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:41:21] Production.INFO: ==9143== Releasing lock... [2025-04-07 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:41:21] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:42:06 [end_date_ymd] => 2025-04-07 04:42:06 [RateCDR] => 1 ) [2025-04-07 04: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-04-07 01:42:06' and `end` < '2025-04-07 04: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-04-07 04:42:18] Production.INFO: count ==320 [2025-04-07 04:42:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:42:06 - End Time 2025-04-07 04:42:06 [2025-04-07 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852485', 'tblTempUsageDetail_20' ) start [2025-04-07 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852485', 'tblTempUsageDetail_20' ) end [2025-04-07 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852485', 'tblTempVendorCDR_20' ) start [2025-04-07 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852485', 'tblTempVendorCDR_20' ) end [2025-04-07 04:42:18] Production.INFO: ProcessCDR(1,14852485,1,1,2) [2025-04-07 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852485', 'tblTempUsageDetail_20' ) start [2025-04-07 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852485', 'tblTempUsageDetail_20' ) end [2025-04-07 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:42:22] Production.INFO: ==9214== Releasing lock... [2025-04-07 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:42:22] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:43:05 [end_date_ymd] => 2025-04-07 04:43:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:43:05' and `end` < '2025-04-07 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-04-07 04:43:17] Production.INFO: count ==324 [2025-04-07 04:43:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:43:05 - End Time 2025-04-07 04:43:05 [2025-04-07 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852490', 'tblTempUsageDetail_20' ) start [2025-04-07 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852490', 'tblTempUsageDetail_20' ) end [2025-04-07 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852490', 'tblTempVendorCDR_20' ) start [2025-04-07 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852490', 'tblTempVendorCDR_20' ) end [2025-04-07 04:43:18] Production.INFO: ProcessCDR(1,14852490,1,1,2) [2025-04-07 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852490', 'tblTempUsageDetail_20' ) start [2025-04-07 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852490', 'tblTempUsageDetail_20' ) end [2025-04-07 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:43:21] Production.INFO: ==9289== Releasing lock... [2025-04-07 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:43:21] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:44:05 [end_date_ymd] => 2025-04-07 04:44:05 [RateCDR] => 1 ) [2025-04-07 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 01:44:05' and `end` < '2025-04-07 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 04:44:18] Production.INFO: count ==323 [2025-04-07 04:44:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:44:05 - End Time 2025-04-07 04:44:05 [2025-04-07 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852495', 'tblTempUsageDetail_20' ) start [2025-04-07 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852495', 'tblTempUsageDetail_20' ) end [2025-04-07 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852495', 'tblTempVendorCDR_20' ) start [2025-04-07 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852495', 'tblTempVendorCDR_20' ) end [2025-04-07 04:44:18] Production.INFO: ProcessCDR(1,14852495,1,1,2) [2025-04-07 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852495', 'tblTempUsageDetail_20' ) start [2025-04-07 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852495', 'tblTempUsageDetail_20' ) end [2025-04-07 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:44:21] Production.INFO: ==9358== Releasing lock... [2025-04-07 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:44:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-07 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:45:05 [end_date_ymd] => 2025-04-07 04:45:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:45:05' and `end` < '2025-04-07 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-04-07 04:45:18] Production.INFO: count ==320 [2025-04-07 04:45:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:45:05 - End Time 2025-04-07 04:45:05 [2025-04-07 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852500', 'tblTempUsageDetail_20' ) start [2025-04-07 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852500', 'tblTempUsageDetail_20' ) end [2025-04-07 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852500', 'tblTempVendorCDR_20' ) start [2025-04-07 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852500', 'tblTempVendorCDR_20' ) end [2025-04-07 04:45:18] Production.INFO: ProcessCDR(1,14852500,1,1,2) [2025-04-07 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852500', 'tblTempUsageDetail_20' ) start [2025-04-07 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852500', 'tblTempUsageDetail_20' ) end [2025-04-07 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:45:21] Production.INFO: ==9430== Releasing lock... [2025-04-07 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:45:21] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:46:06 [end_date_ymd] => 2025-04-07 04:46:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:46:06' and `end` < '2025-04-07 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-04-07 04:46:18] Production.INFO: count ==321 [2025-04-07 04:46:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:46:06 - End Time 2025-04-07 04:46:06 [2025-04-07 04:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852505', 'tblTempUsageDetail_20' ) start [2025-04-07 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852505', 'tblTempUsageDetail_20' ) end [2025-04-07 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852505', 'tblTempVendorCDR_20' ) start [2025-04-07 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852505', 'tblTempVendorCDR_20' ) end [2025-04-07 04:46:19] Production.INFO: ProcessCDR(1,14852505,1,1,2) [2025-04-07 04:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852505', 'tblTempUsageDetail_20' ) start [2025-04-07 04:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852505', 'tblTempUsageDetail_20' ) end [2025-04-07 04:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:46:24] Production.INFO: ==9501== Releasing lock... [2025-04-07 04:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:46:24] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:47:05 [end_date_ymd] => 2025-04-07 04:47:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:47:05' and `end` < '2025-04-07 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-04-07 04:47:19] Production.INFO: count ==321 [2025-04-07 04:47:19] Production.ERROR: pbx CDR StartTime 2025-04-07 01:47:05 - End Time 2025-04-07 04:47:05 [2025-04-07 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852510', 'tblTempUsageDetail_20' ) start [2025-04-07 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852510', 'tblTempUsageDetail_20' ) end [2025-04-07 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852510', 'tblTempVendorCDR_20' ) start [2025-04-07 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852510', 'tblTempVendorCDR_20' ) end [2025-04-07 04:47:19] Production.INFO: ProcessCDR(1,14852510,1,1,2) [2025-04-07 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852510', 'tblTempUsageDetail_20' ) start [2025-04-07 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852510', 'tblTempUsageDetail_20' ) end [2025-04-07 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:47:22] Production.INFO: ==9572== Releasing lock... [2025-04-07 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:47:22] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:48:06 [end_date_ymd] => 2025-04-07 04:48:06 [RateCDR] => 1 ) [2025-04-07 04: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-04-07 01:48:06' and `end` < '2025-04-07 04: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-04-07 04:48:18] Production.INFO: count ==322 [2025-04-07 04:48:19] Production.ERROR: pbx CDR StartTime 2025-04-07 01:48:06 - End Time 2025-04-07 04:48:06 [2025-04-07 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852515', 'tblTempUsageDetail_20' ) start [2025-04-07 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852515', 'tblTempUsageDetail_20' ) end [2025-04-07 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852515', 'tblTempVendorCDR_20' ) start [2025-04-07 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852515', 'tblTempVendorCDR_20' ) end [2025-04-07 04:48:19] Production.INFO: ProcessCDR(1,14852515,1,1,2) [2025-04-07 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852515', 'tblTempUsageDetail_20' ) start [2025-04-07 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852515', 'tblTempUsageDetail_20' ) end [2025-04-07 04:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:48:23] Production.INFO: ==9682== Releasing lock... [2025-04-07 04:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:48:23] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:49:06 [end_date_ymd] => 2025-04-07 04:49:06 [RateCDR] => 1 ) [2025-04-07 04: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-04-07 01:49:06' and `end` < '2025-04-07 04: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-04-07 04:49:19] Production.INFO: count ==322 [2025-04-07 04:49:19] Production.ERROR: pbx CDR StartTime 2025-04-07 01:49:06 - End Time 2025-04-07 04:49:06 [2025-04-07 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852520', 'tblTempUsageDetail_20' ) start [2025-04-07 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852520', 'tblTempUsageDetail_20' ) end [2025-04-07 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852520', 'tblTempVendorCDR_20' ) start [2025-04-07 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852520', 'tblTempVendorCDR_20' ) end [2025-04-07 04:49:19] Production.INFO: ProcessCDR(1,14852520,1,1,2) [2025-04-07 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852520', 'tblTempUsageDetail_20' ) start [2025-04-07 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852520', 'tblTempUsageDetail_20' ) end [2025-04-07 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:49:22] Production.INFO: ==9758== Releasing lock... [2025-04-07 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:49:22] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:50:06 [end_date_ymd] => 2025-04-07 04:50:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:50:06' and `end` < '2025-04-07 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-04-07 04:50:20] Production.INFO: count ==316 [2025-04-07 04:50:20] Production.ERROR: pbx CDR StartTime 2025-04-07 01:50:06 - End Time 2025-04-07 04:50:06 [2025-04-07 04:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852526', 'tblTempUsageDetail_20' ) start [2025-04-07 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852526', 'tblTempUsageDetail_20' ) end [2025-04-07 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852526', 'tblTempVendorCDR_20' ) start [2025-04-07 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852526', 'tblTempVendorCDR_20' ) end [2025-04-07 04:50:20] Production.INFO: ProcessCDR(1,14852526,1,1,2) [2025-04-07 04:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852526', 'tblTempUsageDetail_20' ) start [2025-04-07 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852526', 'tblTempUsageDetail_20' ) end [2025-04-07 04:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:50:23] Production.INFO: ==9832== Releasing lock... [2025-04-07 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:50:23] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:51:05 [end_date_ymd] => 2025-04-07 04:51:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:51:05' and `end` < '2025-04-07 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-04-07 04:51:18] Production.INFO: count ==303 [2025-04-07 04:51:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:51:05 - End Time 2025-04-07 04:51:05 [2025-04-07 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852531', 'tblTempUsageDetail_20' ) start [2025-04-07 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852531', 'tblTempUsageDetail_20' ) end [2025-04-07 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852531', 'tblTempVendorCDR_20' ) start [2025-04-07 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852531', 'tblTempVendorCDR_20' ) end [2025-04-07 04:51:18] Production.INFO: ProcessCDR(1,14852531,1,1,2) [2025-04-07 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852531', 'tblTempUsageDetail_20' ) start [2025-04-07 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852531', 'tblTempUsageDetail_20' ) end [2025-04-07 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:51:22] Production.INFO: ==9906== Releasing lock... [2025-04-07 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:51:22] Production.INFO: 31 MB #Memory Used# [2025-04-07 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:52:05 [end_date_ymd] => 2025-04-07 04:52:05 [RateCDR] => 1 ) [2025-04-07 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 01:52:05' and `end` < '2025-04-07 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 04:52:18] Production.INFO: count ==296 [2025-04-07 04:52:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:52:05 - End Time 2025-04-07 04:52:05 [2025-04-07 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852536', 'tblTempUsageDetail_20' ) start [2025-04-07 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852536', 'tblTempUsageDetail_20' ) end [2025-04-07 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852536', 'tblTempVendorCDR_20' ) start [2025-04-07 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852536', 'tblTempVendorCDR_20' ) end [2025-04-07 04:52:18] Production.INFO: ProcessCDR(1,14852536,1,1,2) [2025-04-07 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852536', 'tblTempUsageDetail_20' ) start [2025-04-07 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852536', 'tblTempUsageDetail_20' ) end [2025-04-07 04:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:52:21] Production.INFO: ==9982== Releasing lock... [2025-04-07 04:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:52:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 04:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:53:06 [end_date_ymd] => 2025-04-07 04:53:06 [RateCDR] => 1 ) [2025-04-07 04: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-04-07 01:53:06' and `end` < '2025-04-07 04: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-04-07 04:53:19] Production.INFO: count ==292 [2025-04-07 04:53:19] Production.ERROR: pbx CDR StartTime 2025-04-07 01:53:06 - End Time 2025-04-07 04:53:06 [2025-04-07 04:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852541', 'tblTempUsageDetail_20' ) start [2025-04-07 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852541', 'tblTempUsageDetail_20' ) end [2025-04-07 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852541', 'tblTempVendorCDR_20' ) start [2025-04-07 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852541', 'tblTempVendorCDR_20' ) end [2025-04-07 04:53:19] Production.INFO: ProcessCDR(1,14852541,1,1,2) [2025-04-07 04:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852541', 'tblTempUsageDetail_20' ) start [2025-04-07 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852541', 'tblTempUsageDetail_20' ) end [2025-04-07 04:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:53:22] Production.INFO: ==10072== Releasing lock... [2025-04-07 04:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:53:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-07 04:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:54:06 [end_date_ymd] => 2025-04-07 04:54:06 [RateCDR] => 1 ) [2025-04-07 04: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-04-07 01:54:06' and `end` < '2025-04-07 04: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-04-07 04:54:19] Production.INFO: count ==288 [2025-04-07 04:54:20] Production.ERROR: pbx CDR StartTime 2025-04-07 01:54:06 - End Time 2025-04-07 04:54:06 [2025-04-07 04:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852546', 'tblTempUsageDetail_20' ) start [2025-04-07 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852546', 'tblTempUsageDetail_20' ) end [2025-04-07 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852546', 'tblTempVendorCDR_20' ) start [2025-04-07 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852546', 'tblTempVendorCDR_20' ) end [2025-04-07 04:54:20] Production.INFO: ProcessCDR(1,14852546,1,1,2) [2025-04-07 04:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852546', 'tblTempUsageDetail_20' ) start [2025-04-07 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852546', 'tblTempUsageDetail_20' ) end [2025-04-07 04:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:54:23] Production.INFO: ==10142== Releasing lock... [2025-04-07 04:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:54:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-07 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:55:04 [end_date_ymd] => 2025-04-07 04:55:04 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:55:04' and `end` < '2025-04-07 04: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-04-07 04:55:18] Production.INFO: count ==288 [2025-04-07 04:55:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:55:04 - End Time 2025-04-07 04:55:04 [2025-04-07 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852551', 'tblTempUsageDetail_20' ) start [2025-04-07 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852551', 'tblTempUsageDetail_20' ) end [2025-04-07 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852551', 'tblTempVendorCDR_20' ) start [2025-04-07 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852551', 'tblTempVendorCDR_20' ) end [2025-04-07 04:55:18] Production.INFO: ProcessCDR(1,14852551,1,1,2) [2025-04-07 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852551', 'tblTempUsageDetail_20' ) start [2025-04-07 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852551', 'tblTempUsageDetail_20' ) end [2025-04-07 04:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:55:21] Production.INFO: ==10211== Releasing lock... [2025-04-07 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:55:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-07 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:56:05 [end_date_ymd] => 2025-04-07 04:56:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:56:05' and `end` < '2025-04-07 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-04-07 04:56:19] Production.INFO: count ==288 [2025-04-07 04:56:19] Production.ERROR: pbx CDR StartTime 2025-04-07 01:56:05 - End Time 2025-04-07 04:56:05 [2025-04-07 04:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852556', 'tblTempUsageDetail_20' ) start [2025-04-07 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852556', 'tblTempUsageDetail_20' ) end [2025-04-07 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852556', 'tblTempVendorCDR_20' ) start [2025-04-07 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852556', 'tblTempVendorCDR_20' ) end [2025-04-07 04:56:19] Production.INFO: ProcessCDR(1,14852556,1,1,2) [2025-04-07 04:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852556', 'tblTempUsageDetail_20' ) start [2025-04-07 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852556', 'tblTempUsageDetail_20' ) end [2025-04-07 04:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:56:23] Production.INFO: ==10283== Releasing lock... [2025-04-07 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:56:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-07 04:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:57:06 [end_date_ymd] => 2025-04-07 04:57:06 [RateCDR] => 1 ) [2025-04-07 04:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 01:57:06' and `end` < '2025-04-07 04:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 04:57:19] Production.INFO: count ==281 [2025-04-07 04:57:19] Production.ERROR: pbx CDR StartTime 2025-04-07 01:57:06 - End Time 2025-04-07 04:57:06 [2025-04-07 04:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852561', 'tblTempUsageDetail_20' ) start [2025-04-07 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852561', 'tblTempUsageDetail_20' ) end [2025-04-07 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852561', 'tblTempVendorCDR_20' ) start [2025-04-07 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852561', 'tblTempVendorCDR_20' ) end [2025-04-07 04:57:19] Production.INFO: ProcessCDR(1,14852561,1,1,2) [2025-04-07 04:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852561', 'tblTempUsageDetail_20' ) start [2025-04-07 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852561', 'tblTempUsageDetail_20' ) end [2025-04-07 04:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:57:23] Production.INFO: ==10355== Releasing lock... [2025-04-07 04:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:57:23] Production.INFO: 30 MB #Memory Used# [2025-04-07 04:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:58:06 [end_date_ymd] => 2025-04-07 04:58:06 [RateCDR] => 1 ) [2025-04-07 04: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-04-07 01:58:06' and `end` < '2025-04-07 04: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-04-07 04:58:18] Production.INFO: count ==282 [2025-04-07 04:58:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:58:06 - End Time 2025-04-07 04:58:06 [2025-04-07 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852566', 'tblTempUsageDetail_20' ) start [2025-04-07 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852566', 'tblTempUsageDetail_20' ) end [2025-04-07 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852566', 'tblTempVendorCDR_20' ) start [2025-04-07 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852566', 'tblTempVendorCDR_20' ) end [2025-04-07 04:58:18] Production.INFO: ProcessCDR(1,14852566,1,1,2) [2025-04-07 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852566', 'tblTempUsageDetail_20' ) start [2025-04-07 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852566', 'tblTempUsageDetail_20' ) end [2025-04-07 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:58:22] Production.INFO: ==10427== Releasing lock... [2025-04-07 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:58:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 01:59:05 [end_date_ymd] => 2025-04-07 04:59:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 01:59:05' and `end` < '2025-04-07 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-04-07 04:59:18] Production.INFO: count ==282 [2025-04-07 04:59:18] Production.ERROR: pbx CDR StartTime 2025-04-07 01:59:05 - End Time 2025-04-07 04:59:05 [2025-04-07 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852571', 'tblTempUsageDetail_20' ) start [2025-04-07 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852571', 'tblTempUsageDetail_20' ) end [2025-04-07 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852571', 'tblTempVendorCDR_20' ) start [2025-04-07 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852571', 'tblTempVendorCDR_20' ) end [2025-04-07 04:59:18] Production.INFO: ProcessCDR(1,14852571,1,1,2) [2025-04-07 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852571', 'tblTempUsageDetail_20' ) start [2025-04-07 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852571', 'tblTempUsageDetail_20' ) end [2025-04-07 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 04:59:22] Production.INFO: ==10497== Releasing lock... [2025-04-07 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 04:59:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:00:06 [end_date_ymd] => 2025-04-07 05:00:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:00:06' and `end` < '2025-04-07 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-04-07 05:00:19] Production.INFO: count ==276 [2025-04-07 05:00:19] Production.ERROR: pbx CDR StartTime 2025-04-07 02:00:06 - End Time 2025-04-07 05:00:06 [2025-04-07 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852576', 'tblTempUsageDetail_20' ) start [2025-04-07 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852576', 'tblTempUsageDetail_20' ) end [2025-04-07 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852576', 'tblTempVendorCDR_20' ) start [2025-04-07 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852576', 'tblTempVendorCDR_20' ) end [2025-04-07 05:00:19] Production.INFO: ProcessCDR(1,14852576,1,1,2) [2025-04-07 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852576', 'tblTempUsageDetail_20' ) start [2025-04-07 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852576', 'tblTempUsageDetail_20' ) end [2025-04-07 05:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:00:23] Production.INFO: ==10572== Releasing lock... [2025-04-07 05:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:00:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:01:05 [end_date_ymd] => 2025-04-07 05:01:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:01:05' and `end` < '2025-04-07 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-04-07 05:01:18] Production.INFO: count ==281 [2025-04-07 05:01:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:01:05 - End Time 2025-04-07 05:01:05 [2025-04-07 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852582', 'tblTempUsageDetail_20' ) start [2025-04-07 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852582', 'tblTempUsageDetail_20' ) end [2025-04-07 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852582', 'tblTempVendorCDR_20' ) start [2025-04-07 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852582', 'tblTempVendorCDR_20' ) end [2025-04-07 05:01:18] Production.INFO: ProcessCDR(1,14852582,1,1,2) [2025-04-07 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852582', 'tblTempUsageDetail_20' ) start [2025-04-07 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852582', 'tblTempUsageDetail_20' ) end [2025-04-07 05:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:01:22] Production.INFO: ==10656== Releasing lock... [2025-04-07 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:01:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:02:05 [end_date_ymd] => 2025-04-07 05:02:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:02:05' and `end` < '2025-04-07 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-04-07 05:02:19] Production.INFO: count ==289 [2025-04-07 05:02:19] Production.ERROR: pbx CDR StartTime 2025-04-07 02:02:05 - End Time 2025-04-07 05:02:05 [2025-04-07 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852587', 'tblTempUsageDetail_20' ) start [2025-04-07 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852587', 'tblTempUsageDetail_20' ) end [2025-04-07 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852587', 'tblTempVendorCDR_20' ) start [2025-04-07 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852587', 'tblTempVendorCDR_20' ) end [2025-04-07 05:02:19] Production.INFO: ProcessCDR(1,14852587,1,1,2) [2025-04-07 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852587', 'tblTempUsageDetail_20' ) start [2025-04-07 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852587', 'tblTempUsageDetail_20' ) end [2025-04-07 05:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:02:23] Production.INFO: ==10727== Releasing lock... [2025-04-07 05:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:02:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-07 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:03:05 [end_date_ymd] => 2025-04-07 05:03:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:03:05' and `end` < '2025-04-07 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-04-07 05:03:18] Production.INFO: count ==289 [2025-04-07 05:03:19] Production.ERROR: pbx CDR StartTime 2025-04-07 02:03:05 - End Time 2025-04-07 05:03:05 [2025-04-07 05:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852592', 'tblTempUsageDetail_20' ) start [2025-04-07 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852592', 'tblTempUsageDetail_20' ) end [2025-04-07 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852592', 'tblTempVendorCDR_20' ) start [2025-04-07 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852592', 'tblTempVendorCDR_20' ) end [2025-04-07 05:03:19] Production.INFO: ProcessCDR(1,14852592,1,1,2) [2025-04-07 05:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852592', 'tblTempUsageDetail_20' ) start [2025-04-07 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852592', 'tblTempUsageDetail_20' ) end [2025-04-07 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:03:22] Production.INFO: ==10838== Releasing lock... [2025-04-07 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:03:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-07 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:04:05 [end_date_ymd] => 2025-04-07 05:04:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:04:05' and `end` < '2025-04-07 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-04-07 05:04:18] Production.INFO: count ==286 [2025-04-07 05:04:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:04:05 - End Time 2025-04-07 05:04:05 [2025-04-07 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852597', 'tblTempUsageDetail_20' ) start [2025-04-07 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852597', 'tblTempUsageDetail_20' ) end [2025-04-07 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852597', 'tblTempVendorCDR_20' ) start [2025-04-07 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852597', 'tblTempVendorCDR_20' ) end [2025-04-07 05:04:18] Production.INFO: ProcessCDR(1,14852597,1,1,2) [2025-04-07 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852597', 'tblTempUsageDetail_20' ) start [2025-04-07 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852597', 'tblTempUsageDetail_20' ) end [2025-04-07 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:04:21] Production.INFO: ==10909== Releasing lock... [2025-04-07 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:04:21] Production.INFO: 31 MB #Memory Used# [2025-04-07 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:05:05 [end_date_ymd] => 2025-04-07 05:05:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:05:05' and `end` < '2025-04-07 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-04-07 05:05:18] Production.INFO: count ==287 [2025-04-07 05:05:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:05:05 - End Time 2025-04-07 05:05:05 [2025-04-07 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852602', 'tblTempUsageDetail_20' ) start [2025-04-07 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852602', 'tblTempUsageDetail_20' ) end [2025-04-07 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852602', 'tblTempVendorCDR_20' ) start [2025-04-07 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852602', 'tblTempVendorCDR_20' ) end [2025-04-07 05:05:18] Production.INFO: ProcessCDR(1,14852602,1,1,2) [2025-04-07 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852602', 'tblTempUsageDetail_20' ) start [2025-04-07 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852602', 'tblTempUsageDetail_20' ) end [2025-04-07 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:05:21] Production.INFO: ==10981== Releasing lock... [2025-04-07 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:05:21] Production.INFO: 31 MB #Memory Used# [2025-04-07 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:06:05 [end_date_ymd] => 2025-04-07 05:06:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:06:05' and `end` < '2025-04-07 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-04-07 05:06:18] Production.INFO: count ==286 [2025-04-07 05:06:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:06:05 - End Time 2025-04-07 05:06:05 [2025-04-07 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852607', 'tblTempUsageDetail_20' ) start [2025-04-07 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852607', 'tblTempUsageDetail_20' ) end [2025-04-07 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852607', 'tblTempVendorCDR_20' ) start [2025-04-07 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852607', 'tblTempVendorCDR_20' ) end [2025-04-07 05:06:18] Production.INFO: ProcessCDR(1,14852607,1,1,2) [2025-04-07 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852607', 'tblTempUsageDetail_20' ) start [2025-04-07 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852607', 'tblTempUsageDetail_20' ) end [2025-04-07 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:06:21] Production.INFO: ==11054== Releasing lock... [2025-04-07 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:06:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-07 05:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:07:06 [end_date_ymd] => 2025-04-07 05:07:06 [RateCDR] => 1 ) [2025-04-07 05: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-04-07 02:07:06' and `end` < '2025-04-07 05: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-04-07 05:07:19] Production.INFO: count ==286 [2025-04-07 05:07:19] Production.ERROR: pbx CDR StartTime 2025-04-07 02:07:06 - End Time 2025-04-07 05:07:06 [2025-04-07 05:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852612', 'tblTempUsageDetail_20' ) start [2025-04-07 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852612', 'tblTempUsageDetail_20' ) end [2025-04-07 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852612', 'tblTempVendorCDR_20' ) start [2025-04-07 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852612', 'tblTempVendorCDR_20' ) end [2025-04-07 05:07:19] Production.INFO: ProcessCDR(1,14852612,1,1,2) [2025-04-07 05:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852612', 'tblTempUsageDetail_20' ) start [2025-04-07 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852612', 'tblTempUsageDetail_20' ) end [2025-04-07 05:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:07:22] Production.INFO: ==11126== Releasing lock... [2025-04-07 05:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:07:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-07 05:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:08:06 [end_date_ymd] => 2025-04-07 05:08:06 [RateCDR] => 1 ) [2025-04-07 05: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-04-07 02:08:06' and `end` < '2025-04-07 05: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-04-07 05:08:18] Production.INFO: count ==286 [2025-04-07 05:08:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:08:06 - End Time 2025-04-07 05:08:06 [2025-04-07 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852617', 'tblTempUsageDetail_20' ) start [2025-04-07 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852617', 'tblTempUsageDetail_20' ) end [2025-04-07 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852617', 'tblTempVendorCDR_20' ) start [2025-04-07 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852617', 'tblTempVendorCDR_20' ) end [2025-04-07 05:08:18] Production.INFO: ProcessCDR(1,14852617,1,1,2) [2025-04-07 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852617', 'tblTempUsageDetail_20' ) start [2025-04-07 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852617', 'tblTempUsageDetail_20' ) end [2025-04-07 05:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:08:22] Production.INFO: ==11203== Releasing lock... [2025-04-07 05:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:08:22] Production.INFO: 31 MB #Memory Used# [2025-04-07 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:09:05 [end_date_ymd] => 2025-04-07 05:09:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:09:05' and `end` < '2025-04-07 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-04-07 05:09:18] Production.INFO: count ==281 [2025-04-07 05:09:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:09:05 - End Time 2025-04-07 05:09:05 [2025-04-07 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852622', 'tblTempUsageDetail_20' ) start [2025-04-07 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852622', 'tblTempUsageDetail_20' ) end [2025-04-07 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852622', 'tblTempVendorCDR_20' ) start [2025-04-07 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852622', 'tblTempVendorCDR_20' ) end [2025-04-07 05:09:18] Production.INFO: ProcessCDR(1,14852622,1,1,2) [2025-04-07 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852622', 'tblTempUsageDetail_20' ) start [2025-04-07 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852622', 'tblTempUsageDetail_20' ) end [2025-04-07 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:09:21] Production.INFO: ==11273== Releasing lock... [2025-04-07 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:09:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-07 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:10:06 [end_date_ymd] => 2025-04-07 05:10:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:10:06' and `end` < '2025-04-07 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-04-07 05:10:19] Production.INFO: count ==272 [2025-04-07 05:10:19] Production.ERROR: pbx CDR StartTime 2025-04-07 02:10:06 - End Time 2025-04-07 05:10:06 [2025-04-07 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852627', 'tblTempUsageDetail_20' ) start [2025-04-07 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852627', 'tblTempUsageDetail_20' ) end [2025-04-07 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852627', 'tblTempVendorCDR_20' ) start [2025-04-07 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852627', 'tblTempVendorCDR_20' ) end [2025-04-07 05:10:19] Production.INFO: ProcessCDR(1,14852627,1,1,2) [2025-04-07 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852627', 'tblTempUsageDetail_20' ) start [2025-04-07 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852627', 'tblTempUsageDetail_20' ) end [2025-04-07 05:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:10:23] Production.INFO: ==11346== Releasing lock... [2025-04-07 05:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:10:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:11:05 [end_date_ymd] => 2025-04-07 05:11:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:11:05' and `end` < '2025-04-07 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-04-07 05:11:18] Production.INFO: count ==271 [2025-04-07 05:11:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:11:05 - End Time 2025-04-07 05:11:05 [2025-04-07 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852633', 'tblTempUsageDetail_20' ) start [2025-04-07 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852633', 'tblTempUsageDetail_20' ) end [2025-04-07 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852633', 'tblTempVendorCDR_20' ) start [2025-04-07 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852633', 'tblTempVendorCDR_20' ) end [2025-04-07 05:11:18] Production.INFO: ProcessCDR(1,14852633,1,1,2) [2025-04-07 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852633', 'tblTempUsageDetail_20' ) start [2025-04-07 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852633', 'tblTempUsageDetail_20' ) end [2025-04-07 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:11:21] Production.INFO: ==11420== Releasing lock... [2025-04-07 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:11:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:12:05 [end_date_ymd] => 2025-04-07 05:12:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:12:05' and `end` < '2025-04-07 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-04-07 05:12:18] Production.INFO: count ==271 [2025-04-07 05:12:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:12:05 - End Time 2025-04-07 05:12:05 [2025-04-07 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852638', 'tblTempUsageDetail_20' ) start [2025-04-07 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852638', 'tblTempUsageDetail_20' ) end [2025-04-07 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852638', 'tblTempVendorCDR_20' ) start [2025-04-07 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852638', 'tblTempVendorCDR_20' ) end [2025-04-07 05:12:18] Production.INFO: ProcessCDR(1,14852638,1,1,2) [2025-04-07 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852638', 'tblTempUsageDetail_20' ) start [2025-04-07 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852638', 'tblTempUsageDetail_20' ) end [2025-04-07 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:12:21] Production.INFO: ==11492== Releasing lock... [2025-04-07 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:12:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:13:05 [end_date_ymd] => 2025-04-07 05:13:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:13:05' and `end` < '2025-04-07 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-04-07 05:13:18] Production.INFO: count ==271 [2025-04-07 05:13:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:13:05 - End Time 2025-04-07 05:13:05 [2025-04-07 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852643', 'tblTempUsageDetail_20' ) start [2025-04-07 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852643', 'tblTempUsageDetail_20' ) end [2025-04-07 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852643', 'tblTempVendorCDR_20' ) start [2025-04-07 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852643', 'tblTempVendorCDR_20' ) end [2025-04-07 05:13:18] Production.INFO: ProcessCDR(1,14852643,1,1,2) [2025-04-07 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852643', 'tblTempUsageDetail_20' ) start [2025-04-07 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852643', 'tblTempUsageDetail_20' ) end [2025-04-07 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:13:21] Production.INFO: ==11563== Releasing lock... [2025-04-07 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:13:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 05:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:14:06 [end_date_ymd] => 2025-04-07 05:14:06 [RateCDR] => 1 ) [2025-04-07 05: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-04-07 02:14:06' and `end` < '2025-04-07 05: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-04-07 05:14:19] Production.INFO: count ==271 [2025-04-07 05:14:19] Production.ERROR: pbx CDR StartTime 2025-04-07 02:14:06 - End Time 2025-04-07 05:14:06 [2025-04-07 05:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852648', 'tblTempUsageDetail_20' ) start [2025-04-07 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852648', 'tblTempUsageDetail_20' ) end [2025-04-07 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852648', 'tblTempVendorCDR_20' ) start [2025-04-07 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852648', 'tblTempVendorCDR_20' ) end [2025-04-07 05:14:19] Production.INFO: ProcessCDR(1,14852648,1,1,2) [2025-04-07 05:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852648', 'tblTempUsageDetail_20' ) start [2025-04-07 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852648', 'tblTempUsageDetail_20' ) end [2025-04-07 05:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:14:22] Production.INFO: ==11637== Releasing lock... [2025-04-07 05:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:14:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:15:05 [end_date_ymd] => 2025-04-07 05:15:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:15:05' and `end` < '2025-04-07 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-04-07 05:15:18] Production.INFO: count ==271 [2025-04-07 05:15:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:15:05 - End Time 2025-04-07 05:15:05 [2025-04-07 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852653', 'tblTempUsageDetail_20' ) start [2025-04-07 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852653', 'tblTempUsageDetail_20' ) end [2025-04-07 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852653', 'tblTempVendorCDR_20' ) start [2025-04-07 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852653', 'tblTempVendorCDR_20' ) end [2025-04-07 05:15:18] Production.INFO: ProcessCDR(1,14852653,1,1,2) [2025-04-07 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852653', 'tblTempUsageDetail_20' ) start [2025-04-07 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852653', 'tblTempUsageDetail_20' ) end [2025-04-07 05:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:15:22] Production.INFO: ==11709== Releasing lock... [2025-04-07 05:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:15:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 05:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:16:06 [end_date_ymd] => 2025-04-07 05:16:06 [RateCDR] => 1 ) [2025-04-07 05:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 02:16:06' and `end` < '2025-04-07 05:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 05:16:19] Production.INFO: count ==272 [2025-04-07 05:16:19] Production.ERROR: pbx CDR StartTime 2025-04-07 02:16:06 - End Time 2025-04-07 05:16:06 [2025-04-07 05:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852658', 'tblTempUsageDetail_20' ) start [2025-04-07 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852658', 'tblTempUsageDetail_20' ) end [2025-04-07 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852658', 'tblTempVendorCDR_20' ) start [2025-04-07 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852658', 'tblTempVendorCDR_20' ) end [2025-04-07 05:16:19] Production.INFO: ProcessCDR(1,14852658,1,1,2) [2025-04-07 05:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852658', 'tblTempUsageDetail_20' ) start [2025-04-07 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852658', 'tblTempUsageDetail_20' ) end [2025-04-07 05:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:16:22] Production.INFO: ==11782== Releasing lock... [2025-04-07 05:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:16:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:17:05 [end_date_ymd] => 2025-04-07 05:17:05 [RateCDR] => 1 ) [2025-04-07 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 02:17:05' and `end` < '2025-04-07 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 05:17:18] Production.INFO: count ==269 [2025-04-07 05:17:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:17:05 - End Time 2025-04-07 05:17:05 [2025-04-07 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852663', 'tblTempUsageDetail_20' ) start [2025-04-07 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852663', 'tblTempUsageDetail_20' ) end [2025-04-07 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852663', 'tblTempVendorCDR_20' ) start [2025-04-07 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852663', 'tblTempVendorCDR_20' ) end [2025-04-07 05:17:18] Production.INFO: ProcessCDR(1,14852663,1,1,2) [2025-04-07 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852663', 'tblTempUsageDetail_20' ) start [2025-04-07 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852663', 'tblTempUsageDetail_20' ) end [2025-04-07 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:17:21] Production.INFO: ==11851== Releasing lock... [2025-04-07 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:17:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:18:05 [end_date_ymd] => 2025-04-07 05:18:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:18:05' and `end` < '2025-04-07 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-04-07 05:18:18] Production.INFO: count ==271 [2025-04-07 05:18:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:18:05 - End Time 2025-04-07 05:18:05 [2025-04-07 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852668', 'tblTempUsageDetail_20' ) start [2025-04-07 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852668', 'tblTempUsageDetail_20' ) end [2025-04-07 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852668', 'tblTempVendorCDR_20' ) start [2025-04-07 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852668', 'tblTempVendorCDR_20' ) end [2025-04-07 05:18:18] Production.INFO: ProcessCDR(1,14852668,1,1,2) [2025-04-07 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852668', 'tblTempUsageDetail_20' ) start [2025-04-07 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852668', 'tblTempUsageDetail_20' ) end [2025-04-07 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:18:22] Production.INFO: ==11934== Releasing lock... [2025-04-07 05:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:18:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:19:05 [end_date_ymd] => 2025-04-07 05:19:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:19:05' and `end` < '2025-04-07 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-04-07 05:19:18] Production.INFO: count ==273 [2025-04-07 05:19:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:19:05 - End Time 2025-04-07 05:19:05 [2025-04-07 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852673', 'tblTempUsageDetail_20' ) start [2025-04-07 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852673', 'tblTempUsageDetail_20' ) end [2025-04-07 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852673', 'tblTempVendorCDR_20' ) start [2025-04-07 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852673', 'tblTempVendorCDR_20' ) end [2025-04-07 05:19:18] Production.INFO: ProcessCDR(1,14852673,1,1,2) [2025-04-07 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852673', 'tblTempUsageDetail_20' ) start [2025-04-07 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852673', 'tblTempUsageDetail_20' ) end [2025-04-07 05:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:19:22] Production.INFO: ==12046== Releasing lock... [2025-04-07 05:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:19:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:20:06 [end_date_ymd] => 2025-04-07 05:20:06 [RateCDR] => 1 ) [2025-04-07 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 02:20:06' and `end` < '2025-04-07 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 05:20:19] Production.INFO: count ==265 [2025-04-07 05:20:19] Production.ERROR: pbx CDR StartTime 2025-04-07 02:20:06 - End Time 2025-04-07 05:20:06 [2025-04-07 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852679', 'tblTempUsageDetail_20' ) start [2025-04-07 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852679', 'tblTempUsageDetail_20' ) end [2025-04-07 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852679', 'tblTempVendorCDR_20' ) start [2025-04-07 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852679', 'tblTempVendorCDR_20' ) end [2025-04-07 05:20:19] Production.INFO: ProcessCDR(1,14852679,1,1,2) [2025-04-07 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852679', 'tblTempUsageDetail_20' ) start [2025-04-07 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852679', 'tblTempUsageDetail_20' ) end [2025-04-07 05:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:20:23] Production.INFO: ==12120== Releasing lock... [2025-04-07 05:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:20:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:21:05 [end_date_ymd] => 2025-04-07 05:21:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:21:05' and `end` < '2025-04-07 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-04-07 05:21:17] Production.INFO: count ==264 [2025-04-07 05:21:17] Production.ERROR: pbx CDR StartTime 2025-04-07 02:21:05 - End Time 2025-04-07 05:21:05 [2025-04-07 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852684', 'tblTempUsageDetail_20' ) start [2025-04-07 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852684', 'tblTempUsageDetail_20' ) end [2025-04-07 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852684', 'tblTempVendorCDR_20' ) start [2025-04-07 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852684', 'tblTempVendorCDR_20' ) end [2025-04-07 05:21:18] Production.INFO: ProcessCDR(1,14852684,1,1,2) [2025-04-07 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852684', 'tblTempUsageDetail_20' ) start [2025-04-07 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852684', 'tblTempUsageDetail_20' ) end [2025-04-07 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:21:21] Production.INFO: ==12198== Releasing lock... [2025-04-07 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:21:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:22:05 [end_date_ymd] => 2025-04-07 05:22:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:22:05' and `end` < '2025-04-07 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-04-07 05:22:18] Production.INFO: count ==256 [2025-04-07 05:22:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:22:05 - End Time 2025-04-07 05:22:05 [2025-04-07 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852689', 'tblTempUsageDetail_20' ) start [2025-04-07 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852689', 'tblTempUsageDetail_20' ) end [2025-04-07 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852689', 'tblTempVendorCDR_20' ) start [2025-04-07 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852689', 'tblTempVendorCDR_20' ) end [2025-04-07 05:22:18] Production.INFO: ProcessCDR(1,14852689,1,1,2) [2025-04-07 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852689', 'tblTempUsageDetail_20' ) start [2025-04-07 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852689', 'tblTempUsageDetail_20' ) end [2025-04-07 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:22:21] Production.INFO: ==12271== Releasing lock... [2025-04-07 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:22:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 05:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:23:04 [end_date_ymd] => 2025-04-07 05:23:04 [RateCDR] => 1 ) [2025-04-07 05:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 02:23:04' and `end` < '2025-04-07 05:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 05:23:17] Production.INFO: count ==256 [2025-04-07 05:23:17] Production.ERROR: pbx CDR StartTime 2025-04-07 02:23:04 - End Time 2025-04-07 05:23:04 [2025-04-07 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852694', 'tblTempUsageDetail_20' ) start [2025-04-07 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852694', 'tblTempUsageDetail_20' ) end [2025-04-07 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852694', 'tblTempVendorCDR_20' ) start [2025-04-07 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852694', 'tblTempVendorCDR_20' ) end [2025-04-07 05:23:17] Production.INFO: ProcessCDR(1,14852694,1,1,2) [2025-04-07 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852694', 'tblTempUsageDetail_20' ) start [2025-04-07 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852694', 'tblTempUsageDetail_20' ) end [2025-04-07 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:23:21] Production.INFO: ==12341== Releasing lock... [2025-04-07 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:23:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:24:05 [end_date_ymd] => 2025-04-07 05:24:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:24:05' and `end` < '2025-04-07 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-04-07 05:24:18] Production.INFO: count ==256 [2025-04-07 05:24:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:24:05 - End Time 2025-04-07 05:24:05 [2025-04-07 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852699', 'tblTempUsageDetail_20' ) start [2025-04-07 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852699', 'tblTempUsageDetail_20' ) end [2025-04-07 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852699', 'tblTempVendorCDR_20' ) start [2025-04-07 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852699', 'tblTempVendorCDR_20' ) end [2025-04-07 05:24:18] Production.INFO: ProcessCDR(1,14852699,1,1,2) [2025-04-07 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852699', 'tblTempUsageDetail_20' ) start [2025-04-07 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852699', 'tblTempUsageDetail_20' ) end [2025-04-07 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:24:21] Production.INFO: ==12412== Releasing lock... [2025-04-07 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:24:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:25:06 [end_date_ymd] => 2025-04-07 05:25:06 [RateCDR] => 1 ) [2025-04-07 05: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-04-07 02:25:06' and `end` < '2025-04-07 05: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-04-07 05:25:19] Production.INFO: count ==256 [2025-04-07 05:25:19] Production.ERROR: pbx CDR StartTime 2025-04-07 02:25:06 - End Time 2025-04-07 05:25:06 [2025-04-07 05:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852704', 'tblTempUsageDetail_20' ) start [2025-04-07 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852704', 'tblTempUsageDetail_20' ) end [2025-04-07 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852704', 'tblTempVendorCDR_20' ) start [2025-04-07 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852704', 'tblTempVendorCDR_20' ) end [2025-04-07 05:25:19] Production.INFO: ProcessCDR(1,14852704,1,1,2) [2025-04-07 05:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852704', 'tblTempUsageDetail_20' ) start [2025-04-07 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852704', 'tblTempUsageDetail_20' ) end [2025-04-07 05:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:25:22] Production.INFO: ==12485== Releasing lock... [2025-04-07 05:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:25:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:26:05 [end_date_ymd] => 2025-04-07 05:26:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:26:05' and `end` < '2025-04-07 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-04-07 05:26:18] Production.INFO: count ==256 [2025-04-07 05:26:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:26:05 - End Time 2025-04-07 05:26:05 [2025-04-07 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852709', 'tblTempUsageDetail_20' ) start [2025-04-07 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852709', 'tblTempUsageDetail_20' ) end [2025-04-07 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852709', 'tblTempVendorCDR_20' ) start [2025-04-07 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852709', 'tblTempVendorCDR_20' ) end [2025-04-07 05:26:18] Production.INFO: ProcessCDR(1,14852709,1,1,2) [2025-04-07 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852709', 'tblTempUsageDetail_20' ) start [2025-04-07 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852709', 'tblTempUsageDetail_20' ) end [2025-04-07 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:26:21] Production.INFO: ==12557== Releasing lock... [2025-04-07 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:26:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:27:05 [end_date_ymd] => 2025-04-07 05:27:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:27:05' and `end` < '2025-04-07 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-04-07 05:27:18] Production.INFO: count ==256 [2025-04-07 05:27:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:27:05 - End Time 2025-04-07 05:27:05 [2025-04-07 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852714', 'tblTempUsageDetail_20' ) start [2025-04-07 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852714', 'tblTempUsageDetail_20' ) end [2025-04-07 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852714', 'tblTempVendorCDR_20' ) start [2025-04-07 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852714', 'tblTempVendorCDR_20' ) end [2025-04-07 05:27:18] Production.INFO: ProcessCDR(1,14852714,1,1,2) [2025-04-07 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852714', 'tblTempUsageDetail_20' ) start [2025-04-07 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852714', 'tblTempUsageDetail_20' ) end [2025-04-07 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:27:21] Production.INFO: ==12628== Releasing lock... [2025-04-07 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:27:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:28:05 [end_date_ymd] => 2025-04-07 05:28:05 [RateCDR] => 1 ) [2025-04-07 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 02:28:05' and `end` < '2025-04-07 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 05:28:18] Production.INFO: count ==258 [2025-04-07 05:28:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:28:05 - End Time 2025-04-07 05:28:05 [2025-04-07 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852719', 'tblTempUsageDetail_20' ) start [2025-04-07 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852719', 'tblTempUsageDetail_20' ) end [2025-04-07 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852719', 'tblTempVendorCDR_20' ) start [2025-04-07 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852719', 'tblTempVendorCDR_20' ) end [2025-04-07 05:28:18] Production.INFO: ProcessCDR(1,14852719,1,1,2) [2025-04-07 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852719', 'tblTempUsageDetail_20' ) start [2025-04-07 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852719', 'tblTempUsageDetail_20' ) end [2025-04-07 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:28:21] Production.INFO: ==12707== Releasing lock... [2025-04-07 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:28:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 05:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:29:06 [end_date_ymd] => 2025-04-07 05:29:06 [RateCDR] => 1 ) [2025-04-07 05: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-04-07 02:29:06' and `end` < '2025-04-07 05: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-04-07 05:29:18] Production.INFO: count ==257 [2025-04-07 05:29:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:29:06 - End Time 2025-04-07 05:29:06 [2025-04-07 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852724', 'tblTempUsageDetail_20' ) start [2025-04-07 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852724', 'tblTempUsageDetail_20' ) end [2025-04-07 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852724', 'tblTempVendorCDR_20' ) start [2025-04-07 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852724', 'tblTempVendorCDR_20' ) end [2025-04-07 05:29:18] Production.INFO: ProcessCDR(1,14852724,1,1,2) [2025-04-07 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852724', 'tblTempUsageDetail_20' ) start [2025-04-07 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852724', 'tblTempUsageDetail_20' ) end [2025-04-07 05:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:29:22] Production.INFO: ==12781== Releasing lock... [2025-04-07 05:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:29:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:30:06 [end_date_ymd] => 2025-04-07 05:30:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:30:06' and `end` < '2025-04-07 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-04-07 05:30:19] Production.INFO: count ==254 [2025-04-07 05:30:19] Production.ERROR: pbx CDR StartTime 2025-04-07 02:30:06 - End Time 2025-04-07 05:30:06 [2025-04-07 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852730', 'tblTempUsageDetail_20' ) start [2025-04-07 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852730', 'tblTempUsageDetail_20' ) end [2025-04-07 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852730', 'tblTempVendorCDR_20' ) start [2025-04-07 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852730', 'tblTempVendorCDR_20' ) end [2025-04-07 05:30:19] Production.INFO: ProcessCDR(1,14852730,1,1,2) [2025-04-07 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852730', 'tblTempUsageDetail_20' ) start [2025-04-07 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852730', 'tblTempUsageDetail_20' ) end [2025-04-07 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:30:22] Production.INFO: ==12859== Releasing lock... [2025-04-07 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:30:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 05:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:31:06 [end_date_ymd] => 2025-04-07 05:31:06 [RateCDR] => 1 ) [2025-04-07 05: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-04-07 02:31:06' and `end` < '2025-04-07 05: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-04-07 05:31:18] Production.INFO: count ==254 [2025-04-07 05:31:19] Production.ERROR: pbx CDR StartTime 2025-04-07 02:31:06 - End Time 2025-04-07 05:31:06 [2025-04-07 05:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852735', 'tblTempUsageDetail_20' ) start [2025-04-07 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852735', 'tblTempUsageDetail_20' ) end [2025-04-07 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852735', 'tblTempVendorCDR_20' ) start [2025-04-07 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852735', 'tblTempVendorCDR_20' ) end [2025-04-07 05:31:19] Production.INFO: ProcessCDR(1,14852735,1,1,2) [2025-04-07 05:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852735', 'tblTempUsageDetail_20' ) start [2025-04-07 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852735', 'tblTempUsageDetail_20' ) end [2025-04-07 05:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:31:22] Production.INFO: ==12932== Releasing lock... [2025-04-07 05:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:31:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:32:05 [end_date_ymd] => 2025-04-07 05:32:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:32:05' and `end` < '2025-04-07 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-04-07 05:32:18] Production.INFO: count ==254 [2025-04-07 05:32:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:32:05 - End Time 2025-04-07 05:32:05 [2025-04-07 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852740', 'tblTempUsageDetail_20' ) start [2025-04-07 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852740', 'tblTempUsageDetail_20' ) end [2025-04-07 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852740', 'tblTempVendorCDR_20' ) start [2025-04-07 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852740', 'tblTempVendorCDR_20' ) end [2025-04-07 05:32:18] Production.INFO: ProcessCDR(1,14852740,1,1,2) [2025-04-07 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852740', 'tblTempUsageDetail_20' ) start [2025-04-07 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852740', 'tblTempUsageDetail_20' ) end [2025-04-07 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:32:21] Production.INFO: ==13001== Releasing lock... [2025-04-07 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:32:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:33:05 [end_date_ymd] => 2025-04-07 05:33:05 [RateCDR] => 1 ) [2025-04-07 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 02:33:05' and `end` < '2025-04-07 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 05:33:18] Production.INFO: count ==254 [2025-04-07 05:33:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:33:05 - End Time 2025-04-07 05:33:05 [2025-04-07 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852745', 'tblTempUsageDetail_20' ) start [2025-04-07 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852745', 'tblTempUsageDetail_20' ) end [2025-04-07 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852745', 'tblTempVendorCDR_20' ) start [2025-04-07 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852745', 'tblTempVendorCDR_20' ) end [2025-04-07 05:33:18] Production.INFO: ProcessCDR(1,14852745,1,1,2) [2025-04-07 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852745', 'tblTempUsageDetail_20' ) start [2025-04-07 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852745', 'tblTempUsageDetail_20' ) end [2025-04-07 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:33:22] Production.INFO: ==13077== Releasing lock... [2025-04-07 05:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:33:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:34:05 [end_date_ymd] => 2025-04-07 05:34:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:34:05' and `end` < '2025-04-07 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-04-07 05:34:18] Production.INFO: count ==254 [2025-04-07 05:34:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:34:05 - End Time 2025-04-07 05:34:05 [2025-04-07 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852750', 'tblTempUsageDetail_20' ) start [2025-04-07 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852750', 'tblTempUsageDetail_20' ) end [2025-04-07 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852750', 'tblTempVendorCDR_20' ) start [2025-04-07 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852750', 'tblTempVendorCDR_20' ) end [2025-04-07 05:34:18] Production.INFO: ProcessCDR(1,14852750,1,1,2) [2025-04-07 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852750', 'tblTempUsageDetail_20' ) start [2025-04-07 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852750', 'tblTempUsageDetail_20' ) end [2025-04-07 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:34:21] Production.INFO: ==13190== Releasing lock... [2025-04-07 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:34:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:35:05 [end_date_ymd] => 2025-04-07 05:35:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:35:05' and `end` < '2025-04-07 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-04-07 05:35:18] Production.INFO: count ==254 [2025-04-07 05:35:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:35:05 - End Time 2025-04-07 05:35:05 [2025-04-07 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852755', 'tblTempUsageDetail_20' ) start [2025-04-07 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852755', 'tblTempUsageDetail_20' ) end [2025-04-07 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852755', 'tblTempVendorCDR_20' ) start [2025-04-07 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852755', 'tblTempVendorCDR_20' ) end [2025-04-07 05:35:18] Production.INFO: ProcessCDR(1,14852755,1,1,2) [2025-04-07 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852755', 'tblTempUsageDetail_20' ) start [2025-04-07 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852755', 'tblTempUsageDetail_20' ) end [2025-04-07 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:35:21] Production.INFO: ==13261== Releasing lock... [2025-04-07 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:35:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:36:05 [end_date_ymd] => 2025-04-07 05:36:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:36:05' and `end` < '2025-04-07 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-04-07 05:36:18] Production.INFO: count ==254 [2025-04-07 05:36:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:36:05 - End Time 2025-04-07 05:36:05 [2025-04-07 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852760', 'tblTempUsageDetail_20' ) start [2025-04-07 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852760', 'tblTempUsageDetail_20' ) end [2025-04-07 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852760', 'tblTempVendorCDR_20' ) start [2025-04-07 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852760', 'tblTempVendorCDR_20' ) end [2025-04-07 05:36:18] Production.INFO: ProcessCDR(1,14852760,1,1,2) [2025-04-07 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852760', 'tblTempUsageDetail_20' ) start [2025-04-07 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852760', 'tblTempUsageDetail_20' ) end [2025-04-07 05:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:36:22] Production.INFO: ==13331== Releasing lock... [2025-04-07 05:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:36:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:37:05 [end_date_ymd] => 2025-04-07 05:37:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:37:05' and `end` < '2025-04-07 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-04-07 05:37:18] Production.INFO: count ==254 [2025-04-07 05:37:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:37:05 - End Time 2025-04-07 05:37:05 [2025-04-07 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852765', 'tblTempUsageDetail_20' ) start [2025-04-07 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852765', 'tblTempUsageDetail_20' ) end [2025-04-07 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852765', 'tblTempVendorCDR_20' ) start [2025-04-07 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852765', 'tblTempVendorCDR_20' ) end [2025-04-07 05:37:18] Production.INFO: ProcessCDR(1,14852765,1,1,2) [2025-04-07 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852765', 'tblTempUsageDetail_20' ) start [2025-04-07 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852765', 'tblTempUsageDetail_20' ) end [2025-04-07 05:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:37:22] Production.INFO: ==13405== Releasing lock... [2025-04-07 05:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:37:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:38:05 [end_date_ymd] => 2025-04-07 05:38:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:38:05' and `end` < '2025-04-07 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-04-07 05:38:18] Production.INFO: count ==254 [2025-04-07 05:38:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:38:05 - End Time 2025-04-07 05:38:05 [2025-04-07 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852770', 'tblTempUsageDetail_20' ) start [2025-04-07 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852770', 'tblTempUsageDetail_20' ) end [2025-04-07 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852770', 'tblTempVendorCDR_20' ) start [2025-04-07 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852770', 'tblTempVendorCDR_20' ) end [2025-04-07 05:38:18] Production.INFO: ProcessCDR(1,14852770,1,1,2) [2025-04-07 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852770', 'tblTempUsageDetail_20' ) start [2025-04-07 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852770', 'tblTempUsageDetail_20' ) end [2025-04-07 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:38:21] Production.INFO: ==13475== Releasing lock... [2025-04-07 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:38:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 05:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:39:06 [end_date_ymd] => 2025-04-07 05:39:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:39:06' and `end` < '2025-04-07 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-04-07 05:39:19] Production.INFO: count ==254 [2025-04-07 05:39:19] Production.ERROR: pbx CDR StartTime 2025-04-07 02:39:06 - End Time 2025-04-07 05:39:06 [2025-04-07 05:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852775', 'tblTempUsageDetail_20' ) start [2025-04-07 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852775', 'tblTempUsageDetail_20' ) end [2025-04-07 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852775', 'tblTempVendorCDR_20' ) start [2025-04-07 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852775', 'tblTempVendorCDR_20' ) end [2025-04-07 05:39:19] Production.INFO: ProcessCDR(1,14852775,1,1,2) [2025-04-07 05:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852775', 'tblTempUsageDetail_20' ) start [2025-04-07 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852775', 'tblTempUsageDetail_20' ) end [2025-04-07 05:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:39:22] Production.INFO: ==13546== Releasing lock... [2025-04-07 05:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:39:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:40:06 [end_date_ymd] => 2025-04-07 05:40:06 [RateCDR] => 1 ) [2025-04-07 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 02:40:06' and `end` < '2025-04-07 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 05:40:19] Production.INFO: count ==252 [2025-04-07 05:40:19] Production.ERROR: pbx CDR StartTime 2025-04-07 02:40:06 - End Time 2025-04-07 05:40:06 [2025-04-07 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852780', 'tblTempUsageDetail_20' ) start [2025-04-07 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852780', 'tblTempUsageDetail_20' ) end [2025-04-07 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852780', 'tblTempVendorCDR_20' ) start [2025-04-07 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852780', 'tblTempVendorCDR_20' ) end [2025-04-07 05:40:19] Production.INFO: ProcessCDR(1,14852780,1,1,2) [2025-04-07 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852780', 'tblTempUsageDetail_20' ) start [2025-04-07 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852780', 'tblTempUsageDetail_20' ) end [2025-04-07 05:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:40:23] Production.INFO: ==13618== Releasing lock... [2025-04-07 05:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:40:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 05:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:41:06 [end_date_ymd] => 2025-04-07 05:41:06 [RateCDR] => 1 ) [2025-04-07 05: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-04-07 02:41:06' and `end` < '2025-04-07 05: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-04-07 05:41:19] Production.INFO: count ==250 [2025-04-07 05:41:19] Production.ERROR: pbx CDR StartTime 2025-04-07 02:41:06 - End Time 2025-04-07 05:41:06 [2025-04-07 05:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852786', 'tblTempUsageDetail_20' ) start [2025-04-07 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852786', 'tblTempUsageDetail_20' ) end [2025-04-07 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852786', 'tblTempVendorCDR_20' ) start [2025-04-07 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852786', 'tblTempVendorCDR_20' ) end [2025-04-07 05:41:19] Production.INFO: ProcessCDR(1,14852786,1,1,2) [2025-04-07 05:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852786', 'tblTempUsageDetail_20' ) start [2025-04-07 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852786', 'tblTempUsageDetail_20' ) end [2025-04-07 05:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:41:22] Production.INFO: ==13693== Releasing lock... [2025-04-07 05:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:41:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:42:05 [end_date_ymd] => 2025-04-07 05:42:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:42:05' and `end` < '2025-04-07 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-04-07 05:42:18] Production.INFO: count ==250 [2025-04-07 05:42:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:42:05 - End Time 2025-04-07 05:42:05 [2025-04-07 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852791', 'tblTempUsageDetail_20' ) start [2025-04-07 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852791', 'tblTempUsageDetail_20' ) end [2025-04-07 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852791', 'tblTempVendorCDR_20' ) start [2025-04-07 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852791', 'tblTempVendorCDR_20' ) end [2025-04-07 05:42:18] Production.INFO: ProcessCDR(1,14852791,1,1,2) [2025-04-07 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852791', 'tblTempUsageDetail_20' ) start [2025-04-07 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852791', 'tblTempUsageDetail_20' ) end [2025-04-07 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:42:21] Production.INFO: ==13774== Releasing lock... [2025-04-07 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:42:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:43:05 [end_date_ymd] => 2025-04-07 05:43:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:43:05' and `end` < '2025-04-07 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-04-07 05:43:18] Production.INFO: count ==249 [2025-04-07 05:43:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:43:05 - End Time 2025-04-07 05:43:05 [2025-04-07 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852796', 'tblTempUsageDetail_20' ) start [2025-04-07 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852796', 'tblTempUsageDetail_20' ) end [2025-04-07 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852796', 'tblTempVendorCDR_20' ) start [2025-04-07 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852796', 'tblTempVendorCDR_20' ) end [2025-04-07 05:43:18] Production.INFO: ProcessCDR(1,14852796,1,1,2) [2025-04-07 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852796', 'tblTempUsageDetail_20' ) start [2025-04-07 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852796', 'tblTempUsageDetail_20' ) end [2025-04-07 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:43:21] Production.INFO: ==13846== Releasing lock... [2025-04-07 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:43:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:44:05 [end_date_ymd] => 2025-04-07 05:44:05 [RateCDR] => 1 ) [2025-04-07 05:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 02:44:05' and `end` < '2025-04-07 05:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 05:44:18] Production.INFO: count ==249 [2025-04-07 05:44:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:44:05 - End Time 2025-04-07 05:44:05 [2025-04-07 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852801', 'tblTempUsageDetail_20' ) start [2025-04-07 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852801', 'tblTempUsageDetail_20' ) end [2025-04-07 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852801', 'tblTempVendorCDR_20' ) start [2025-04-07 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852801', 'tblTempVendorCDR_20' ) end [2025-04-07 05:44:18] Production.INFO: ProcessCDR(1,14852801,1,1,2) [2025-04-07 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852801', 'tblTempUsageDetail_20' ) start [2025-04-07 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852801', 'tblTempUsageDetail_20' ) end [2025-04-07 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:44:21] Production.INFO: ==13918== Releasing lock... [2025-04-07 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:44:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:45:05 [end_date_ymd] => 2025-04-07 05:45:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:45:05' and `end` < '2025-04-07 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-04-07 05:45:18] Production.INFO: count ==249 [2025-04-07 05:45:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:45:05 - End Time 2025-04-07 05:45:05 [2025-04-07 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852806', 'tblTempUsageDetail_20' ) start [2025-04-07 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852806', 'tblTempUsageDetail_20' ) end [2025-04-07 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852806', 'tblTempVendorCDR_20' ) start [2025-04-07 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852806', 'tblTempVendorCDR_20' ) end [2025-04-07 05:45:18] Production.INFO: ProcessCDR(1,14852806,1,1,2) [2025-04-07 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852806', 'tblTempUsageDetail_20' ) start [2025-04-07 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852806', 'tblTempUsageDetail_20' ) end [2025-04-07 05:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:45:22] Production.INFO: ==13991== Releasing lock... [2025-04-07 05:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:45:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 05:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:46:04 [end_date_ymd] => 2025-04-07 05:46:04 [RateCDR] => 1 ) [2025-04-07 05: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-04-07 02:46:04' and `end` < '2025-04-07 05: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-04-07 05:46:17] Production.INFO: count ==250 [2025-04-07 05:46:17] Production.ERROR: pbx CDR StartTime 2025-04-07 02:46:04 - End Time 2025-04-07 05:46:04 [2025-04-07 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852811', 'tblTempUsageDetail_20' ) start [2025-04-07 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852811', 'tblTempUsageDetail_20' ) end [2025-04-07 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852811', 'tblTempVendorCDR_20' ) start [2025-04-07 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852811', 'tblTempVendorCDR_20' ) end [2025-04-07 05:46:17] Production.INFO: ProcessCDR(1,14852811,1,1,2) [2025-04-07 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852811', 'tblTempUsageDetail_20' ) start [2025-04-07 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852811', 'tblTempUsageDetail_20' ) end [2025-04-07 05:46:20] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:46:20] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:46:20] Production.INFO: ==14062== Releasing lock... [2025-04-07 05:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:46:20] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 05:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:47:06 [end_date_ymd] => 2025-04-07 05:47:06 [RateCDR] => 1 ) [2025-04-07 05: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-04-07 02:47:06' and `end` < '2025-04-07 05: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-04-07 05:47:18] Production.INFO: count ==254 [2025-04-07 05:47:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:47:06 - End Time 2025-04-07 05:47:06 [2025-04-07 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852816', 'tblTempUsageDetail_20' ) start [2025-04-07 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852816', 'tblTempUsageDetail_20' ) end [2025-04-07 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852816', 'tblTempVendorCDR_20' ) start [2025-04-07 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852816', 'tblTempVendorCDR_20' ) end [2025-04-07 05:47:18] Production.INFO: ProcessCDR(1,14852816,1,1,2) [2025-04-07 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852816', 'tblTempUsageDetail_20' ) start [2025-04-07 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852816', 'tblTempUsageDetail_20' ) end [2025-04-07 05:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:47:22] Production.INFO: ==14138== Releasing lock... [2025-04-07 05:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:47:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-07 05:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:48:06 [end_date_ymd] => 2025-04-07 05:48:06 [RateCDR] => 1 ) [2025-04-07 05: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-04-07 02:48:06' and `end` < '2025-04-07 05: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-04-07 05:48:19] Production.INFO: count ==254 [2025-04-07 05:48:19] Production.ERROR: pbx CDR StartTime 2025-04-07 02:48:06 - End Time 2025-04-07 05:48:06 [2025-04-07 05:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852821', 'tblTempUsageDetail_20' ) start [2025-04-07 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852821', 'tblTempUsageDetail_20' ) end [2025-04-07 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852821', 'tblTempVendorCDR_20' ) start [2025-04-07 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852821', 'tblTempVendorCDR_20' ) end [2025-04-07 05:48:19] Production.INFO: ProcessCDR(1,14852821,1,1,2) [2025-04-07 05:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852821', 'tblTempUsageDetail_20' ) start [2025-04-07 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852821', 'tblTempUsageDetail_20' ) end [2025-04-07 05:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:48:22] Production.INFO: ==14212== Releasing lock... [2025-04-07 05:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:48:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-07 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:49:05 [end_date_ymd] => 2025-04-07 05:49:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:49:05' and `end` < '2025-04-07 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-04-07 05:49:18] Production.INFO: count ==262 [2025-04-07 05:49:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:49:05 - End Time 2025-04-07 05:49:05 [2025-04-07 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852826', 'tblTempUsageDetail_20' ) start [2025-04-07 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852826', 'tblTempUsageDetail_20' ) end [2025-04-07 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852826', 'tblTempVendorCDR_20' ) start [2025-04-07 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852826', 'tblTempVendorCDR_20' ) end [2025-04-07 05:49:18] Production.INFO: ProcessCDR(1,14852826,1,1,2) [2025-04-07 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852826', 'tblTempUsageDetail_20' ) start [2025-04-07 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852826', 'tblTempUsageDetail_20' ) end [2025-04-07 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:49:21] Production.INFO: ==14284== Releasing lock... [2025-04-07 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:49:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:50:06 [end_date_ymd] => 2025-04-07 05:50:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:50:06' and `end` < '2025-04-07 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-04-07 05:50:19] Production.INFO: count ==270 [2025-04-07 05:50:19] Production.ERROR: pbx CDR StartTime 2025-04-07 02:50:06 - End Time 2025-04-07 05:50:06 [2025-04-07 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852832', 'tblTempUsageDetail_20' ) start [2025-04-07 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852832', 'tblTempUsageDetail_20' ) end [2025-04-07 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852832', 'tblTempVendorCDR_20' ) start [2025-04-07 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852832', 'tblTempVendorCDR_20' ) end [2025-04-07 05:50:19] Production.INFO: ProcessCDR(1,14852832,1,1,2) [2025-04-07 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852832', 'tblTempUsageDetail_20' ) start [2025-04-07 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852832', 'tblTempUsageDetail_20' ) end [2025-04-07 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:50:23] Production.INFO: ==14397== Releasing lock... [2025-04-07 05:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:50:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:51:05 [end_date_ymd] => 2025-04-07 05:51:05 [RateCDR] => 1 ) [2025-04-07 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 02:51:05' and `end` < '2025-04-07 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 05:51:18] Production.INFO: count ==271 [2025-04-07 05:51:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:51:05 - End Time 2025-04-07 05:51:05 [2025-04-07 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852837', 'tblTempUsageDetail_20' ) start [2025-04-07 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852837', 'tblTempUsageDetail_20' ) end [2025-04-07 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852837', 'tblTempVendorCDR_20' ) start [2025-04-07 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852837', 'tblTempVendorCDR_20' ) end [2025-04-07 05:51:18] Production.INFO: ProcessCDR(1,14852837,1,1,2) [2025-04-07 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852837', 'tblTempUsageDetail_20' ) start [2025-04-07 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852837', 'tblTempUsageDetail_20' ) end [2025-04-07 05:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:51:22] Production.INFO: ==14471== Releasing lock... [2025-04-07 05:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:51:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 05:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:52:06 [end_date_ymd] => 2025-04-07 05:52:06 [RateCDR] => 1 ) [2025-04-07 05: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-04-07 02:52:06' and `end` < '2025-04-07 05: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-04-07 05:52:18] Production.INFO: count ==269 [2025-04-07 05:52:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:52:06 - End Time 2025-04-07 05:52:06 [2025-04-07 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852842', 'tblTempUsageDetail_20' ) start [2025-04-07 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852842', 'tblTempUsageDetail_20' ) end [2025-04-07 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852842', 'tblTempVendorCDR_20' ) start [2025-04-07 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852842', 'tblTempVendorCDR_20' ) end [2025-04-07 05:52:18] Production.INFO: ProcessCDR(1,14852842,1,1,2) [2025-04-07 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852842', 'tblTempUsageDetail_20' ) start [2025-04-07 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852842', 'tblTempUsageDetail_20' ) end [2025-04-07 05:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:52:22] Production.INFO: ==14544== Releasing lock... [2025-04-07 05:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:52:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:53:05 [end_date_ymd] => 2025-04-07 05:53:05 [RateCDR] => 1 ) [2025-04-07 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 02:53:05' and `end` < '2025-04-07 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 05:53:18] Production.INFO: count ==264 [2025-04-07 05:53:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:53:05 - End Time 2025-04-07 05:53:05 [2025-04-07 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852847', 'tblTempUsageDetail_20' ) start [2025-04-07 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852847', 'tblTempUsageDetail_20' ) end [2025-04-07 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852847', 'tblTempVendorCDR_20' ) start [2025-04-07 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852847', 'tblTempVendorCDR_20' ) end [2025-04-07 05:53:18] Production.INFO: ProcessCDR(1,14852847,1,1,2) [2025-04-07 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852847', 'tblTempUsageDetail_20' ) start [2025-04-07 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852847', 'tblTempUsageDetail_20' ) end [2025-04-07 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:53:21] Production.INFO: ==14615== Releasing lock... [2025-04-07 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:53:21] Production.INFO: 31 MB #Memory Used# [2025-04-07 05:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:54:06 [end_date_ymd] => 2025-04-07 05:54:06 [RateCDR] => 1 ) [2025-04-07 05: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-04-07 02:54:06' and `end` < '2025-04-07 05: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-04-07 05:54:19] Production.INFO: count ==264 [2025-04-07 05:54:19] Production.ERROR: pbx CDR StartTime 2025-04-07 02:54:06 - End Time 2025-04-07 05:54:06 [2025-04-07 05:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852852', 'tblTempUsageDetail_20' ) start [2025-04-07 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852852', 'tblTempUsageDetail_20' ) end [2025-04-07 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852852', 'tblTempVendorCDR_20' ) start [2025-04-07 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852852', 'tblTempVendorCDR_20' ) end [2025-04-07 05:54:19] Production.INFO: ProcessCDR(1,14852852,1,1,2) [2025-04-07 05:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852852', 'tblTempUsageDetail_20' ) start [2025-04-07 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852852', 'tblTempUsageDetail_20' ) end [2025-04-07 05:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:54:22] Production.INFO: ==14687== Releasing lock... [2025-04-07 05:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:54:22] Production.INFO: 31 MB #Memory Used# [2025-04-07 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:55:05 [end_date_ymd] => 2025-04-07 05:55:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:55:05' and `end` < '2025-04-07 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-04-07 05:55:18] Production.INFO: count ==268 [2025-04-07 05:55:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:55:05 - End Time 2025-04-07 05:55:05 [2025-04-07 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852857', 'tblTempUsageDetail_20' ) start [2025-04-07 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852857', 'tblTempUsageDetail_20' ) end [2025-04-07 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852857', 'tblTempVendorCDR_20' ) start [2025-04-07 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852857', 'tblTempVendorCDR_20' ) end [2025-04-07 05:55:18] Production.INFO: ProcessCDR(1,14852857,1,1,2) [2025-04-07 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852857', 'tblTempUsageDetail_20' ) start [2025-04-07 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852857', 'tblTempUsageDetail_20' ) end [2025-04-07 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:55:21] Production.INFO: ==14758== Releasing lock... [2025-04-07 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:55:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 05:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:56:06 [end_date_ymd] => 2025-04-07 05:56:06 [RateCDR] => 1 ) [2025-04-07 05:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 02:56:06' and `end` < '2025-04-07 05:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 05:56:18] Production.INFO: count ==268 [2025-04-07 05:56:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:56:06 - End Time 2025-04-07 05:56:06 [2025-04-07 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852862', 'tblTempUsageDetail_20' ) start [2025-04-07 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852862', 'tblTempUsageDetail_20' ) end [2025-04-07 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852862', 'tblTempVendorCDR_20' ) start [2025-04-07 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852862', 'tblTempVendorCDR_20' ) end [2025-04-07 05:56:18] Production.INFO: ProcessCDR(1,14852862,1,1,2) [2025-04-07 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852862', 'tblTempUsageDetail_20' ) start [2025-04-07 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852862', 'tblTempUsageDetail_20' ) end [2025-04-07 05:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:56:22] Production.INFO: ==14832== Releasing lock... [2025-04-07 05:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:56:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:57:05 [end_date_ymd] => 2025-04-07 05:57:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:57:05' and `end` < '2025-04-07 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-04-07 05:57:18] Production.INFO: count ==268 [2025-04-07 05:57:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:57:05 - End Time 2025-04-07 05:57:05 [2025-04-07 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852867', 'tblTempUsageDetail_20' ) start [2025-04-07 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852867', 'tblTempUsageDetail_20' ) end [2025-04-07 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852867', 'tblTempVendorCDR_20' ) start [2025-04-07 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852867', 'tblTempVendorCDR_20' ) end [2025-04-07 05:57:18] Production.INFO: ProcessCDR(1,14852867,1,1,2) [2025-04-07 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852867', 'tblTempUsageDetail_20' ) start [2025-04-07 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852867', 'tblTempUsageDetail_20' ) end [2025-04-07 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:57:21] Production.INFO: ==14907== Releasing lock... [2025-04-07 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:57:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:58:05 [end_date_ymd] => 2025-04-07 05:58:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:58:05' and `end` < '2025-04-07 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-04-07 05:58:17] Production.INFO: count ==268 [2025-04-07 05:58:17] Production.ERROR: pbx CDR StartTime 2025-04-07 02:58:05 - End Time 2025-04-07 05:58:05 [2025-04-07 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852872', 'tblTempUsageDetail_20' ) start [2025-04-07 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852872', 'tblTempUsageDetail_20' ) end [2025-04-07 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852872', 'tblTempVendorCDR_20' ) start [2025-04-07 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852872', 'tblTempVendorCDR_20' ) end [2025-04-07 05:58:18] Production.INFO: ProcessCDR(1,14852872,1,1,2) [2025-04-07 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852872', 'tblTempUsageDetail_20' ) start [2025-04-07 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852872', 'tblTempUsageDetail_20' ) end [2025-04-07 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:58:21] Production.INFO: ==14976== Releasing lock... [2025-04-07 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:58:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 02:59:05 [end_date_ymd] => 2025-04-07 05:59:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 02:59:05' and `end` < '2025-04-07 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-04-07 05:59:18] Production.INFO: count ==264 [2025-04-07 05:59:18] Production.ERROR: pbx CDR StartTime 2025-04-07 02:59:05 - End Time 2025-04-07 05:59:05 [2025-04-07 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852877', 'tblTempUsageDetail_20' ) start [2025-04-07 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852877', 'tblTempUsageDetail_20' ) end [2025-04-07 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852877', 'tblTempVendorCDR_20' ) start [2025-04-07 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852877', 'tblTempVendorCDR_20' ) end [2025-04-07 05:59:18] Production.INFO: ProcessCDR(1,14852877,1,1,2) [2025-04-07 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852877', 'tblTempUsageDetail_20' ) start [2025-04-07 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852877', 'tblTempUsageDetail_20' ) end [2025-04-07 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 05:59:21] Production.INFO: ==15047== Releasing lock... [2025-04-07 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 05:59:21] Production.INFO: 31 MB #Memory Used# [2025-04-07 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:00:06 [end_date_ymd] => 2025-04-07 06:00:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:00:06' and `end` < '2025-04-07 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-04-07 06:00:19] Production.INFO: count ==255 [2025-04-07 06:00:19] Production.ERROR: pbx CDR StartTime 2025-04-07 03:00:06 - End Time 2025-04-07 06:00:06 [2025-04-07 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852883', 'tblTempUsageDetail_20' ) start [2025-04-07 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852883', 'tblTempUsageDetail_20' ) end [2025-04-07 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852883', 'tblTempVendorCDR_20' ) start [2025-04-07 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852883', 'tblTempVendorCDR_20' ) end [2025-04-07 06:00:19] Production.INFO: ProcessCDR(1,14852883,1,1,2) [2025-04-07 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852883', 'tblTempUsageDetail_20' ) start [2025-04-07 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852883', 'tblTempUsageDetail_20' ) end [2025-04-07 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:00:22] Production.INFO: ==15122== Releasing lock... [2025-04-07 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:00:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 06:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:01:06 [end_date_ymd] => 2025-04-07 06:01:06 [RateCDR] => 1 ) [2025-04-07 06: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-04-07 03:01:06' and `end` < '2025-04-07 06: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-04-07 06:01:18] Production.INFO: count ==246 [2025-04-07 06:01:19] Production.ERROR: pbx CDR StartTime 2025-04-07 03:01:06 - End Time 2025-04-07 06:01:06 [2025-04-07 06:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852888', 'tblTempUsageDetail_20' ) start [2025-04-07 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852888', 'tblTempUsageDetail_20' ) end [2025-04-07 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852888', 'tblTempVendorCDR_20' ) start [2025-04-07 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852888', 'tblTempVendorCDR_20' ) end [2025-04-07 06:01:19] Production.INFO: ProcessCDR(1,14852888,1,1,2) [2025-04-07 06:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852888', 'tblTempUsageDetail_20' ) start [2025-04-07 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852888', 'tblTempUsageDetail_20' ) end [2025-04-07 06:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:01:22] Production.INFO: ==15206== Releasing lock... [2025-04-07 06:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:01:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:02:05 [end_date_ymd] => 2025-04-07 06:02:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:02:05' and `end` < '2025-04-07 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 06:02:18] Production.INFO: count ==218 [2025-04-07 06:02:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:02:05 - End Time 2025-04-07 06:02:05 [2025-04-07 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852893', 'tblTempUsageDetail_20' ) start [2025-04-07 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852893', 'tblTempUsageDetail_20' ) end [2025-04-07 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852893', 'tblTempVendorCDR_20' ) start [2025-04-07 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852893', 'tblTempVendorCDR_20' ) end [2025-04-07 06:02:18] Production.INFO: ProcessCDR(1,14852893,1,1,2) [2025-04-07 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852893', 'tblTempUsageDetail_20' ) start [2025-04-07 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852893', 'tblTempUsageDetail_20' ) end [2025-04-07 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:02:22] Production.INFO: ==15281== Releasing lock... [2025-04-07 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:02:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 06:03:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:03:07 [end_date_ymd] => 2025-04-07 06:03:07 [RateCDR] => 1 ) [2025-04-07 06:03: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-04-07 03:03:07' and `end` < '2025-04-07 06:03: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-04-07 06:03:19] Production.INFO: count ==202 [2025-04-07 06:03:19] Production.ERROR: pbx CDR StartTime 2025-04-07 03:03:07 - End Time 2025-04-07 06:03:07 [2025-04-07 06:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852898', 'tblTempUsageDetail_20' ) start [2025-04-07 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852898', 'tblTempUsageDetail_20' ) end [2025-04-07 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852898', 'tblTempVendorCDR_20' ) start [2025-04-07 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852898', 'tblTempVendorCDR_20' ) end [2025-04-07 06:03:19] Production.INFO: ProcessCDR(1,14852898,1,1,2) [2025-04-07 06:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852898', 'tblTempUsageDetail_20' ) start [2025-04-07 06:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852898', 'tblTempUsageDetail_20' ) end [2025-04-07 06:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:03:23] Production.INFO: ==15362== Releasing lock... [2025-04-07 06:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:03:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-07 06:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:04:06 [end_date_ymd] => 2025-04-07 06:04:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:04:06' and `end` < '2025-04-07 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-04-07 06:04:19] Production.INFO: count ==202 [2025-04-07 06:04:19] Production.ERROR: pbx CDR StartTime 2025-04-07 03:04:06 - End Time 2025-04-07 06:04:06 [2025-04-07 06:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852903', 'tblTempUsageDetail_20' ) start [2025-04-07 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852903', 'tblTempUsageDetail_20' ) end [2025-04-07 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852903', 'tblTempVendorCDR_20' ) start [2025-04-07 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852903', 'tblTempVendorCDR_20' ) end [2025-04-07 06:04:19] Production.INFO: ProcessCDR(1,14852903,1,1,2) [2025-04-07 06:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852903', 'tblTempUsageDetail_20' ) start [2025-04-07 06:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852903', 'tblTempUsageDetail_20' ) end [2025-04-07 06:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:04:24] Production.INFO: ==15433== Releasing lock... [2025-04-07 06:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:04:24] Production.INFO: 30 MB #Memory Used# [2025-04-07 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:05:05 [end_date_ymd] => 2025-04-07 06:05:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:05:05' and `end` < '2025-04-07 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-04-07 06:05:18] Production.INFO: count ==210 [2025-04-07 06:05:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:05:05 - End Time 2025-04-07 06:05:05 [2025-04-07 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852908', 'tblTempUsageDetail_20' ) start [2025-04-07 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852908', 'tblTempUsageDetail_20' ) end [2025-04-07 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852908', 'tblTempVendorCDR_20' ) start [2025-04-07 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852908', 'tblTempVendorCDR_20' ) end [2025-04-07 06:05:18] Production.INFO: ProcessCDR(1,14852908,1,1,2) [2025-04-07 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852908', 'tblTempUsageDetail_20' ) start [2025-04-07 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852908', 'tblTempUsageDetail_20' ) end [2025-04-07 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:05:21] Production.INFO: ==15542== Releasing lock... [2025-04-07 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:05:21] Production.INFO: 30 MB #Memory Used# [2025-04-07 06:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:06:05 [end_date_ymd] => 2025-04-07 06:06:05 [RateCDR] => 1 ) [2025-04-07 06: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-04-07 03:06:05' and `end` < '2025-04-07 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-04-07 06:06:18] Production.INFO: count ==210 [2025-04-07 06:06:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:06:05 - End Time 2025-04-07 06:06:05 [2025-04-07 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852913', 'tblTempUsageDetail_20' ) start [2025-04-07 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852913', 'tblTempUsageDetail_20' ) end [2025-04-07 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852913', 'tblTempVendorCDR_20' ) start [2025-04-07 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852913', 'tblTempVendorCDR_20' ) end [2025-04-07 06:06:18] Production.INFO: ProcessCDR(1,14852913,1,1,2) [2025-04-07 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852913', 'tblTempUsageDetail_20' ) start [2025-04-07 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852913', 'tblTempUsageDetail_20' ) end [2025-04-07 06:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:06:22] Production.INFO: ==15616== Releasing lock... [2025-04-07 06:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:06:22] Production.INFO: 30 MB #Memory Used# [2025-04-07 06:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:07:06 [end_date_ymd] => 2025-04-07 06:07:06 [RateCDR] => 1 ) [2025-04-07 06: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-04-07 03:07:06' and `end` < '2025-04-07 06: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-04-07 06:07:18] Production.INFO: count ==210 [2025-04-07 06:07:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:07:06 - End Time 2025-04-07 06:07:06 [2025-04-07 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852918', 'tblTempUsageDetail_20' ) start [2025-04-07 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852918', 'tblTempUsageDetail_20' ) end [2025-04-07 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852918', 'tblTempVendorCDR_20' ) start [2025-04-07 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852918', 'tblTempVendorCDR_20' ) end [2025-04-07 06:07:18] Production.INFO: ProcessCDR(1,14852918,1,1,2) [2025-04-07 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852918', 'tblTempUsageDetail_20' ) start [2025-04-07 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852918', 'tblTempUsageDetail_20' ) end [2025-04-07 06:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:07:22] Production.INFO: ==15691== Releasing lock... [2025-04-07 06:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:07:22] Production.INFO: 30 MB #Memory Used# [2025-04-07 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:08:05 [end_date_ymd] => 2025-04-07 06:08:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:08:05' and `end` < '2025-04-07 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-04-07 06:08:18] Production.INFO: count ==209 [2025-04-07 06:08:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:08:05 - End Time 2025-04-07 06:08:05 [2025-04-07 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852923', 'tblTempUsageDetail_20' ) start [2025-04-07 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852923', 'tblTempUsageDetail_20' ) end [2025-04-07 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852923', 'tblTempVendorCDR_20' ) start [2025-04-07 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852923', 'tblTempVendorCDR_20' ) end [2025-04-07 06:08:18] Production.INFO: ProcessCDR(1,14852923,1,1,2) [2025-04-07 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852923', 'tblTempUsageDetail_20' ) start [2025-04-07 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852923', 'tblTempUsageDetail_20' ) end [2025-04-07 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:08:21] Production.INFO: ==15763== Releasing lock... [2025-04-07 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:08:21] Production.INFO: 30 MB #Memory Used# [2025-04-07 06:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:09:06 [end_date_ymd] => 2025-04-07 06:09:06 [RateCDR] => 1 ) [2025-04-07 06: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-04-07 03:09:06' and `end` < '2025-04-07 06: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-04-07 06:09:19] Production.INFO: count ==209 [2025-04-07 06:09:19] Production.ERROR: pbx CDR StartTime 2025-04-07 03:09:06 - End Time 2025-04-07 06:09:06 [2025-04-07 06:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852928', 'tblTempUsageDetail_20' ) start [2025-04-07 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852928', 'tblTempUsageDetail_20' ) end [2025-04-07 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852928', 'tblTempVendorCDR_20' ) start [2025-04-07 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852928', 'tblTempVendorCDR_20' ) end [2025-04-07 06:09:19] Production.INFO: ProcessCDR(1,14852928,1,1,2) [2025-04-07 06:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852928', 'tblTempUsageDetail_20' ) start [2025-04-07 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852928', 'tblTempUsageDetail_20' ) end [2025-04-07 06:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:09:22] Production.INFO: ==15836== Releasing lock... [2025-04-07 06:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:09:22] Production.INFO: 30 MB #Memory Used# [2025-04-07 06:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:10:06 [end_date_ymd] => 2025-04-07 06:10:06 [RateCDR] => 1 ) [2025-04-07 06:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 03:10:06' and `end` < '2025-04-07 06:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 06:10:19] Production.INFO: count ==200 [2025-04-07 06:10:19] Production.ERROR: pbx CDR StartTime 2025-04-07 03:10:06 - End Time 2025-04-07 06:10:06 [2025-04-07 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852934', 'tblTempUsageDetail_20' ) start [2025-04-07 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852934', 'tblTempUsageDetail_20' ) end [2025-04-07 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852934', 'tblTempVendorCDR_20' ) start [2025-04-07 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852934', 'tblTempVendorCDR_20' ) end [2025-04-07 06:10:19] Production.INFO: ProcessCDR(1,14852934,1,1,2) [2025-04-07 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852934', 'tblTempUsageDetail_20' ) start [2025-04-07 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852934', 'tblTempUsageDetail_20' ) end [2025-04-07 06:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:10:23] Production.INFO: ==15909== Releasing lock... [2025-04-07 06:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:10:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-07 06:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:11:06 [end_date_ymd] => 2025-04-07 06:11:06 [RateCDR] => 1 ) [2025-04-07 06:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 03:11:06' and `end` < '2025-04-07 06:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 06:11:18] Production.INFO: count ==189 [2025-04-07 06:11:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:11:06 - End Time 2025-04-07 06:11:06 [2025-04-07 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852939', 'tblTempUsageDetail_20' ) start [2025-04-07 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852939', 'tblTempUsageDetail_20' ) end [2025-04-07 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852939', 'tblTempVendorCDR_20' ) start [2025-04-07 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852939', 'tblTempVendorCDR_20' ) end [2025-04-07 06:11:18] Production.INFO: ProcessCDR(1,14852939,1,1,2) [2025-04-07 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852939', 'tblTempUsageDetail_20' ) start [2025-04-07 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852939', 'tblTempUsageDetail_20' ) end [2025-04-07 06:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:11:22] Production.INFO: ==15985== Releasing lock... [2025-04-07 06:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:11:22] Production.INFO: 30 MB #Memory Used# [2025-04-07 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:12:05 [end_date_ymd] => 2025-04-07 06:12:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:12:05' and `end` < '2025-04-07 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-04-07 06:12:18] Production.INFO: count ==189 [2025-04-07 06:12:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:12:05 - End Time 2025-04-07 06:12:05 [2025-04-07 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852944', 'tblTempUsageDetail_20' ) start [2025-04-07 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852944', 'tblTempUsageDetail_20' ) end [2025-04-07 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852944', 'tblTempVendorCDR_20' ) start [2025-04-07 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852944', 'tblTempVendorCDR_20' ) end [2025-04-07 06:12:18] Production.INFO: ProcessCDR(1,14852944,1,1,2) [2025-04-07 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852944', 'tblTempUsageDetail_20' ) start [2025-04-07 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852944', 'tblTempUsageDetail_20' ) end [2025-04-07 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:12:21] Production.INFO: ==16058== Releasing lock... [2025-04-07 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:12:21] Production.INFO: 30 MB #Memory Used# [2025-04-07 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:13:05 [end_date_ymd] => 2025-04-07 06:13:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:13:05' and `end` < '2025-04-07 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-04-07 06:13:18] Production.INFO: count ==189 [2025-04-07 06:13:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:13:05 - End Time 2025-04-07 06:13:05 [2025-04-07 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852949', 'tblTempUsageDetail_20' ) start [2025-04-07 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852949', 'tblTempUsageDetail_20' ) end [2025-04-07 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852949', 'tblTempVendorCDR_20' ) start [2025-04-07 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852949', 'tblTempVendorCDR_20' ) end [2025-04-07 06:13:18] Production.INFO: ProcessCDR(1,14852949,1,1,2) [2025-04-07 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852949', 'tblTempUsageDetail_20' ) start [2025-04-07 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852949', 'tblTempUsageDetail_20' ) end [2025-04-07 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:13:21] Production.INFO: ==16135== Releasing lock... [2025-04-07 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:13:21] Production.INFO: 30 MB #Memory Used# [2025-04-07 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:14:05 [end_date_ymd] => 2025-04-07 06:14:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:14:05' and `end` < '2025-04-07 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-04-07 06:14:18] Production.INFO: count ==189 [2025-04-07 06:14:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:14:05 - End Time 2025-04-07 06:14:05 [2025-04-07 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852954', 'tblTempUsageDetail_20' ) start [2025-04-07 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852954', 'tblTempUsageDetail_20' ) end [2025-04-07 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852954', 'tblTempVendorCDR_20' ) start [2025-04-07 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852954', 'tblTempVendorCDR_20' ) end [2025-04-07 06:14:18] Production.INFO: ProcessCDR(1,14852954,1,1,2) [2025-04-07 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852954', 'tblTempUsageDetail_20' ) start [2025-04-07 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852954', 'tblTempUsageDetail_20' ) end [2025-04-07 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:14:21] Production.INFO: ==16205== Releasing lock... [2025-04-07 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:14:21] Production.INFO: 30 MB #Memory Used# [2025-04-07 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:15:05 [end_date_ymd] => 2025-04-07 06:15:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:15:05' and `end` < '2025-04-07 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-04-07 06:15:18] Production.INFO: count ==189 [2025-04-07 06:15:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:15:05 - End Time 2025-04-07 06:15:05 [2025-04-07 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852959', 'tblTempUsageDetail_20' ) start [2025-04-07 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852959', 'tblTempUsageDetail_20' ) end [2025-04-07 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852959', 'tblTempVendorCDR_20' ) start [2025-04-07 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852959', 'tblTempVendorCDR_20' ) end [2025-04-07 06:15:18] Production.INFO: ProcessCDR(1,14852959,1,1,2) [2025-04-07 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852959', 'tblTempUsageDetail_20' ) start [2025-04-07 06:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852959', 'tblTempUsageDetail_20' ) end [2025-04-07 06:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:15:22] Production.INFO: ==16277== Releasing lock... [2025-04-07 06:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:15:22] Production.INFO: 30 MB #Memory Used# [2025-04-07 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:16:05 [end_date_ymd] => 2025-04-07 06:16:05 [RateCDR] => 1 ) [2025-04-07 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 03:16:05' and `end` < '2025-04-07 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 06:16:18] Production.INFO: count ==189 [2025-04-07 06:16:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:16:05 - End Time 2025-04-07 06:16:05 [2025-04-07 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852964', 'tblTempUsageDetail_20' ) start [2025-04-07 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852964', 'tblTempUsageDetail_20' ) end [2025-04-07 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852964', 'tblTempVendorCDR_20' ) start [2025-04-07 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852964', 'tblTempVendorCDR_20' ) end [2025-04-07 06:16:18] Production.INFO: ProcessCDR(1,14852964,1,1,2) [2025-04-07 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852964', 'tblTempUsageDetail_20' ) start [2025-04-07 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852964', 'tblTempUsageDetail_20' ) end [2025-04-07 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:16:21] Production.INFO: ==16354== Releasing lock... [2025-04-07 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:16:21] Production.INFO: 30 MB #Memory Used# [2025-04-07 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:17:05 [end_date_ymd] => 2025-04-07 06:17:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:17:05' and `end` < '2025-04-07 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-04-07 06:17:18] Production.INFO: count ==189 [2025-04-07 06:17:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:17:05 - End Time 2025-04-07 06:17:05 [2025-04-07 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852969', 'tblTempUsageDetail_20' ) start [2025-04-07 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852969', 'tblTempUsageDetail_20' ) end [2025-04-07 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852969', 'tblTempVendorCDR_20' ) start [2025-04-07 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852969', 'tblTempVendorCDR_20' ) end [2025-04-07 06:17:18] Production.INFO: ProcessCDR(1,14852969,1,1,2) [2025-04-07 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852969', 'tblTempUsageDetail_20' ) start [2025-04-07 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852969', 'tblTempUsageDetail_20' ) end [2025-04-07 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:17:21] Production.INFO: ==16426== Releasing lock... [2025-04-07 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:17:21] Production.INFO: 30 MB #Memory Used# [2025-04-07 06:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:18:04 [end_date_ymd] => 2025-04-07 06:18:04 [RateCDR] => 1 ) [2025-04-07 06:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 03:18:04' and `end` < '2025-04-07 06:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 06:18:17] Production.INFO: count ==189 [2025-04-07 06:18:17] Production.ERROR: pbx CDR StartTime 2025-04-07 03:18:04 - End Time 2025-04-07 06:18:04 [2025-04-07 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852974', 'tblTempUsageDetail_20' ) start [2025-04-07 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852974', 'tblTempUsageDetail_20' ) end [2025-04-07 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852974', 'tblTempVendorCDR_20' ) start [2025-04-07 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852974', 'tblTempVendorCDR_20' ) end [2025-04-07 06:18:17] Production.INFO: ProcessCDR(1,14852974,1,1,2) [2025-04-07 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852974', 'tblTempUsageDetail_20' ) start [2025-04-07 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852974', 'tblTempUsageDetail_20' ) end [2025-04-07 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:18:21] Production.INFO: ==16505== Releasing lock... [2025-04-07 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:18:21] Production.INFO: 30 MB #Memory Used# [2025-04-07 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:19:05 [end_date_ymd] => 2025-04-07 06:19:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:19:05' and `end` < '2025-04-07 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 06:19:18] Production.INFO: count ==189 [2025-04-07 06:19:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:19:05 - End Time 2025-04-07 06:19:05 [2025-04-07 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852979', 'tblTempUsageDetail_20' ) start [2025-04-07 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852979', 'tblTempUsageDetail_20' ) end [2025-04-07 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852979', 'tblTempVendorCDR_20' ) start [2025-04-07 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852979', 'tblTempVendorCDR_20' ) end [2025-04-07 06:19:18] Production.INFO: ProcessCDR(1,14852979,1,1,2) [2025-04-07 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852979', 'tblTempUsageDetail_20' ) start [2025-04-07 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852979', 'tblTempUsageDetail_20' ) end [2025-04-07 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:19:21] Production.INFO: ==16578== Releasing lock... [2025-04-07 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:19:21] Production.INFO: 30 MB #Memory Used# [2025-04-07 06:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:20:07 [end_date_ymd] => 2025-04-07 06:20:07 [RateCDR] => 1 ) [2025-04-07 06:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 03:20:07' and `end` < '2025-04-07 06:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 06:20:20] Production.INFO: count ==181 [2025-04-07 06:20:20] Production.ERROR: pbx CDR StartTime 2025-04-07 03:20:07 - End Time 2025-04-07 06:20:07 [2025-04-07 06:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852985', 'tblTempUsageDetail_20' ) start [2025-04-07 06:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852985', 'tblTempUsageDetail_20' ) end [2025-04-07 06:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852985', 'tblTempVendorCDR_20' ) start [2025-04-07 06:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852985', 'tblTempVendorCDR_20' ) end [2025-04-07 06:20:20] Production.INFO: ProcessCDR(1,14852985,1,1,2) [2025-04-07 06:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852985', 'tblTempUsageDetail_20' ) start [2025-04-07 06:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852985', 'tblTempUsageDetail_20' ) end [2025-04-07 06:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:20:24] Production.INFO: ==16692== Releasing lock... [2025-04-07 06:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:20:24] Production.INFO: 29.75 MB #Memory Used# [2025-04-07 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:21:05 [end_date_ymd] => 2025-04-07 06:21:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:21:05' and `end` < '2025-04-07 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-04-07 06:21:17] Production.INFO: count ==181 [2025-04-07 06:21:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:21:05 - End Time 2025-04-07 06:21:05 [2025-04-07 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852990', 'tblTempUsageDetail_20' ) start [2025-04-07 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852990', 'tblTempUsageDetail_20' ) end [2025-04-07 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852990', 'tblTempVendorCDR_20' ) start [2025-04-07 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852990', 'tblTempVendorCDR_20' ) end [2025-04-07 06:21:18] Production.INFO: ProcessCDR(1,14852990,1,1,2) [2025-04-07 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852990', 'tblTempUsageDetail_20' ) start [2025-04-07 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852990', 'tblTempUsageDetail_20' ) end [2025-04-07 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:21:21] Production.INFO: ==16764== Releasing lock... [2025-04-07 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:21:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-07 06:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:22:06 [end_date_ymd] => 2025-04-07 06:22:06 [RateCDR] => 1 ) [2025-04-07 06: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-04-07 03:22:06' and `end` < '2025-04-07 06: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-04-07 06:22:18] Production.INFO: count ==172 [2025-04-07 06:22:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:22:06 - End Time 2025-04-07 06:22:06 [2025-04-07 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852995', 'tblTempUsageDetail_20' ) start [2025-04-07 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14852995', 'tblTempUsageDetail_20' ) end [2025-04-07 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852995', 'tblTempVendorCDR_20' ) start [2025-04-07 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14852995', 'tblTempVendorCDR_20' ) end [2025-04-07 06:22:18] Production.INFO: ProcessCDR(1,14852995,1,1,2) [2025-04-07 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14852995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14852995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14852995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14852995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852995', 'tblTempUsageDetail_20' ) start [2025-04-07 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14852995', 'tblTempUsageDetail_20' ) end [2025-04-07 06:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:22:22] Production.INFO: ==16836== Releasing lock... [2025-04-07 06:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:22:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:23:05 [end_date_ymd] => 2025-04-07 06:23:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:23:05' and `end` < '2025-04-07 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-04-07 06:23:17] Production.INFO: count ==172 [2025-04-07 06:23:17] Production.ERROR: pbx CDR StartTime 2025-04-07 03:23:05 - End Time 2025-04-07 06:23:05 [2025-04-07 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853000', 'tblTempUsageDetail_20' ) start [2025-04-07 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853000', 'tblTempUsageDetail_20' ) end [2025-04-07 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853000', 'tblTempVendorCDR_20' ) start [2025-04-07 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853000', 'tblTempVendorCDR_20' ) end [2025-04-07 06:23:17] Production.INFO: ProcessCDR(1,14853000,1,1,2) [2025-04-07 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853000', 'tblTempUsageDetail_20' ) start [2025-04-07 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853000', 'tblTempUsageDetail_20' ) end [2025-04-07 06:23:20] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:23:21] Production.INFO: ==16906== Releasing lock... [2025-04-07 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:23:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 06:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:24:06 [end_date_ymd] => 2025-04-07 06:24:06 [RateCDR] => 1 ) [2025-04-07 06: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-04-07 03:24:06' and `end` < '2025-04-07 06: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-04-07 06:24:18] Production.INFO: count ==173 [2025-04-07 06:24:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:24:06 - End Time 2025-04-07 06:24:06 [2025-04-07 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853005', 'tblTempUsageDetail_20' ) start [2025-04-07 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853005', 'tblTempUsageDetail_20' ) end [2025-04-07 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853005', 'tblTempVendorCDR_20' ) start [2025-04-07 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853005', 'tblTempVendorCDR_20' ) end [2025-04-07 06:24:19] Production.INFO: ProcessCDR(1,14853005,1,1,2) [2025-04-07 06:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853005', 'tblTempUsageDetail_20' ) start [2025-04-07 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853005', 'tblTempUsageDetail_20' ) end [2025-04-07 06:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:24:22] Production.INFO: ==16979== Releasing lock... [2025-04-07 06:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:24:22] Production.INFO: 30 MB #Memory Used# [2025-04-07 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:25:05 [end_date_ymd] => 2025-04-07 06:25:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:25:05' and `end` < '2025-04-07 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-04-07 06:25:18] Production.INFO: count ==176 [2025-04-07 06:25:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:25:05 - End Time 2025-04-07 06:25:05 [2025-04-07 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853010', 'tblTempUsageDetail_20' ) start [2025-04-07 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853010', 'tblTempUsageDetail_20' ) end [2025-04-07 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853010', 'tblTempVendorCDR_20' ) start [2025-04-07 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853010', 'tblTempVendorCDR_20' ) end [2025-04-07 06:25:18] Production.INFO: ProcessCDR(1,14853010,1,1,2) [2025-04-07 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853010', 'tblTempUsageDetail_20' ) start [2025-04-07 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853010', 'tblTempUsageDetail_20' ) end [2025-04-07 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:25:21] Production.INFO: ==17051== Releasing lock... [2025-04-07 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:25:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-07 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:26:05 [end_date_ymd] => 2025-04-07 06:26:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:26:05' and `end` < '2025-04-07 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-04-07 06:26:18] Production.INFO: count ==176 [2025-04-07 06:26:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:26:05 - End Time 2025-04-07 06:26:05 [2025-04-07 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853015', 'tblTempUsageDetail_20' ) start [2025-04-07 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853015', 'tblTempUsageDetail_20' ) end [2025-04-07 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853015', 'tblTempVendorCDR_20' ) start [2025-04-07 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853015', 'tblTempVendorCDR_20' ) end [2025-04-07 06:26:18] Production.INFO: ProcessCDR(1,14853015,1,1,2) [2025-04-07 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853015', 'tblTempUsageDetail_20' ) start [2025-04-07 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853015', 'tblTempUsageDetail_20' ) end [2025-04-07 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:26:21] Production.INFO: ==17130== Releasing lock... [2025-04-07 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:26:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-07 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:27:05 [end_date_ymd] => 2025-04-07 06:27:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:27:05' and `end` < '2025-04-07 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-04-07 06:27:18] Production.INFO: count ==177 [2025-04-07 06:27:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:27:05 - End Time 2025-04-07 06:27:05 [2025-04-07 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853020', 'tblTempUsageDetail_20' ) start [2025-04-07 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853020', 'tblTempUsageDetail_20' ) end [2025-04-07 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853020', 'tblTempVendorCDR_20' ) start [2025-04-07 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853020', 'tblTempVendorCDR_20' ) end [2025-04-07 06:27:18] Production.INFO: ProcessCDR(1,14853020,1,1,2) [2025-04-07 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853020', 'tblTempUsageDetail_20' ) start [2025-04-07 06:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853020', 'tblTempUsageDetail_20' ) end [2025-04-07 06:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:27:23] Production.INFO: ==17198== Releasing lock... [2025-04-07 06:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:27:23] Production.INFO: 30 MB #Memory Used# [2025-04-07 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:28:05 [end_date_ymd] => 2025-04-07 06:28:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:28:05' and `end` < '2025-04-07 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-04-07 06:28:18] Production.INFO: count ==177 [2025-04-07 06:28:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:28:05 - End Time 2025-04-07 06:28:05 [2025-04-07 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853025', 'tblTempUsageDetail_20' ) start [2025-04-07 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853025', 'tblTempUsageDetail_20' ) end [2025-04-07 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853025', 'tblTempVendorCDR_20' ) start [2025-04-07 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853025', 'tblTempVendorCDR_20' ) end [2025-04-07 06:28:18] Production.INFO: ProcessCDR(1,14853025,1,1,2) [2025-04-07 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853025', 'tblTempUsageDetail_20' ) start [2025-04-07 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853025', 'tblTempUsageDetail_20' ) end [2025-04-07 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:28:21] Production.INFO: ==17271== Releasing lock... [2025-04-07 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:28:21] Production.INFO: 30 MB #Memory Used# [2025-04-07 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:29:05 [end_date_ymd] => 2025-04-07 06:29:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:29:05' and `end` < '2025-04-07 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-04-07 06:29:17] Production.INFO: count ==181 [2025-04-07 06:29:17] Production.ERROR: pbx CDR StartTime 2025-04-07 03:29:05 - End Time 2025-04-07 06:29:05 [2025-04-07 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853030', 'tblTempUsageDetail_20' ) start [2025-04-07 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853030', 'tblTempUsageDetail_20' ) end [2025-04-07 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853030', 'tblTempVendorCDR_20' ) start [2025-04-07 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853030', 'tblTempVendorCDR_20' ) end [2025-04-07 06:29:17] Production.INFO: ProcessCDR(1,14853030,1,1,2) [2025-04-07 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853030', 'tblTempUsageDetail_20' ) start [2025-04-07 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853030', 'tblTempUsageDetail_20' ) end [2025-04-07 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:29:21] Production.INFO: ==17343== Releasing lock... [2025-04-07 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:29:21] Production.INFO: 30 MB #Memory Used# [2025-04-07 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:30:06 [end_date_ymd] => 2025-04-07 06:30:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:30:06' and `end` < '2025-04-07 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-04-07 06:30:18] Production.INFO: count ==188 [2025-04-07 06:30:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:30:06 - End Time 2025-04-07 06:30:06 [2025-04-07 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853035', 'tblTempUsageDetail_20' ) start [2025-04-07 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853035', 'tblTempUsageDetail_20' ) end [2025-04-07 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853035', 'tblTempVendorCDR_20' ) start [2025-04-07 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853035', 'tblTempVendorCDR_20' ) end [2025-04-07 06:30:18] Production.INFO: ProcessCDR(1,14853035,1,1,2) [2025-04-07 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853035', 'tblTempUsageDetail_20' ) start [2025-04-07 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853035', 'tblTempUsageDetail_20' ) end [2025-04-07 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:30:22] Production.INFO: ==17421== Releasing lock... [2025-04-07 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:30:22] Production.INFO: 30 MB #Memory Used# [2025-04-07 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:31:05 [end_date_ymd] => 2025-04-07 06:31:05 [RateCDR] => 1 ) [2025-04-07 06:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 03:31:05' and `end` < '2025-04-07 06:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 06:31:18] Production.INFO: count ==188 [2025-04-07 06:31:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:31:05 - End Time 2025-04-07 06:31:05 [2025-04-07 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853041', 'tblTempUsageDetail_20' ) start [2025-04-07 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853041', 'tblTempUsageDetail_20' ) end [2025-04-07 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853041', 'tblTempVendorCDR_20' ) start [2025-04-07 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853041', 'tblTempVendorCDR_20' ) end [2025-04-07 06:31:18] Production.INFO: ProcessCDR(1,14853041,1,1,2) [2025-04-07 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853041', 'tblTempUsageDetail_20' ) start [2025-04-07 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853041', 'tblTempUsageDetail_20' ) end [2025-04-07 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:31:21] Production.INFO: ==17499== Releasing lock... [2025-04-07 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:31:21] Production.INFO: 30 MB #Memory Used# [2025-04-07 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:32:05 [end_date_ymd] => 2025-04-07 06:32:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:32:05' and `end` < '2025-04-07 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-04-07 06:32:18] Production.INFO: count ==188 [2025-04-07 06:32:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:32:05 - End Time 2025-04-07 06:32:05 [2025-04-07 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853046', 'tblTempUsageDetail_20' ) start [2025-04-07 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853046', 'tblTempUsageDetail_20' ) end [2025-04-07 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853046', 'tblTempVendorCDR_20' ) start [2025-04-07 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853046', 'tblTempVendorCDR_20' ) end [2025-04-07 06:32:18] Production.INFO: ProcessCDR(1,14853046,1,1,2) [2025-04-07 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853046', 'tblTempUsageDetail_20' ) start [2025-04-07 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853046', 'tblTempUsageDetail_20' ) end [2025-04-07 06:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:32:22] Production.INFO: ==17568== Releasing lock... [2025-04-07 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:32:22] Production.INFO: 30 MB #Memory Used# [2025-04-07 06:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:33:04 [end_date_ymd] => 2025-04-07 06:33:04 [RateCDR] => 1 ) [2025-04-07 06: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-04-07 03:33:04' and `end` < '2025-04-07 06: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-04-07 06:33:17] Production.INFO: count ==202 [2025-04-07 06:33:17] Production.ERROR: pbx CDR StartTime 2025-04-07 03:33:04 - End Time 2025-04-07 06:33:04 [2025-04-07 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853051', 'tblTempUsageDetail_20' ) start [2025-04-07 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853051', 'tblTempUsageDetail_20' ) end [2025-04-07 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853051', 'tblTempVendorCDR_20' ) start [2025-04-07 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853051', 'tblTempVendorCDR_20' ) end [2025-04-07 06:33:17] Production.INFO: ProcessCDR(1,14853051,1,1,2) [2025-04-07 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853051', 'tblTempUsageDetail_20' ) start [2025-04-07 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853051', 'tblTempUsageDetail_20' ) end [2025-04-07 06:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:33:22] Production.INFO: ==17638== Releasing lock... [2025-04-07 06:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:33:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:34:05 [end_date_ymd] => 2025-04-07 06:34:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:34:05' and `end` < '2025-04-07 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-04-07 06:34:18] Production.INFO: count ==202 [2025-04-07 06:34:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:34:05 - End Time 2025-04-07 06:34:05 [2025-04-07 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853056', 'tblTempUsageDetail_20' ) start [2025-04-07 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853056', 'tblTempUsageDetail_20' ) end [2025-04-07 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853056', 'tblTempVendorCDR_20' ) start [2025-04-07 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853056', 'tblTempVendorCDR_20' ) end [2025-04-07 06:34:18] Production.INFO: ProcessCDR(1,14853056,1,1,2) [2025-04-07 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853056', 'tblTempUsageDetail_20' ) start [2025-04-07 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853056', 'tblTempUsageDetail_20' ) end [2025-04-07 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:34:21] Production.INFO: ==17713== Releasing lock... [2025-04-07 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:34:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 06:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:35:06 [end_date_ymd] => 2025-04-07 06:35:06 [RateCDR] => 1 ) [2025-04-07 06: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-04-07 03:35:06' and `end` < '2025-04-07 06: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-04-07 06:35:18] Production.INFO: count ==202 [2025-04-07 06:35:19] Production.ERROR: pbx CDR StartTime 2025-04-07 03:35:06 - End Time 2025-04-07 06:35:06 [2025-04-07 06:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853061', 'tblTempUsageDetail_20' ) start [2025-04-07 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853061', 'tblTempUsageDetail_20' ) end [2025-04-07 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853061', 'tblTempVendorCDR_20' ) start [2025-04-07 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853061', 'tblTempVendorCDR_20' ) end [2025-04-07 06:35:19] Production.INFO: ProcessCDR(1,14853061,1,1,2) [2025-04-07 06:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853061', 'tblTempUsageDetail_20' ) start [2025-04-07 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853061', 'tblTempUsageDetail_20' ) end [2025-04-07 06:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:35:22] Production.INFO: ==17786== Releasing lock... [2025-04-07 06:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:35:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:36:05 [end_date_ymd] => 2025-04-07 06:36:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:36:05' and `end` < '2025-04-07 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-04-07 06:36:18] Production.INFO: count ==202 [2025-04-07 06:36:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:36:05 - End Time 2025-04-07 06:36:05 [2025-04-07 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853066', 'tblTempUsageDetail_20' ) start [2025-04-07 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853066', 'tblTempUsageDetail_20' ) end [2025-04-07 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853066', 'tblTempVendorCDR_20' ) start [2025-04-07 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853066', 'tblTempVendorCDR_20' ) end [2025-04-07 06:36:18] Production.INFO: ProcessCDR(1,14853066,1,1,2) [2025-04-07 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853066', 'tblTempUsageDetail_20' ) start [2025-04-07 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853066', 'tblTempUsageDetail_20' ) end [2025-04-07 06:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:36:22] Production.INFO: ==17895== Releasing lock... [2025-04-07 06:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:36:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:37:05 [end_date_ymd] => 2025-04-07 06:37:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:37:05' and `end` < '2025-04-07 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-04-07 06:37:18] Production.INFO: count ==202 [2025-04-07 06:37:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:37:05 - End Time 2025-04-07 06:37:05 [2025-04-07 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853071', 'tblTempUsageDetail_20' ) start [2025-04-07 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853071', 'tblTempUsageDetail_20' ) end [2025-04-07 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853071', 'tblTempVendorCDR_20' ) start [2025-04-07 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853071', 'tblTempVendorCDR_20' ) end [2025-04-07 06:37:18] Production.INFO: ProcessCDR(1,14853071,1,1,2) [2025-04-07 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853071', 'tblTempUsageDetail_20' ) start [2025-04-07 06:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853071', 'tblTempUsageDetail_20' ) end [2025-04-07 06:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:37:22] Production.INFO: ==17966== Releasing lock... [2025-04-07 06:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:37:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:38:05 [end_date_ymd] => 2025-04-07 06:38:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:38:05' and `end` < '2025-04-07 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-04-07 06:38:18] Production.INFO: count ==202 [2025-04-07 06:38:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:38:05 - End Time 2025-04-07 06:38:05 [2025-04-07 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853076', 'tblTempUsageDetail_20' ) start [2025-04-07 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853076', 'tblTempUsageDetail_20' ) end [2025-04-07 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853076', 'tblTempVendorCDR_20' ) start [2025-04-07 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853076', 'tblTempVendorCDR_20' ) end [2025-04-07 06:38:18] Production.INFO: ProcessCDR(1,14853076,1,1,2) [2025-04-07 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853076', 'tblTempUsageDetail_20' ) start [2025-04-07 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853076', 'tblTempUsageDetail_20' ) end [2025-04-07 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:38:21] Production.INFO: ==18037== Releasing lock... [2025-04-07 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:38:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 06:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:39:06 [end_date_ymd] => 2025-04-07 06:39:06 [RateCDR] => 1 ) [2025-04-07 06: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-04-07 03:39:06' and `end` < '2025-04-07 06: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-04-07 06:39:18] Production.INFO: count ==202 [2025-04-07 06:39:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:39:06 - End Time 2025-04-07 06:39:06 [2025-04-07 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853081', 'tblTempUsageDetail_20' ) start [2025-04-07 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853081', 'tblTempUsageDetail_20' ) end [2025-04-07 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853081', 'tblTempVendorCDR_20' ) start [2025-04-07 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853081', 'tblTempVendorCDR_20' ) end [2025-04-07 06:39:18] Production.INFO: ProcessCDR(1,14853081,1,1,2) [2025-04-07 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853081', 'tblTempUsageDetail_20' ) start [2025-04-07 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853081', 'tblTempUsageDetail_20' ) end [2025-04-07 06:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:39:22] Production.INFO: ==18110== Releasing lock... [2025-04-07 06:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:39:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:40:06 [end_date_ymd] => 2025-04-07 06:40:06 [RateCDR] => 1 ) [2025-04-07 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 03:40:06' and `end` < '2025-04-07 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 06:40:18] Production.INFO: count ==202 [2025-04-07 06:40:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:40:06 - End Time 2025-04-07 06:40:06 [2025-04-07 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853087', 'tblTempUsageDetail_20' ) start [2025-04-07 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853087', 'tblTempUsageDetail_20' ) end [2025-04-07 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853087', 'tblTempVendorCDR_20' ) start [2025-04-07 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853087', 'tblTempVendorCDR_20' ) end [2025-04-07 06:40:18] Production.INFO: ProcessCDR(1,14853087,1,1,2) [2025-04-07 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853087', 'tblTempUsageDetail_20' ) start [2025-04-07 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853087', 'tblTempUsageDetail_20' ) end [2025-04-07 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:40:22] Production.INFO: ==18183== Releasing lock... [2025-04-07 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:40:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:41:05 [end_date_ymd] => 2025-04-07 06:41:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:41:05' and `end` < '2025-04-07 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-04-07 06:41:18] Production.INFO: count ==202 [2025-04-07 06:41:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:41:05 - End Time 2025-04-07 06:41:05 [2025-04-07 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853092', 'tblTempUsageDetail_20' ) start [2025-04-07 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853092', 'tblTempUsageDetail_20' ) end [2025-04-07 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853092', 'tblTempVendorCDR_20' ) start [2025-04-07 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853092', 'tblTempVendorCDR_20' ) end [2025-04-07 06:41:18] Production.INFO: ProcessCDR(1,14853092,1,1,2) [2025-04-07 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853092', 'tblTempUsageDetail_20' ) start [2025-04-07 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853092', 'tblTempUsageDetail_20' ) end [2025-04-07 06:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:41:22] Production.INFO: ==18260== Releasing lock... [2025-04-07 06:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:41:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:42:05 [end_date_ymd] => 2025-04-07 06:42:05 [RateCDR] => 1 ) [2025-04-07 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 03:42:05' and `end` < '2025-04-07 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 06:42:18] Production.INFO: count ==202 [2025-04-07 06:42:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:42:05 - End Time 2025-04-07 06:42:05 [2025-04-07 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853097', 'tblTempUsageDetail_20' ) start [2025-04-07 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853097', 'tblTempUsageDetail_20' ) end [2025-04-07 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853097', 'tblTempVendorCDR_20' ) start [2025-04-07 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853097', 'tblTempVendorCDR_20' ) end [2025-04-07 06:42:18] Production.INFO: ProcessCDR(1,14853097,1,1,2) [2025-04-07 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853097', 'tblTempUsageDetail_20' ) start [2025-04-07 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853097', 'tblTempUsageDetail_20' ) end [2025-04-07 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:42:21] Production.INFO: ==18334== Releasing lock... [2025-04-07 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:42:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:43:05 [end_date_ymd] => 2025-04-07 06:43:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:43:05' and `end` < '2025-04-07 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-04-07 06:43:18] Production.INFO: count ==202 [2025-04-07 06:43:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:43:05 - End Time 2025-04-07 06:43:05 [2025-04-07 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853102', 'tblTempUsageDetail_20' ) start [2025-04-07 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853102', 'tblTempUsageDetail_20' ) end [2025-04-07 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853102', 'tblTempVendorCDR_20' ) start [2025-04-07 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853102', 'tblTempVendorCDR_20' ) end [2025-04-07 06:43:18] Production.INFO: ProcessCDR(1,14853102,1,1,2) [2025-04-07 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853102', 'tblTempUsageDetail_20' ) start [2025-04-07 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853102', 'tblTempUsageDetail_20' ) end [2025-04-07 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:43:21] Production.INFO: ==18405== Releasing lock... [2025-04-07 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:43:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:44:05 [end_date_ymd] => 2025-04-07 06:44:05 [RateCDR] => 1 ) [2025-04-07 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 03:44:05' and `end` < '2025-04-07 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 06:44:18] Production.INFO: count ==202 [2025-04-07 06:44:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:44:05 - End Time 2025-04-07 06:44:05 [2025-04-07 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853107', 'tblTempUsageDetail_20' ) start [2025-04-07 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853107', 'tblTempUsageDetail_20' ) end [2025-04-07 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853107', 'tblTempVendorCDR_20' ) start [2025-04-07 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853107', 'tblTempVendorCDR_20' ) end [2025-04-07 06:44:18] Production.INFO: ProcessCDR(1,14853107,1,1,2) [2025-04-07 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853107', 'tblTempUsageDetail_20' ) start [2025-04-07 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853107', 'tblTempUsageDetail_20' ) end [2025-04-07 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:44:21] Production.INFO: ==18478== Releasing lock... [2025-04-07 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:44:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:45:05 [end_date_ymd] => 2025-04-07 06:45:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:45:05' and `end` < '2025-04-07 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-04-07 06:45:18] Production.INFO: count ==202 [2025-04-07 06:45:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:45:05 - End Time 2025-04-07 06:45:05 [2025-04-07 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853112', 'tblTempUsageDetail_20' ) start [2025-04-07 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853112', 'tblTempUsageDetail_20' ) end [2025-04-07 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853112', 'tblTempVendorCDR_20' ) start [2025-04-07 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853112', 'tblTempVendorCDR_20' ) end [2025-04-07 06:45:18] Production.INFO: ProcessCDR(1,14853112,1,1,2) [2025-04-07 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853112', 'tblTempUsageDetail_20' ) start [2025-04-07 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853112', 'tblTempUsageDetail_20' ) end [2025-04-07 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:45:21] Production.INFO: ==18555== Releasing lock... [2025-04-07 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:45:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 06:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:46:06 [end_date_ymd] => 2025-04-07 06:46:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:46:06' and `end` < '2025-04-07 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-04-07 06:46:18] Production.INFO: count ==202 [2025-04-07 06:46:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:46:06 - End Time 2025-04-07 06:46:06 [2025-04-07 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853117', 'tblTempUsageDetail_20' ) start [2025-04-07 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853117', 'tblTempUsageDetail_20' ) end [2025-04-07 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853117', 'tblTempVendorCDR_20' ) start [2025-04-07 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853117', 'tblTempVendorCDR_20' ) end [2025-04-07 06:46:18] Production.INFO: ProcessCDR(1,14853117,1,1,2) [2025-04-07 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853117', 'tblTempUsageDetail_20' ) start [2025-04-07 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853117', 'tblTempUsageDetail_20' ) end [2025-04-07 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:46:22] Production.INFO: ==18626== Releasing lock... [2025-04-07 06:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:46:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:47:05 [end_date_ymd] => 2025-04-07 06:47:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:47:05' and `end` < '2025-04-07 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-04-07 06:47:18] Production.INFO: count ==203 [2025-04-07 06:47:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:47:05 - End Time 2025-04-07 06:47:05 [2025-04-07 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853122', 'tblTempUsageDetail_20' ) start [2025-04-07 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853122', 'tblTempUsageDetail_20' ) end [2025-04-07 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853122', 'tblTempVendorCDR_20' ) start [2025-04-07 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853122', 'tblTempVendorCDR_20' ) end [2025-04-07 06:47:18] Production.INFO: ProcessCDR(1,14853122,1,1,2) [2025-04-07 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853122', 'tblTempUsageDetail_20' ) start [2025-04-07 06:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853122', 'tblTempUsageDetail_20' ) end [2025-04-07 06:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:47:23] Production.INFO: ==18703== Releasing lock... [2025-04-07 06:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:47:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:48:05 [end_date_ymd] => 2025-04-07 06:48:05 [RateCDR] => 1 ) [2025-04-07 06:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 03:48:05' and `end` < '2025-04-07 06:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 06:48:18] Production.INFO: count ==203 [2025-04-07 06:48:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:48:05 - End Time 2025-04-07 06:48:05 [2025-04-07 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853127', 'tblTempUsageDetail_20' ) start [2025-04-07 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853127', 'tblTempUsageDetail_20' ) end [2025-04-07 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853127', 'tblTempVendorCDR_20' ) start [2025-04-07 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853127', 'tblTempVendorCDR_20' ) end [2025-04-07 06:48:18] Production.INFO: ProcessCDR(1,14853127,1,1,2) [2025-04-07 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853127', 'tblTempUsageDetail_20' ) start [2025-04-07 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853127', 'tblTempUsageDetail_20' ) end [2025-04-07 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:48:21] Production.INFO: ==18779== Releasing lock... [2025-04-07 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:48:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:49:05 [end_date_ymd] => 2025-04-07 06:49:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:49:05' and `end` < '2025-04-07 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-04-07 06:49:17] Production.INFO: count ==203 [2025-04-07 06:49:17] Production.ERROR: pbx CDR StartTime 2025-04-07 03:49:05 - End Time 2025-04-07 06:49:05 [2025-04-07 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853132', 'tblTempUsageDetail_20' ) start [2025-04-07 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853132', 'tblTempUsageDetail_20' ) end [2025-04-07 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853132', 'tblTempVendorCDR_20' ) start [2025-04-07 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853132', 'tblTempVendorCDR_20' ) end [2025-04-07 06:49:17] Production.INFO: ProcessCDR(1,14853132,1,1,2) [2025-04-07 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853132', 'tblTempUsageDetail_20' ) start [2025-04-07 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853132', 'tblTempUsageDetail_20' ) end [2025-04-07 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:49:21] Production.INFO: ==18852== Releasing lock... [2025-04-07 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:49:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 06:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:50:07 [end_date_ymd] => 2025-04-07 06:50:07 [RateCDR] => 1 ) [2025-04-07 06:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 03:50:07' and `end` < '2025-04-07 06:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 06:50:19] Production.INFO: count ==203 [2025-04-07 06:50:19] Production.ERROR: pbx CDR StartTime 2025-04-07 03:50:07 - End Time 2025-04-07 06:50:07 [2025-04-07 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853138', 'tblTempUsageDetail_20' ) start [2025-04-07 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853138', 'tblTempUsageDetail_20' ) end [2025-04-07 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853138', 'tblTempVendorCDR_20' ) start [2025-04-07 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853138', 'tblTempVendorCDR_20' ) end [2025-04-07 06:50:19] Production.INFO: ProcessCDR(1,14853138,1,1,2) [2025-04-07 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853138', 'tblTempUsageDetail_20' ) start [2025-04-07 06:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853138', 'tblTempUsageDetail_20' ) end [2025-04-07 06:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:50:23] Production.INFO: ==18926== Releasing lock... [2025-04-07 06:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:50:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:51:05 [end_date_ymd] => 2025-04-07 06:51:05 [RateCDR] => 1 ) [2025-04-07 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 03:51:05' and `end` < '2025-04-07 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 06:51:18] Production.INFO: count ==203 [2025-04-07 06:51:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:51:05 - End Time 2025-04-07 06:51:05 [2025-04-07 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853143', 'tblTempUsageDetail_20' ) start [2025-04-07 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853143', 'tblTempUsageDetail_20' ) end [2025-04-07 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853143', 'tblTempVendorCDR_20' ) start [2025-04-07 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853143', 'tblTempVendorCDR_20' ) end [2025-04-07 06:51:18] Production.INFO: ProcessCDR(1,14853143,1,1,2) [2025-04-07 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853143', 'tblTempUsageDetail_20' ) start [2025-04-07 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853143', 'tblTempUsageDetail_20' ) end [2025-04-07 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:51:21] Production.INFO: ==19042== Releasing lock... [2025-04-07 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:51:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:52:05 [end_date_ymd] => 2025-04-07 06:52:05 [RateCDR] => 1 ) [2025-04-07 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 03:52:05' and `end` < '2025-04-07 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 06:52:18] Production.INFO: count ==203 [2025-04-07 06:52:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:52:05 - End Time 2025-04-07 06:52:05 [2025-04-07 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853148', 'tblTempUsageDetail_20' ) start [2025-04-07 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853148', 'tblTempUsageDetail_20' ) end [2025-04-07 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853148', 'tblTempVendorCDR_20' ) start [2025-04-07 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853148', 'tblTempVendorCDR_20' ) end [2025-04-07 06:52:18] Production.INFO: ProcessCDR(1,14853148,1,1,2) [2025-04-07 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853148', 'tblTempUsageDetail_20' ) start [2025-04-07 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853148', 'tblTempUsageDetail_20' ) end [2025-04-07 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:52:21] Production.INFO: ==19121== Releasing lock... [2025-04-07 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:52:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 06:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:53:04 [end_date_ymd] => 2025-04-07 06:53:04 [RateCDR] => 1 ) [2025-04-07 06: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-04-07 03:53:04' and `end` < '2025-04-07 06: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-04-07 06:53:17] Production.INFO: count ==208 [2025-04-07 06:53:17] Production.ERROR: pbx CDR StartTime 2025-04-07 03:53:04 - End Time 2025-04-07 06:53:04 [2025-04-07 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853153', 'tblTempUsageDetail_20' ) start [2025-04-07 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853153', 'tblTempUsageDetail_20' ) end [2025-04-07 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853153', 'tblTempVendorCDR_20' ) start [2025-04-07 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853153', 'tblTempVendorCDR_20' ) end [2025-04-07 06:53:17] Production.INFO: ProcessCDR(1,14853153,1,1,2) [2025-04-07 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853153', 'tblTempUsageDetail_20' ) start [2025-04-07 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853153', 'tblTempUsageDetail_20' ) end [2025-04-07 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:53:21] Production.INFO: ==19193== Releasing lock... [2025-04-07 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:53:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-07 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:54:05 [end_date_ymd] => 2025-04-07 06:54:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:54:05' and `end` < '2025-04-07 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-04-07 06:54:18] Production.INFO: count ==208 [2025-04-07 06:54:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:54:05 - End Time 2025-04-07 06:54:05 [2025-04-07 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853158', 'tblTempUsageDetail_20' ) start [2025-04-07 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853158', 'tblTempUsageDetail_20' ) end [2025-04-07 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853158', 'tblTempVendorCDR_20' ) start [2025-04-07 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853158', 'tblTempVendorCDR_20' ) end [2025-04-07 06:54:18] Production.INFO: ProcessCDR(1,14853158,1,1,2) [2025-04-07 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853158', 'tblTempUsageDetail_20' ) start [2025-04-07 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853158', 'tblTempUsageDetail_20' ) end [2025-04-07 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:54:21] Production.INFO: ==19263== Releasing lock... [2025-04-07 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:54:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-07 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:55:05 [end_date_ymd] => 2025-04-07 06:55:05 [RateCDR] => 1 ) [2025-04-07 06: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-04-07 03:55:05' and `end` < '2025-04-07 06: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-04-07 06:55:17] Production.INFO: count ==208 [2025-04-07 06:55:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:55:05 - End Time 2025-04-07 06:55:05 [2025-04-07 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853163', 'tblTempUsageDetail_20' ) start [2025-04-07 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853163', 'tblTempUsageDetail_20' ) end [2025-04-07 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853163', 'tblTempVendorCDR_20' ) start [2025-04-07 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853163', 'tblTempVendorCDR_20' ) end [2025-04-07 06:55:18] Production.INFO: ProcessCDR(1,14853163,1,1,2) [2025-04-07 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853163', 'tblTempUsageDetail_20' ) start [2025-04-07 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853163', 'tblTempUsageDetail_20' ) end [2025-04-07 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:55:21] Production.INFO: ==19333== Releasing lock... [2025-04-07 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:55:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-07 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:56:05 [end_date_ymd] => 2025-04-07 06:56:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:56:05' and `end` < '2025-04-07 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-04-07 06:56:18] Production.INFO: count ==209 [2025-04-07 06:56:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:56:05 - End Time 2025-04-07 06:56:05 [2025-04-07 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853168', 'tblTempUsageDetail_20' ) start [2025-04-07 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853168', 'tblTempUsageDetail_20' ) end [2025-04-07 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853168', 'tblTempVendorCDR_20' ) start [2025-04-07 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853168', 'tblTempVendorCDR_20' ) end [2025-04-07 06:56:18] Production.INFO: ProcessCDR(1,14853168,1,1,2) [2025-04-07 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853168', 'tblTempUsageDetail_20' ) start [2025-04-07 06:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853168', 'tblTempUsageDetail_20' ) end [2025-04-07 06:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:56:23] Production.INFO: ==19406== Releasing lock... [2025-04-07 06:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:56:23] Production.INFO: 30 MB #Memory Used# [2025-04-07 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:57:05 [end_date_ymd] => 2025-04-07 06:57:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:57:05' and `end` < '2025-04-07 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-04-07 06:57:18] Production.INFO: count ==206 [2025-04-07 06:57:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:57:05 - End Time 2025-04-07 06:57:05 [2025-04-07 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853173', 'tblTempUsageDetail_20' ) start [2025-04-07 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853173', 'tblTempUsageDetail_20' ) end [2025-04-07 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853173', 'tblTempVendorCDR_20' ) start [2025-04-07 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853173', 'tblTempVendorCDR_20' ) end [2025-04-07 06:57:18] Production.INFO: ProcessCDR(1,14853173,1,1,2) [2025-04-07 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853173', 'tblTempUsageDetail_20' ) start [2025-04-07 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853173', 'tblTempUsageDetail_20' ) end [2025-04-07 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:57:21] Production.INFO: ==19480== Releasing lock... [2025-04-07 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:57:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:58:05 [end_date_ymd] => 2025-04-07 06:58:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 03:58:05' and `end` < '2025-04-07 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-04-07 06:58:18] Production.INFO: count ==206 [2025-04-07 06:58:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:58:05 - End Time 2025-04-07 06:58:05 [2025-04-07 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853178', 'tblTempUsageDetail_20' ) start [2025-04-07 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853178', 'tblTempUsageDetail_20' ) end [2025-04-07 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853178', 'tblTempVendorCDR_20' ) start [2025-04-07 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853178', 'tblTempVendorCDR_20' ) end [2025-04-07 06:58:18] Production.INFO: ProcessCDR(1,14853178,1,1,2) [2025-04-07 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853178', 'tblTempUsageDetail_20' ) start [2025-04-07 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853178', 'tblTempUsageDetail_20' ) end [2025-04-07 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:58:21] Production.INFO: ==19560== Releasing lock... [2025-04-07 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:58:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 03:59:05 [end_date_ymd] => 2025-04-07 06:59:05 [RateCDR] => 1 ) [2025-04-07 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 03:59:05' and `end` < '2025-04-07 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 06:59:18] Production.INFO: count ==206 [2025-04-07 06:59:18] Production.ERROR: pbx CDR StartTime 2025-04-07 03:59:05 - End Time 2025-04-07 06:59:05 [2025-04-07 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853183', 'tblTempUsageDetail_20' ) start [2025-04-07 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853183', 'tblTempUsageDetail_20' ) end [2025-04-07 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853183', 'tblTempVendorCDR_20' ) start [2025-04-07 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853183', 'tblTempVendorCDR_20' ) end [2025-04-07 06:59:18] Production.INFO: ProcessCDR(1,14853183,1,1,2) [2025-04-07 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853183', 'tblTempUsageDetail_20' ) start [2025-04-07 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853183', 'tblTempUsageDetail_20' ) end [2025-04-07 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 06:59:21] Production.INFO: ==19636== Releasing lock... [2025-04-07 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 06:59:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:00:06 [end_date_ymd] => 2025-04-07 07:00:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:00:06' and `end` < '2025-04-07 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-04-07 07:00:19] Production.INFO: count ==211 [2025-04-07 07:00:19] Production.ERROR: pbx CDR StartTime 2025-04-07 04:00:06 - End Time 2025-04-07 07:00:06 [2025-04-07 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853189', 'tblTempUsageDetail_20' ) start [2025-04-07 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853189', 'tblTempUsageDetail_20' ) end [2025-04-07 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853189', 'tblTempVendorCDR_20' ) start [2025-04-07 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853189', 'tblTempVendorCDR_20' ) end [2025-04-07 07:00:19] Production.INFO: ProcessCDR(1,14853189,1,1,2) [2025-04-07 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853189', 'tblTempUsageDetail_20' ) start [2025-04-07 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853189', 'tblTempUsageDetail_20' ) end [2025-04-07 07:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:00:23] Production.INFO: ==19713== Releasing lock... [2025-04-07 07:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:00:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:01:05 [end_date_ymd] => 2025-04-07 07:01:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:01:05' and `end` < '2025-04-07 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-04-07 07:01:18] Production.INFO: count ==220 [2025-04-07 07:01:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:01:05 - End Time 2025-04-07 07:01:05 [2025-04-07 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853194', 'tblTempUsageDetail_20' ) start [2025-04-07 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853194', 'tblTempUsageDetail_20' ) end [2025-04-07 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853194', 'tblTempVendorCDR_20' ) start [2025-04-07 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853194', 'tblTempVendorCDR_20' ) end [2025-04-07 07:01:18] Production.INFO: ProcessCDR(1,14853194,1,1,2) [2025-04-07 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853194', 'tblTempUsageDetail_20' ) start [2025-04-07 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853194', 'tblTempUsageDetail_20' ) end [2025-04-07 07:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:01:21] Production.INFO: ==19909== Releasing lock... [2025-04-07 07:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:01:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:02:05 [end_date_ymd] => 2025-04-07 07:02:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:02:05' and `end` < '2025-04-07 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-04-07 07:02:18] Production.INFO: count ==226 [2025-04-07 07:02:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:02:05 - End Time 2025-04-07 07:02:05 [2025-04-07 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853199', 'tblTempUsageDetail_20' ) start [2025-04-07 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853199', 'tblTempUsageDetail_20' ) end [2025-04-07 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853199', 'tblTempVendorCDR_20' ) start [2025-04-07 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853199', 'tblTempVendorCDR_20' ) end [2025-04-07 07:02:18] Production.INFO: ProcessCDR(1,14853199,1,1,2) [2025-04-07 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853199', 'tblTempUsageDetail_20' ) start [2025-04-07 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853199', 'tblTempUsageDetail_20' ) end [2025-04-07 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:02:22] Production.INFO: ==19981== Releasing lock... [2025-04-07 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:02:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:03:06 [end_date_ymd] => 2025-04-07 07:03:06 [RateCDR] => 1 ) [2025-04-07 07: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-04-07 04:03:06' and `end` < '2025-04-07 07: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-04-07 07:03:19] Production.INFO: count ==231 [2025-04-07 07:03:19] Production.ERROR: pbx CDR StartTime 2025-04-07 04:03:06 - End Time 2025-04-07 07:03:06 [2025-04-07 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853204', 'tblTempUsageDetail_20' ) start [2025-04-07 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853204', 'tblTempUsageDetail_20' ) end [2025-04-07 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853204', 'tblTempVendorCDR_20' ) start [2025-04-07 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853204', 'tblTempVendorCDR_20' ) end [2025-04-07 07:03:19] Production.INFO: ProcessCDR(1,14853204,1,1,2) [2025-04-07 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853204', 'tblTempUsageDetail_20' ) start [2025-04-07 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853204', 'tblTempUsageDetail_20' ) end [2025-04-07 07:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:03:23] Production.INFO: ==20053== Releasing lock... [2025-04-07 07:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:03:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:04:06 [end_date_ymd] => 2025-04-07 07:04:06 [RateCDR] => 1 ) [2025-04-07 07:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 04:04:06' and `end` < '2025-04-07 07:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 07:04:19] Production.INFO: count ==231 [2025-04-07 07:04:19] Production.ERROR: pbx CDR StartTime 2025-04-07 04:04:06 - End Time 2025-04-07 07:04:06 [2025-04-07 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853209', 'tblTempUsageDetail_20' ) start [2025-04-07 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853209', 'tblTempUsageDetail_20' ) end [2025-04-07 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853209', 'tblTempVendorCDR_20' ) start [2025-04-07 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853209', 'tblTempVendorCDR_20' ) end [2025-04-07 07:04:19] Production.INFO: ProcessCDR(1,14853209,1,1,2) [2025-04-07 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853209', 'tblTempUsageDetail_20' ) start [2025-04-07 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853209', 'tblTempUsageDetail_20' ) end [2025-04-07 07:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:04:23] Production.INFO: ==20128== Releasing lock... [2025-04-07 07:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:04:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:05:05 [end_date_ymd] => 2025-04-07 07:05:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:05:05' and `end` < '2025-04-07 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-04-07 07:05:18] Production.INFO: count ==228 [2025-04-07 07:05:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:05:05 - End Time 2025-04-07 07:05:05 [2025-04-07 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853214', 'tblTempUsageDetail_20' ) start [2025-04-07 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853214', 'tblTempUsageDetail_20' ) end [2025-04-07 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853214', 'tblTempVendorCDR_20' ) start [2025-04-07 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853214', 'tblTempVendorCDR_20' ) end [2025-04-07 07:05:18] Production.INFO: ProcessCDR(1,14853214,1,1,2) [2025-04-07 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853214', 'tblTempUsageDetail_20' ) start [2025-04-07 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853214', 'tblTempUsageDetail_20' ) end [2025-04-07 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:05:22] Production.INFO: ==20281== Releasing lock... [2025-04-07 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:05:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 07:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:06:06 [end_date_ymd] => 2025-04-07 07:06:06 [RateCDR] => 1 ) [2025-04-07 07:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 04:06:06' and `end` < '2025-04-07 07:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 07:06:19] Production.INFO: count ==228 [2025-04-07 07:06:19] Production.ERROR: pbx CDR StartTime 2025-04-07 04:06:06 - End Time 2025-04-07 07:06:06 [2025-04-07 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853219', 'tblTempUsageDetail_20' ) start [2025-04-07 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853219', 'tblTempUsageDetail_20' ) end [2025-04-07 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853219', 'tblTempVendorCDR_20' ) start [2025-04-07 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853219', 'tblTempVendorCDR_20' ) end [2025-04-07 07:06:19] Production.INFO: ProcessCDR(1,14853219,1,1,2) [2025-04-07 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853219', 'tblTempUsageDetail_20' ) start [2025-04-07 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853219', 'tblTempUsageDetail_20' ) end [2025-04-07 07:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:06:23] Production.INFO: ==20350== Releasing lock... [2025-04-07 07:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:06:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 07:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:07:06 [end_date_ymd] => 2025-04-07 07:07:06 [RateCDR] => 1 ) [2025-04-07 07:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 04:07:06' and `end` < '2025-04-07 07:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 07:07:21] Production.INFO: count ==232 [2025-04-07 07:07:21] Production.ERROR: pbx CDR StartTime 2025-04-07 04:07:06 - End Time 2025-04-07 07:07:06 [2025-04-07 07:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853224', 'tblTempUsageDetail_20' ) start [2025-04-07 07:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853224', 'tblTempUsageDetail_20' ) end [2025-04-07 07:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853224', 'tblTempVendorCDR_20' ) start [2025-04-07 07:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853224', 'tblTempVendorCDR_20' ) end [2025-04-07 07:07:21] Production.INFO: ProcessCDR(1,14853224,1,1,2) [2025-04-07 07:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853224', 'tblTempUsageDetail_20' ) start [2025-04-07 07:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853224', 'tblTempUsageDetail_20' ) end [2025-04-07 07:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:07:25] Production.INFO: ==20460== Releasing lock... [2025-04-07 07:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:07:25] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:08:06 [end_date_ymd] => 2025-04-07 07:08:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:08:06' and `end` < '2025-04-07 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-04-07 07:08:20] Production.INFO: count ==232 [2025-04-07 07:08:20] Production.ERROR: pbx CDR StartTime 2025-04-07 04:08:06 - End Time 2025-04-07 07:08:06 [2025-04-07 07:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853229', 'tblTempUsageDetail_20' ) start [2025-04-07 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853229', 'tblTempUsageDetail_20' ) end [2025-04-07 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853229', 'tblTempVendorCDR_20' ) start [2025-04-07 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853229', 'tblTempVendorCDR_20' ) end [2025-04-07 07:08:20] Production.INFO: ProcessCDR(1,14853229,1,1,2) [2025-04-07 07:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853229', 'tblTempUsageDetail_20' ) start [2025-04-07 07:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853229', 'tblTempUsageDetail_20' ) end [2025-04-07 07:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:08:24] Production.INFO: ==20613== Releasing lock... [2025-04-07 07:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:08:24] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 07:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:09:06 [end_date_ymd] => 2025-04-07 07:09:06 [RateCDR] => 1 ) [2025-04-07 07: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-04-07 04:09:06' and `end` < '2025-04-07 07: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-04-07 07:09:20] Production.INFO: count ==228 [2025-04-07 07:09:20] Production.ERROR: pbx CDR StartTime 2025-04-07 04:09:06 - End Time 2025-04-07 07:09:06 [2025-04-07 07:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853234', 'tblTempUsageDetail_20' ) start [2025-04-07 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853234', 'tblTempUsageDetail_20' ) end [2025-04-07 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853234', 'tblTempVendorCDR_20' ) start [2025-04-07 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853234', 'tblTempVendorCDR_20' ) end [2025-04-07 07:09:20] Production.INFO: ProcessCDR(1,14853234,1,1,2) [2025-04-07 07:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853234', 'tblTempUsageDetail_20' ) start [2025-04-07 07:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853234', 'tblTempUsageDetail_20' ) end [2025-04-07 07:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:09:24] Production.INFO: ==20685== Releasing lock... [2025-04-07 07:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:09:24] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 07:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:10:07 [end_date_ymd] => 2025-04-07 07:10:07 [RateCDR] => 1 ) [2025-04-07 07:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 04:10:07' and `end` < '2025-04-07 07:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 07:10:19] Production.INFO: count ==234 [2025-04-07 07:10:20] Production.ERROR: pbx CDR StartTime 2025-04-07 04:10:07 - End Time 2025-04-07 07:10:07 [2025-04-07 07:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853240', 'tblTempUsageDetail_20' ) start [2025-04-07 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853240', 'tblTempUsageDetail_20' ) end [2025-04-07 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853240', 'tblTempVendorCDR_20' ) start [2025-04-07 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853240', 'tblTempVendorCDR_20' ) end [2025-04-07 07:10:20] Production.INFO: ProcessCDR(1,14853240,1,1,2) [2025-04-07 07:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853240', 'tblTempUsageDetail_20' ) start [2025-04-07 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853240', 'tblTempUsageDetail_20' ) end [2025-04-07 07:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:10:24] Production.INFO: ==20759== Releasing lock... [2025-04-07 07:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:10:24] Production.INFO: 30.75 MB #Memory Used# [2025-04-07 07:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:11:06 [end_date_ymd] => 2025-04-07 07:11:06 [RateCDR] => 1 ) [2025-04-07 07: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-04-07 04:11:06' and `end` < '2025-04-07 07: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-04-07 07:11:20] Production.INFO: count ==234 [2025-04-07 07:11:20] Production.ERROR: pbx CDR StartTime 2025-04-07 04:11:06 - End Time 2025-04-07 07:11:06 [2025-04-07 07:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853245', 'tblTempUsageDetail_20' ) start [2025-04-07 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853245', 'tblTempUsageDetail_20' ) end [2025-04-07 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853245', 'tblTempVendorCDR_20' ) start [2025-04-07 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853245', 'tblTempVendorCDR_20' ) end [2025-04-07 07:11:20] Production.INFO: ProcessCDR(1,14853245,1,1,2) [2025-04-07 07:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853245', 'tblTempUsageDetail_20' ) start [2025-04-07 07:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853245', 'tblTempUsageDetail_20' ) end [2025-04-07 07:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:11:24] Production.INFO: ==20834== Releasing lock... [2025-04-07 07:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:11:24] Production.INFO: 30.75 MB #Memory Used# [2025-04-07 07:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:12:06 [end_date_ymd] => 2025-04-07 07:12:06 [RateCDR] => 1 ) [2025-04-07 07: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-04-07 04:12:06' and `end` < '2025-04-07 07: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-04-07 07:12:19] Production.INFO: count ==234 [2025-04-07 07:12:19] Production.ERROR: pbx CDR StartTime 2025-04-07 04:12:06 - End Time 2025-04-07 07:12:06 [2025-04-07 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853250', 'tblTempUsageDetail_20' ) start [2025-04-07 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853250', 'tblTempUsageDetail_20' ) end [2025-04-07 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853250', 'tblTempVendorCDR_20' ) start [2025-04-07 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853250', 'tblTempVendorCDR_20' ) end [2025-04-07 07:12:19] Production.INFO: ProcessCDR(1,14853250,1,1,2) [2025-04-07 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853250', 'tblTempUsageDetail_20' ) start [2025-04-07 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853250', 'tblTempUsageDetail_20' ) end [2025-04-07 07:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:12:23] Production.INFO: ==20994== Releasing lock... [2025-04-07 07:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:12:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-07 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:13:05 [end_date_ymd] => 2025-04-07 07:13:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:13:05' and `end` < '2025-04-07 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 07:13:18] Production.INFO: count ==234 [2025-04-07 07:13:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:13:05 - End Time 2025-04-07 07:13:05 [2025-04-07 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853255', 'tblTempUsageDetail_20' ) start [2025-04-07 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853255', 'tblTempUsageDetail_20' ) end [2025-04-07 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853255', 'tblTempVendorCDR_20' ) start [2025-04-07 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853255', 'tblTempVendorCDR_20' ) end [2025-04-07 07:13:18] Production.INFO: ProcessCDR(1,14853255,1,1,2) [2025-04-07 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853255', 'tblTempUsageDetail_20' ) start [2025-04-07 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853255', 'tblTempUsageDetail_20' ) end [2025-04-07 07:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:13:21] Production.INFO: ==21070== Releasing lock... [2025-04-07 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:13:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-07 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:14:05 [end_date_ymd] => 2025-04-07 07:14:05 [RateCDR] => 1 ) [2025-04-07 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 04:14:05' and `end` < '2025-04-07 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 07:14:18] Production.INFO: count ==234 [2025-04-07 07:14:19] Production.ERROR: pbx CDR StartTime 2025-04-07 04:14:05 - End Time 2025-04-07 07:14:05 [2025-04-07 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853260', 'tblTempUsageDetail_20' ) start [2025-04-07 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853260', 'tblTempUsageDetail_20' ) end [2025-04-07 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853260', 'tblTempVendorCDR_20' ) start [2025-04-07 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853260', 'tblTempVendorCDR_20' ) end [2025-04-07 07:14:19] Production.INFO: ProcessCDR(1,14853260,1,1,2) [2025-04-07 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853260', 'tblTempUsageDetail_20' ) start [2025-04-07 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853260', 'tblTempUsageDetail_20' ) end [2025-04-07 07:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:14:22] Production.INFO: ==21143== Releasing lock... [2025-04-07 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:14:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-07 07:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:15:04 [end_date_ymd] => 2025-04-07 07:15:04 [RateCDR] => 1 ) [2025-04-07 07:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 04:15:04' and `end` < '2025-04-07 07:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 07:15:18] Production.INFO: count ==234 [2025-04-07 07:15:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:15:04 - End Time 2025-04-07 07:15:04 [2025-04-07 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853265', 'tblTempUsageDetail_20' ) start [2025-04-07 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853265', 'tblTempUsageDetail_20' ) end [2025-04-07 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853265', 'tblTempVendorCDR_20' ) start [2025-04-07 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853265', 'tblTempVendorCDR_20' ) end [2025-04-07 07:15:18] Production.INFO: ProcessCDR(1,14853265,1,1,2) [2025-04-07 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853265', 'tblTempUsageDetail_20' ) start [2025-04-07 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853265', 'tblTempUsageDetail_20' ) end [2025-04-07 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:15:22] Production.INFO: ==21295== Releasing lock... [2025-04-07 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:15:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-07 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:16:05 [end_date_ymd] => 2025-04-07 07:16:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:16:05' and `end` < '2025-04-07 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-04-07 07:16:20] Production.INFO: count ==234 [2025-04-07 07:16:20] Production.ERROR: pbx CDR StartTime 2025-04-07 04:16:05 - End Time 2025-04-07 07:16:05 [2025-04-07 07:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853270', 'tblTempUsageDetail_20' ) start [2025-04-07 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853270', 'tblTempUsageDetail_20' ) end [2025-04-07 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853270', 'tblTempVendorCDR_20' ) start [2025-04-07 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853270', 'tblTempVendorCDR_20' ) end [2025-04-07 07:16:20] Production.INFO: ProcessCDR(1,14853270,1,1,2) [2025-04-07 07:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853270', 'tblTempUsageDetail_20' ) start [2025-04-07 07:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853270', 'tblTempUsageDetail_20' ) end [2025-04-07 07:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:16:24] Production.INFO: ==21370== Releasing lock... [2025-04-07 07:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:16:24] Production.INFO: 30.75 MB #Memory Used# [2025-04-07 07:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:17:06 [end_date_ymd] => 2025-04-07 07:17:06 [RateCDR] => 1 ) [2025-04-07 07:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 04:17:06' and `end` < '2025-04-07 07:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 07:17:19] Production.INFO: count ==235 [2025-04-07 07:17:19] Production.ERROR: pbx CDR StartTime 2025-04-07 04:17:06 - End Time 2025-04-07 07:17:06 [2025-04-07 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853275', 'tblTempUsageDetail_20' ) start [2025-04-07 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853275', 'tblTempUsageDetail_20' ) end [2025-04-07 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853275', 'tblTempVendorCDR_20' ) start [2025-04-07 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853275', 'tblTempVendorCDR_20' ) end [2025-04-07 07:17:19] Production.INFO: ProcessCDR(1,14853275,1,1,2) [2025-04-07 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853275', 'tblTempUsageDetail_20' ) start [2025-04-07 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853275', 'tblTempUsageDetail_20' ) end [2025-04-07 07:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:17:22] Production.INFO: ==21442== Releasing lock... [2025-04-07 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:17:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:18:05 [end_date_ymd] => 2025-04-07 07:18:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:18:05' and `end` < '2025-04-07 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-04-07 07:18:18] Production.INFO: count ==238 [2025-04-07 07:18:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:18:05 - End Time 2025-04-07 07:18:05 [2025-04-07 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853280', 'tblTempUsageDetail_20' ) start [2025-04-07 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853280', 'tblTempUsageDetail_20' ) end [2025-04-07 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853280', 'tblTempVendorCDR_20' ) start [2025-04-07 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853280', 'tblTempVendorCDR_20' ) end [2025-04-07 07:18:18] Production.INFO: ProcessCDR(1,14853280,1,1,2) [2025-04-07 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853280', 'tblTempUsageDetail_20' ) start [2025-04-07 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853280', 'tblTempUsageDetail_20' ) end [2025-04-07 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:18:22] Production.INFO: ==21512== Releasing lock... [2025-04-07 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:18:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:19:05 [end_date_ymd] => 2025-04-07 07:19:05 [RateCDR] => 1 ) [2025-04-07 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 04:19:05' and `end` < '2025-04-07 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 07:19:18] Production.INFO: count ==238 [2025-04-07 07:19:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:19:05 - End Time 2025-04-07 07:19:05 [2025-04-07 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853285', 'tblTempUsageDetail_20' ) start [2025-04-07 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853285', 'tblTempUsageDetail_20' ) end [2025-04-07 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853285', 'tblTempVendorCDR_20' ) start [2025-04-07 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853285', 'tblTempVendorCDR_20' ) end [2025-04-07 07:19:18] Production.INFO: ProcessCDR(1,14853285,1,1,2) [2025-04-07 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853285', 'tblTempUsageDetail_20' ) start [2025-04-07 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853285', 'tblTempUsageDetail_20' ) end [2025-04-07 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:19:21] Production.INFO: ==21589== Releasing lock... [2025-04-07 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:19:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:20:06 [end_date_ymd] => 2025-04-07 07:20:06 [RateCDR] => 1 ) [2025-04-07 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 04:20:06' and `end` < '2025-04-07 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 07:20:19] Production.INFO: count ==247 [2025-04-07 07:20:19] Production.ERROR: pbx CDR StartTime 2025-04-07 04:20:06 - End Time 2025-04-07 07:20:06 [2025-04-07 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853291', 'tblTempUsageDetail_20' ) start [2025-04-07 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853291', 'tblTempUsageDetail_20' ) end [2025-04-07 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853291', 'tblTempVendorCDR_20' ) start [2025-04-07 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853291', 'tblTempVendorCDR_20' ) end [2025-04-07 07:20:19] Production.INFO: ProcessCDR(1,14853291,1,1,2) [2025-04-07 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853291', 'tblTempUsageDetail_20' ) start [2025-04-07 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853291', 'tblTempUsageDetail_20' ) end [2025-04-07 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:20:22] Production.INFO: ==21666== Releasing lock... [2025-04-07 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:20:22] Production.INFO: 30 MB #Memory Used# [2025-04-07 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:21:05 [end_date_ymd] => 2025-04-07 07:21:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:21:05' and `end` < '2025-04-07 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-04-07 07:21:18] Production.INFO: count ==250 [2025-04-07 07:21:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:21:05 - End Time 2025-04-07 07:21:05 [2025-04-07 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853296', 'tblTempUsageDetail_20' ) start [2025-04-07 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853296', 'tblTempUsageDetail_20' ) end [2025-04-07 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853296', 'tblTempVendorCDR_20' ) start [2025-04-07 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853296', 'tblTempVendorCDR_20' ) end [2025-04-07 07:21:18] Production.INFO: ProcessCDR(1,14853296,1,1,2) [2025-04-07 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853296', 'tblTempUsageDetail_20' ) start [2025-04-07 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853296', 'tblTempUsageDetail_20' ) end [2025-04-07 07:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:21:22] Production.INFO: ==21747== Releasing lock... [2025-04-07 07:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:21:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:22:05 [end_date_ymd] => 2025-04-07 07:22:05 [RateCDR] => 1 ) [2025-04-07 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 04:22:05' and `end` < '2025-04-07 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 07:22:19] Production.INFO: count ==250 [2025-04-07 07:22:19] Production.ERROR: pbx CDR StartTime 2025-04-07 04:22:05 - End Time 2025-04-07 07:22:05 [2025-04-07 07:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853301', 'tblTempUsageDetail_20' ) start [2025-04-07 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853301', 'tblTempUsageDetail_20' ) end [2025-04-07 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853301', 'tblTempVendorCDR_20' ) start [2025-04-07 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853301', 'tblTempVendorCDR_20' ) end [2025-04-07 07:22:19] Production.INFO: ProcessCDR(1,14853301,1,1,2) [2025-04-07 07:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853301', 'tblTempUsageDetail_20' ) start [2025-04-07 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853301', 'tblTempUsageDetail_20' ) end [2025-04-07 07:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:22:23] Production.INFO: ==21858== Releasing lock... [2025-04-07 07:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:22:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:23:05 [end_date_ymd] => 2025-04-07 07:23:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:23:05' and `end` < '2025-04-07 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-04-07 07:23:17] Production.INFO: count ==246 [2025-04-07 07:23:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:23:05 - End Time 2025-04-07 07:23:05 [2025-04-07 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853306', 'tblTempUsageDetail_20' ) start [2025-04-07 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853306', 'tblTempUsageDetail_20' ) end [2025-04-07 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853306', 'tblTempVendorCDR_20' ) start [2025-04-07 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853306', 'tblTempVendorCDR_20' ) end [2025-04-07 07:23:18] Production.INFO: ProcessCDR(1,14853306,1,1,2) [2025-04-07 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853306', 'tblTempUsageDetail_20' ) start [2025-04-07 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853306', 'tblTempUsageDetail_20' ) end [2025-04-07 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:23:21] Production.INFO: ==21932== Releasing lock... [2025-04-07 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:23:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-07 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:24:05 [end_date_ymd] => 2025-04-07 07:24:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:24:05' and `end` < '2025-04-07 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-04-07 07:24:18] Production.INFO: count ==242 [2025-04-07 07:24:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:24:05 - End Time 2025-04-07 07:24:05 [2025-04-07 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853311', 'tblTempUsageDetail_20' ) start [2025-04-07 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853311', 'tblTempUsageDetail_20' ) end [2025-04-07 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853311', 'tblTempVendorCDR_20' ) start [2025-04-07 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853311', 'tblTempVendorCDR_20' ) end [2025-04-07 07:24:18] Production.INFO: ProcessCDR(1,14853311,1,1,2) [2025-04-07 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853311', 'tblTempUsageDetail_20' ) start [2025-04-07 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853311', 'tblTempUsageDetail_20' ) end [2025-04-07 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:24:21] Production.INFO: ==22008== Releasing lock... [2025-04-07 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:24:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:25:05 [end_date_ymd] => 2025-04-07 07:25:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:25:05' and `end` < '2025-04-07 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-04-07 07:25:18] Production.INFO: count ==246 [2025-04-07 07:25:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:25:05 - End Time 2025-04-07 07:25:05 [2025-04-07 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853316', 'tblTempUsageDetail_20' ) start [2025-04-07 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853316', 'tblTempUsageDetail_20' ) end [2025-04-07 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853316', 'tblTempVendorCDR_20' ) start [2025-04-07 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853316', 'tblTempVendorCDR_20' ) end [2025-04-07 07:25:18] Production.INFO: ProcessCDR(1,14853316,1,1,2) [2025-04-07 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853316', 'tblTempUsageDetail_20' ) start [2025-04-07 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853316', 'tblTempUsageDetail_20' ) end [2025-04-07 07:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:25:22] Production.INFO: ==22084== Releasing lock... [2025-04-07 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:25:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-07 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:26:05 [end_date_ymd] => 2025-04-07 07:26:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:26:05' and `end` < '2025-04-07 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-04-07 07:26:18] Production.INFO: count ==246 [2025-04-07 07:26:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:26:05 - End Time 2025-04-07 07:26:05 [2025-04-07 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853321', 'tblTempUsageDetail_20' ) start [2025-04-07 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853321', 'tblTempUsageDetail_20' ) end [2025-04-07 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853321', 'tblTempVendorCDR_20' ) start [2025-04-07 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853321', 'tblTempVendorCDR_20' ) end [2025-04-07 07:26:18] Production.INFO: ProcessCDR(1,14853321,1,1,2) [2025-04-07 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853321', 'tblTempUsageDetail_20' ) start [2025-04-07 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853321', 'tblTempUsageDetail_20' ) end [2025-04-07 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:26:21] Production.INFO: ==22164== Releasing lock... [2025-04-07 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:26:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-07 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:27:05 [end_date_ymd] => 2025-04-07 07:27:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:27:05' and `end` < '2025-04-07 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-04-07 07:27:18] Production.INFO: count ==247 [2025-04-07 07:27:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:27:05 - End Time 2025-04-07 07:27:05 [2025-04-07 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853326', 'tblTempUsageDetail_20' ) start [2025-04-07 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853326', 'tblTempUsageDetail_20' ) end [2025-04-07 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853326', 'tblTempVendorCDR_20' ) start [2025-04-07 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853326', 'tblTempVendorCDR_20' ) end [2025-04-07 07:27:18] Production.INFO: ProcessCDR(1,14853326,1,1,2) [2025-04-07 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853326', 'tblTempUsageDetail_20' ) start [2025-04-07 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853326', 'tblTempUsageDetail_20' ) end [2025-04-07 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:27:21] Production.INFO: ==22238== Releasing lock... [2025-04-07 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:27:21] Production.INFO: 30 MB #Memory Used# [2025-04-07 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:28:06 [end_date_ymd] => 2025-04-07 07:28:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:28:06' and `end` < '2025-04-07 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-04-07 07:28:19] Production.INFO: count ==247 [2025-04-07 07:28:19] Production.ERROR: pbx CDR StartTime 2025-04-07 04:28:06 - End Time 2025-04-07 07:28:06 [2025-04-07 07:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853331', 'tblTempUsageDetail_20' ) start [2025-04-07 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853331', 'tblTempUsageDetail_20' ) end [2025-04-07 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853331', 'tblTempVendorCDR_20' ) start [2025-04-07 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853331', 'tblTempVendorCDR_20' ) end [2025-04-07 07:28:19] Production.INFO: ProcessCDR(1,14853331,1,1,2) [2025-04-07 07:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853331', 'tblTempUsageDetail_20' ) start [2025-04-07 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853331', 'tblTempUsageDetail_20' ) end [2025-04-07 07:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:28:22] Production.INFO: ==22311== Releasing lock... [2025-04-07 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:28:22] Production.INFO: 30 MB #Memory Used# [2025-04-07 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:29:05 [end_date_ymd] => 2025-04-07 07:29:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:29:05' and `end` < '2025-04-07 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-04-07 07:29:17] Production.INFO: count ==247 [2025-04-07 07:29:17] Production.ERROR: pbx CDR StartTime 2025-04-07 04:29:05 - End Time 2025-04-07 07:29:05 [2025-04-07 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853336', 'tblTempUsageDetail_20' ) start [2025-04-07 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853336', 'tblTempUsageDetail_20' ) end [2025-04-07 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853336', 'tblTempVendorCDR_20' ) start [2025-04-07 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853336', 'tblTempVendorCDR_20' ) end [2025-04-07 07:29:17] Production.INFO: ProcessCDR(1,14853336,1,1,2) [2025-04-07 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853336', 'tblTempUsageDetail_20' ) start [2025-04-07 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853336', 'tblTempUsageDetail_20' ) end [2025-04-07 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:29:21] Production.INFO: ==22383== Releasing lock... [2025-04-07 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:29:21] Production.INFO: 30 MB #Memory Used# [2025-04-07 07:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:30:07 [end_date_ymd] => 2025-04-07 07:30:07 [RateCDR] => 1 ) [2025-04-07 07:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 04:30:07' and `end` < '2025-04-07 07:30: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-04-07 07:30:19] Production.INFO: count ==257 [2025-04-07 07:30:19] Production.ERROR: pbx CDR StartTime 2025-04-07 04:30:07 - End Time 2025-04-07 07:30:07 [2025-04-07 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853342', 'tblTempUsageDetail_20' ) start [2025-04-07 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853342', 'tblTempUsageDetail_20' ) end [2025-04-07 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853342', 'tblTempVendorCDR_20' ) start [2025-04-07 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853342', 'tblTempVendorCDR_20' ) end [2025-04-07 07:30:19] Production.INFO: ProcessCDR(1,14853342,1,1,2) [2025-04-07 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853342', 'tblTempUsageDetail_20' ) start [2025-04-07 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853342', 'tblTempUsageDetail_20' ) end [2025-04-07 07:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:30:23] Production.INFO: ==22463== Releasing lock... [2025-04-07 07:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:30:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-07 07:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:31:04 [end_date_ymd] => 2025-04-07 07:31:04 [RateCDR] => 1 ) [2025-04-07 07:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 04:31:04' and `end` < '2025-04-07 07:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 07:31:17] Production.INFO: count ==257 [2025-04-07 07:31:17] Production.ERROR: pbx CDR StartTime 2025-04-07 04:31:04 - End Time 2025-04-07 07:31:04 [2025-04-07 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853347', 'tblTempUsageDetail_20' ) start [2025-04-07 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853347', 'tblTempUsageDetail_20' ) end [2025-04-07 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853347', 'tblTempVendorCDR_20' ) start [2025-04-07 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853347', 'tblTempVendorCDR_20' ) end [2025-04-07 07:31:17] Production.INFO: ProcessCDR(1,14853347,1,1,2) [2025-04-07 07:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853347', 'tblTempUsageDetail_20' ) start [2025-04-07 07:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853347', 'tblTempUsageDetail_20' ) end [2025-04-07 07:31:20] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:31:20] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:31:20] Production.INFO: ==22538== Releasing lock... [2025-04-07 07:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:31:20] Production.INFO: 30.75 MB #Memory Used# [2025-04-07 07:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:32:06 [end_date_ymd] => 2025-04-07 07:32:06 [RateCDR] => 1 ) [2025-04-07 07: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-04-07 04:32:06' and `end` < '2025-04-07 07: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-04-07 07:32:18] Production.INFO: count ==263 [2025-04-07 07:32:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:32:06 - End Time 2025-04-07 07:32:06 [2025-04-07 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853352', 'tblTempUsageDetail_20' ) start [2025-04-07 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853352', 'tblTempUsageDetail_20' ) end [2025-04-07 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853352', 'tblTempVendorCDR_20' ) start [2025-04-07 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853352', 'tblTempVendorCDR_20' ) end [2025-04-07 07:32:18] Production.INFO: ProcessCDR(1,14853352,1,1,2) [2025-04-07 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853352', 'tblTempUsageDetail_20' ) start [2025-04-07 07:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853352', 'tblTempUsageDetail_20' ) end [2025-04-07 07:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:32:24] Production.INFO: ==22611== Releasing lock... [2025-04-07 07:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:32:24] Production.INFO: 31 MB #Memory Used# [2025-04-07 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:33:04 [end_date_ymd] => 2025-04-07 07:33:04 [RateCDR] => 1 ) [2025-04-07 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 04:33:04' and `end` < '2025-04-07 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-04-07 07:33:17] Production.INFO: count ==272 [2025-04-07 07:33:17] Production.ERROR: pbx CDR StartTime 2025-04-07 04:33:04 - End Time 2025-04-07 07:33:04 [2025-04-07 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853357', 'tblTempUsageDetail_20' ) start [2025-04-07 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853357', 'tblTempUsageDetail_20' ) end [2025-04-07 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853357', 'tblTempVendorCDR_20' ) start [2025-04-07 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853357', 'tblTempVendorCDR_20' ) end [2025-04-07 07:33:17] Production.INFO: ProcessCDR(1,14853357,1,1,2) [2025-04-07 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853357', 'tblTempUsageDetail_20' ) start [2025-04-07 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853357', 'tblTempUsageDetail_20' ) end [2025-04-07 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:33:21] Production.INFO: ==22684== Releasing lock... [2025-04-07 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:33:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:34:05 [end_date_ymd] => 2025-04-07 07:34:05 [RateCDR] => 1 ) [2025-04-07 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 04:34:05' and `end` < '2025-04-07 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 07:34:18] Production.INFO: count ==277 [2025-04-07 07:34:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:34:05 - End Time 2025-04-07 07:34:05 [2025-04-07 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853362', 'tblTempUsageDetail_20' ) start [2025-04-07 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853362', 'tblTempUsageDetail_20' ) end [2025-04-07 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853362', 'tblTempVendorCDR_20' ) start [2025-04-07 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853362', 'tblTempVendorCDR_20' ) end [2025-04-07 07:34:18] Production.INFO: ProcessCDR(1,14853362,1,1,2) [2025-04-07 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853362', 'tblTempUsageDetail_20' ) start [2025-04-07 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853362', 'tblTempUsageDetail_20' ) end [2025-04-07 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:34:22] Production.INFO: ==22760== Releasing lock... [2025-04-07 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:34:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-07 07:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:35:06 [end_date_ymd] => 2025-04-07 07:35:06 [RateCDR] => 1 ) [2025-04-07 07:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 04:35:06' and `end` < '2025-04-07 07:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 07:35:19] Production.INFO: count ==277 [2025-04-07 07:35:19] Production.ERROR: pbx CDR StartTime 2025-04-07 04:35:06 - End Time 2025-04-07 07:35:06 [2025-04-07 07:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853367', 'tblTempUsageDetail_20' ) start [2025-04-07 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853367', 'tblTempUsageDetail_20' ) end [2025-04-07 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853367', 'tblTempVendorCDR_20' ) start [2025-04-07 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853367', 'tblTempVendorCDR_20' ) end [2025-04-07 07:35:19] Production.INFO: ProcessCDR(1,14853367,1,1,2) [2025-04-07 07:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853367', 'tblTempUsageDetail_20' ) start [2025-04-07 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853367', 'tblTempUsageDetail_20' ) end [2025-04-07 07:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:35:22] Production.INFO: ==22832== Releasing lock... [2025-04-07 07:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:35:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-07 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:36:05 [end_date_ymd] => 2025-04-07 07:36:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:36:05' and `end` < '2025-04-07 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-04-07 07:36:18] Production.INFO: count ==282 [2025-04-07 07:36:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:36:05 - End Time 2025-04-07 07:36:05 [2025-04-07 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853372', 'tblTempUsageDetail_20' ) start [2025-04-07 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853372', 'tblTempUsageDetail_20' ) end [2025-04-07 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853372', 'tblTempVendorCDR_20' ) start [2025-04-07 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853372', 'tblTempVendorCDR_20' ) end [2025-04-07 07:36:18] Production.INFO: ProcessCDR(1,14853372,1,1,2) [2025-04-07 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853372', 'tblTempUsageDetail_20' ) start [2025-04-07 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853372', 'tblTempUsageDetail_20' ) end [2025-04-07 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:36:21] Production.INFO: ==22910== Releasing lock... [2025-04-07 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:36:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 07:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:37:06 [end_date_ymd] => 2025-04-07 07:37:06 [RateCDR] => 1 ) [2025-04-07 07: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-04-07 04:37:06' and `end` < '2025-04-07 07: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-04-07 07:37:19] Production.INFO: count ==287 [2025-04-07 07:37:19] Production.ERROR: pbx CDR StartTime 2025-04-07 04:37:06 - End Time 2025-04-07 07:37:06 [2025-04-07 07:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853377', 'tblTempUsageDetail_20' ) start [2025-04-07 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853377', 'tblTempUsageDetail_20' ) end [2025-04-07 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853377', 'tblTempVendorCDR_20' ) start [2025-04-07 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853377', 'tblTempVendorCDR_20' ) end [2025-04-07 07:37:19] Production.INFO: ProcessCDR(1,14853377,1,1,2) [2025-04-07 07:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853377', 'tblTempUsageDetail_20' ) start [2025-04-07 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853377', 'tblTempUsageDetail_20' ) end [2025-04-07 07:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:37:22] Production.INFO: ==22984== Releasing lock... [2025-04-07 07:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:37:22] Production.INFO: 31 MB #Memory Used# [2025-04-07 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:38:05 [end_date_ymd] => 2025-04-07 07:38:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:38:05' and `end` < '2025-04-07 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-04-07 07:38:18] Production.INFO: count ==287 [2025-04-07 07:38:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:38:05 - End Time 2025-04-07 07:38:05 [2025-04-07 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853382', 'tblTempUsageDetail_20' ) start [2025-04-07 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853382', 'tblTempUsageDetail_20' ) end [2025-04-07 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853382', 'tblTempVendorCDR_20' ) start [2025-04-07 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853382', 'tblTempVendorCDR_20' ) end [2025-04-07 07:38:18] Production.INFO: ProcessCDR(1,14853382,1,1,2) [2025-04-07 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853382', 'tblTempUsageDetail_20' ) start [2025-04-07 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853382', 'tblTempUsageDetail_20' ) end [2025-04-07 07:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:38:22] Production.INFO: ==23095== Releasing lock... [2025-04-07 07:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:38:22] Production.INFO: 31 MB #Memory Used# [2025-04-07 07:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:39:06 [end_date_ymd] => 2025-04-07 07:39:06 [RateCDR] => 1 ) [2025-04-07 07: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-04-07 04:39:06' and `end` < '2025-04-07 07: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-04-07 07:39:18] Production.INFO: count ==287 [2025-04-07 07:39:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:39:06 - End Time 2025-04-07 07:39:06 [2025-04-07 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853387', 'tblTempUsageDetail_20' ) start [2025-04-07 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853387', 'tblTempUsageDetail_20' ) end [2025-04-07 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853387', 'tblTempVendorCDR_20' ) start [2025-04-07 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853387', 'tblTempVendorCDR_20' ) end [2025-04-07 07:39:18] Production.INFO: ProcessCDR(1,14853387,1,1,2) [2025-04-07 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853387', 'tblTempUsageDetail_20' ) start [2025-04-07 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853387', 'tblTempUsageDetail_20' ) end [2025-04-07 07:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:39:22] Production.INFO: ==23164== Releasing lock... [2025-04-07 07:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:39:22] Production.INFO: 31 MB #Memory Used# [2025-04-07 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:40:06 [end_date_ymd] => 2025-04-07 07:40:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:40:06' and `end` < '2025-04-07 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-04-07 07:40:19] Production.INFO: count ==288 [2025-04-07 07:40:19] Production.ERROR: pbx CDR StartTime 2025-04-07 04:40:06 - End Time 2025-04-07 07:40:06 [2025-04-07 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853393', 'tblTempUsageDetail_20' ) start [2025-04-07 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853393', 'tblTempUsageDetail_20' ) end [2025-04-07 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853393', 'tblTempVendorCDR_20' ) start [2025-04-07 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853393', 'tblTempVendorCDR_20' ) end [2025-04-07 07:40:19] Production.INFO: ProcessCDR(1,14853393,1,1,2) [2025-04-07 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853393', 'tblTempUsageDetail_20' ) start [2025-04-07 07:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853393', 'tblTempUsageDetail_20' ) end [2025-04-07 07:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:40:24] Production.INFO: ==23247== Releasing lock... [2025-04-07 07:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:40:24] Production.INFO: 31 MB #Memory Used# [2025-04-07 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:41:05 [end_date_ymd] => 2025-04-07 07:41:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:41:05' and `end` < '2025-04-07 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-04-07 07:41:18] Production.INFO: count ==288 [2025-04-07 07:41:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:41:05 - End Time 2025-04-07 07:41:05 [2025-04-07 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853398', 'tblTempUsageDetail_20' ) start [2025-04-07 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853398', 'tblTempUsageDetail_20' ) end [2025-04-07 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853398', 'tblTempVendorCDR_20' ) start [2025-04-07 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853398', 'tblTempVendorCDR_20' ) end [2025-04-07 07:41:18] Production.INFO: ProcessCDR(1,14853398,1,1,2) [2025-04-07 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853398', 'tblTempUsageDetail_20' ) start [2025-04-07 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853398', 'tblTempUsageDetail_20' ) end [2025-04-07 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:41:21] Production.INFO: ==23326== Releasing lock... [2025-04-07 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:41:21] Production.INFO: 31 MB #Memory Used# [2025-04-07 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:42:05 [end_date_ymd] => 2025-04-07 07:42:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:42:05' and `end` < '2025-04-07 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-04-07 07:42:18] Production.INFO: count ==284 [2025-04-07 07:42:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:42:05 - End Time 2025-04-07 07:42:05 [2025-04-07 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853403', 'tblTempUsageDetail_20' ) start [2025-04-07 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853403', 'tblTempUsageDetail_20' ) end [2025-04-07 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853403', 'tblTempVendorCDR_20' ) start [2025-04-07 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853403', 'tblTempVendorCDR_20' ) end [2025-04-07 07:42:18] Production.INFO: ProcessCDR(1,14853403,1,1,2) [2025-04-07 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853403', 'tblTempUsageDetail_20' ) start [2025-04-07 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853403', 'tblTempUsageDetail_20' ) end [2025-04-07 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:42:21] Production.INFO: ==23400== Releasing lock... [2025-04-07 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:42:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:43:05 [end_date_ymd] => 2025-04-07 07:43:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:43:05' and `end` < '2025-04-07 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-04-07 07:43:18] Production.INFO: count ==280 [2025-04-07 07:43:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:43:05 - End Time 2025-04-07 07:43:05 [2025-04-07 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853408', 'tblTempUsageDetail_20' ) start [2025-04-07 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853408', 'tblTempUsageDetail_20' ) end [2025-04-07 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853408', 'tblTempVendorCDR_20' ) start [2025-04-07 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853408', 'tblTempVendorCDR_20' ) end [2025-04-07 07:43:18] Production.INFO: ProcessCDR(1,14853408,1,1,2) [2025-04-07 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853408', 'tblTempUsageDetail_20' ) start [2025-04-07 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853408', 'tblTempUsageDetail_20' ) end [2025-04-07 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:43:21] Production.INFO: ==23481== Releasing lock... [2025-04-07 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:43:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:44:05 [end_date_ymd] => 2025-04-07 07:44:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:44:05' and `end` < '2025-04-07 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-04-07 07:44:18] Production.INFO: count ==286 [2025-04-07 07:44:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:44:05 - End Time 2025-04-07 07:44:05 [2025-04-07 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853413', 'tblTempUsageDetail_20' ) start [2025-04-07 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853413', 'tblTempUsageDetail_20' ) end [2025-04-07 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853413', 'tblTempVendorCDR_20' ) start [2025-04-07 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853413', 'tblTempVendorCDR_20' ) end [2025-04-07 07:44:18] Production.INFO: ProcessCDR(1,14853413,1,1,2) [2025-04-07 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853413', 'tblTempUsageDetail_20' ) start [2025-04-07 07:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853413', 'tblTempUsageDetail_20' ) end [2025-04-07 07:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:44:23] Production.INFO: ==23561== Releasing lock... [2025-04-07 07:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:44:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:45:05 [end_date_ymd] => 2025-04-07 07:45:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:45:05' and `end` < '2025-04-07 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-04-07 07:45:18] Production.INFO: count ==287 [2025-04-07 07:45:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:45:05 - End Time 2025-04-07 07:45:05 [2025-04-07 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853418', 'tblTempUsageDetail_20' ) start [2025-04-07 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853418', 'tblTempUsageDetail_20' ) end [2025-04-07 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853418', 'tblTempVendorCDR_20' ) start [2025-04-07 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853418', 'tblTempVendorCDR_20' ) end [2025-04-07 07:45:18] Production.INFO: ProcessCDR(1,14853418,1,1,2) [2025-04-07 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853418', 'tblTempUsageDetail_20' ) start [2025-04-07 07:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853418', 'tblTempUsageDetail_20' ) end [2025-04-07 07:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:45:23] Production.INFO: ==23633== Releasing lock... [2025-04-07 07:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:45:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-07 07:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:46:06 [end_date_ymd] => 2025-04-07 07:46:06 [RateCDR] => 1 ) [2025-04-07 07: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-04-07 04:46:06' and `end` < '2025-04-07 07: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-04-07 07:46:19] Production.INFO: count ==286 [2025-04-07 07:46:19] Production.ERROR: pbx CDR StartTime 2025-04-07 04:46:06 - End Time 2025-04-07 07:46:06 [2025-04-07 07:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853423', 'tblTempUsageDetail_20' ) start [2025-04-07 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853423', 'tblTempUsageDetail_20' ) end [2025-04-07 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853423', 'tblTempVendorCDR_20' ) start [2025-04-07 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853423', 'tblTempVendorCDR_20' ) end [2025-04-07 07:46:19] Production.INFO: ProcessCDR(1,14853423,1,1,2) [2025-04-07 07:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853423', 'tblTempUsageDetail_20' ) start [2025-04-07 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853423', 'tblTempUsageDetail_20' ) end [2025-04-07 07:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:46:22] Production.INFO: ==23705== Releasing lock... [2025-04-07 07:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:46:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:47:05 [end_date_ymd] => 2025-04-07 07:47:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:47:05' and `end` < '2025-04-07 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-04-07 07:47:18] Production.INFO: count ==286 [2025-04-07 07:47:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:47:05 - End Time 2025-04-07 07:47:05 [2025-04-07 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853428', 'tblTempUsageDetail_20' ) start [2025-04-07 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853428', 'tblTempUsageDetail_20' ) end [2025-04-07 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853428', 'tblTempVendorCDR_20' ) start [2025-04-07 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853428', 'tblTempVendorCDR_20' ) end [2025-04-07 07:47:18] Production.INFO: ProcessCDR(1,14853428,1,1,2) [2025-04-07 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853428', 'tblTempUsageDetail_20' ) start [2025-04-07 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853428', 'tblTempUsageDetail_20' ) end [2025-04-07 07:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:47:22] Production.INFO: ==23781== Releasing lock... [2025-04-07 07:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:47:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 07:48:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:48:07 [end_date_ymd] => 2025-04-07 07:48:07 [RateCDR] => 1 ) [2025-04-07 07:48: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-04-07 04:48:07' and `end` < '2025-04-07 07:48: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-04-07 07:48:19] Production.INFO: count ==285 [2025-04-07 07:48:19] Production.ERROR: pbx CDR StartTime 2025-04-07 04:48:07 - End Time 2025-04-07 07:48:07 [2025-04-07 07:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853433', 'tblTempUsageDetail_20' ) start [2025-04-07 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853433', 'tblTempUsageDetail_20' ) end [2025-04-07 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853433', 'tblTempVendorCDR_20' ) start [2025-04-07 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853433', 'tblTempVendorCDR_20' ) end [2025-04-07 07:48:19] Production.INFO: ProcessCDR(1,14853433,1,1,2) [2025-04-07 07:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853433', 'tblTempUsageDetail_20' ) start [2025-04-07 07:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853433', 'tblTempUsageDetail_20' ) end [2025-04-07 07:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:48:23] Production.INFO: ==23860== Releasing lock... [2025-04-07 07:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:48:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:49:05 [end_date_ymd] => 2025-04-07 07:49:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:49:05' and `end` < '2025-04-07 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-04-07 07:49:18] Production.INFO: count ==285 [2025-04-07 07:49:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:49:05 - End Time 2025-04-07 07:49:05 [2025-04-07 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853438', 'tblTempUsageDetail_20' ) start [2025-04-07 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853438', 'tblTempUsageDetail_20' ) end [2025-04-07 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853438', 'tblTempVendorCDR_20' ) start [2025-04-07 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853438', 'tblTempVendorCDR_20' ) end [2025-04-07 07:49:18] Production.INFO: ProcessCDR(1,14853438,1,1,2) [2025-04-07 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853438', 'tblTempUsageDetail_20' ) start [2025-04-07 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853438', 'tblTempUsageDetail_20' ) end [2025-04-07 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:49:21] Production.INFO: ==23932== Releasing lock... [2025-04-07 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:49:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:50:06 [end_date_ymd] => 2025-04-07 07:50:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:50:06' and `end` < '2025-04-07 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-04-07 07:50:19] Production.INFO: count ==290 [2025-04-07 07:50:19] Production.ERROR: pbx CDR StartTime 2025-04-07 04:50:06 - End Time 2025-04-07 07:50:06 [2025-04-07 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853444', 'tblTempUsageDetail_20' ) start [2025-04-07 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853444', 'tblTempUsageDetail_20' ) end [2025-04-07 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853444', 'tblTempVendorCDR_20' ) start [2025-04-07 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853444', 'tblTempVendorCDR_20' ) end [2025-04-07 07:50:19] Production.INFO: ProcessCDR(1,14853444,1,1,2) [2025-04-07 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853444', 'tblTempUsageDetail_20' ) start [2025-04-07 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853444', 'tblTempUsageDetail_20' ) end [2025-04-07 07:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:50:23] Production.INFO: ==24008== Releasing lock... [2025-04-07 07:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:50:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:51:05 [end_date_ymd] => 2025-04-07 07:51:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:51:05' and `end` < '2025-04-07 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-04-07 07:51:18] Production.INFO: count ==290 [2025-04-07 07:51:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:51:05 - End Time 2025-04-07 07:51:05 [2025-04-07 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853449', 'tblTempUsageDetail_20' ) start [2025-04-07 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853449', 'tblTempUsageDetail_20' ) end [2025-04-07 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853449', 'tblTempVendorCDR_20' ) start [2025-04-07 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853449', 'tblTempVendorCDR_20' ) end [2025-04-07 07:51:18] Production.INFO: ProcessCDR(1,14853449,1,1,2) [2025-04-07 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853449', 'tblTempUsageDetail_20' ) start [2025-04-07 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853449', 'tblTempUsageDetail_20' ) end [2025-04-07 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:51:21] Production.INFO: ==24086== Releasing lock... [2025-04-07 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:51:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:52:05 [end_date_ymd] => 2025-04-07 07:52:05 [RateCDR] => 1 ) [2025-04-07 07: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-04-07 04:52:05' and `end` < '2025-04-07 07: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-04-07 07:52:18] Production.INFO: count ==292 [2025-04-07 07:52:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:52:05 - End Time 2025-04-07 07:52:05 [2025-04-07 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853454', 'tblTempUsageDetail_20' ) start [2025-04-07 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853454', 'tblTempUsageDetail_20' ) end [2025-04-07 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853454', 'tblTempVendorCDR_20' ) start [2025-04-07 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853454', 'tblTempVendorCDR_20' ) end [2025-04-07 07:52:18] Production.INFO: ProcessCDR(1,14853454,1,1,2) [2025-04-07 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853454', 'tblTempUsageDetail_20' ) start [2025-04-07 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853454', 'tblTempUsageDetail_20' ) end [2025-04-07 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:52:21] Production.INFO: ==24162== Releasing lock... [2025-04-07 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:52:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-07 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:53:05 [end_date_ymd] => 2025-04-07 07:53:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:53:05' and `end` < '2025-04-07 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-04-07 07:53:18] Production.INFO: count ==296 [2025-04-07 07:53:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:53:05 - End Time 2025-04-07 07:53:05 [2025-04-07 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853459', 'tblTempUsageDetail_20' ) start [2025-04-07 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853459', 'tblTempUsageDetail_20' ) end [2025-04-07 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853459', 'tblTempVendorCDR_20' ) start [2025-04-07 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853459', 'tblTempVendorCDR_20' ) end [2025-04-07 07:53:18] Production.INFO: ProcessCDR(1,14853459,1,1,2) [2025-04-07 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853459', 'tblTempUsageDetail_20' ) start [2025-04-07 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853459', 'tblTempUsageDetail_20' ) end [2025-04-07 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:53:21] Production.INFO: ==24277== Releasing lock... [2025-04-07 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:53:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-07 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:54:05 [end_date_ymd] => 2025-04-07 07:54:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:54:05' and `end` < '2025-04-07 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-04-07 07:54:18] Production.INFO: count ==296 [2025-04-07 07:54:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:54:05 - End Time 2025-04-07 07:54:05 [2025-04-07 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853464', 'tblTempUsageDetail_20' ) start [2025-04-07 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853464', 'tblTempUsageDetail_20' ) end [2025-04-07 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853464', 'tblTempVendorCDR_20' ) start [2025-04-07 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853464', 'tblTempVendorCDR_20' ) end [2025-04-07 07:54:18] Production.INFO: ProcessCDR(1,14853464,1,1,2) [2025-04-07 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853464', 'tblTempUsageDetail_20' ) start [2025-04-07 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853464', 'tblTempUsageDetail_20' ) end [2025-04-07 07:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:54:22] Production.INFO: ==24349== Releasing lock... [2025-04-07 07:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:54:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-07 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:55:05 [end_date_ymd] => 2025-04-07 07:55:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:55:05' and `end` < '2025-04-07 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-04-07 07:55:17] Production.INFO: count ==300 [2025-04-07 07:55:17] Production.ERROR: pbx CDR StartTime 2025-04-07 04:55:05 - End Time 2025-04-07 07:55:05 [2025-04-07 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853469', 'tblTempUsageDetail_20' ) start [2025-04-07 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853469', 'tblTempUsageDetail_20' ) end [2025-04-07 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853469', 'tblTempVendorCDR_20' ) start [2025-04-07 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853469', 'tblTempVendorCDR_20' ) end [2025-04-07 07:55:18] Production.INFO: ProcessCDR(1,14853469,1,1,2) [2025-04-07 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853469', 'tblTempUsageDetail_20' ) start [2025-04-07 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853469', 'tblTempUsageDetail_20' ) end [2025-04-07 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:55:21] Production.INFO: ==24436== Releasing lock... [2025-04-07 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:55:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-07 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:56:05 [end_date_ymd] => 2025-04-07 07:56:05 [RateCDR] => 1 ) [2025-04-07 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 04:56:05' and `end` < '2025-04-07 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 07:56:18] Production.INFO: count ==305 [2025-04-07 07:56:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:56:05 - End Time 2025-04-07 07:56:05 [2025-04-07 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853474', 'tblTempUsageDetail_20' ) start [2025-04-07 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853474', 'tblTempUsageDetail_20' ) end [2025-04-07 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853474', 'tblTempVendorCDR_20' ) start [2025-04-07 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853474', 'tblTempVendorCDR_20' ) end [2025-04-07 07:56:18] Production.INFO: ProcessCDR(1,14853474,1,1,2) [2025-04-07 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853474', 'tblTempUsageDetail_20' ) start [2025-04-07 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853474', 'tblTempUsageDetail_20' ) end [2025-04-07 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:56:21] Production.INFO: ==24520== Releasing lock... [2025-04-07 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:56:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-07 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:57:05 [end_date_ymd] => 2025-04-07 07:57:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:57:05' and `end` < '2025-04-07 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-04-07 07:57:18] Production.INFO: count ==310 [2025-04-07 07:57:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:57:05 - End Time 2025-04-07 07:57:05 [2025-04-07 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853479', 'tblTempUsageDetail_20' ) start [2025-04-07 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853479', 'tblTempUsageDetail_20' ) end [2025-04-07 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853479', 'tblTempVendorCDR_20' ) start [2025-04-07 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853479', 'tblTempVendorCDR_20' ) end [2025-04-07 07:57:18] Production.INFO: ProcessCDR(1,14853479,1,1,2) [2025-04-07 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853479', 'tblTempUsageDetail_20' ) start [2025-04-07 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853479', 'tblTempUsageDetail_20' ) end [2025-04-07 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:57:21] Production.INFO: ==24592== Releasing lock... [2025-04-07 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:57:21] Production.INFO: 31 MB #Memory Used# [2025-04-07 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:58:05 [end_date_ymd] => 2025-04-07 07:58:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 04:58:05' and `end` < '2025-04-07 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-04-07 07:58:18] Production.INFO: count ==314 [2025-04-07 07:58:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:58:05 - End Time 2025-04-07 07:58:05 [2025-04-07 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853484', 'tblTempUsageDetail_20' ) start [2025-04-07 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853484', 'tblTempUsageDetail_20' ) end [2025-04-07 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853484', 'tblTempVendorCDR_20' ) start [2025-04-07 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853484', 'tblTempVendorCDR_20' ) end [2025-04-07 07:58:18] Production.INFO: ProcessCDR(1,14853484,1,1,2) [2025-04-07 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853484', 'tblTempUsageDetail_20' ) start [2025-04-07 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853484', 'tblTempUsageDetail_20' ) end [2025-04-07 07:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:58:23] Production.INFO: ==24669== Releasing lock... [2025-04-07 07:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:58:23] Production.INFO: 31 MB #Memory Used# [2025-04-07 07:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 04:59:06 [end_date_ymd] => 2025-04-07 07:59:06 [RateCDR] => 1 ) [2025-04-07 07:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 04:59:06' and `end` < '2025-04-07 07:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 07:59:18] Production.INFO: count ==312 [2025-04-07 07:59:18] Production.ERROR: pbx CDR StartTime 2025-04-07 04:59:06 - End Time 2025-04-07 07:59:06 [2025-04-07 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853489', 'tblTempUsageDetail_20' ) start [2025-04-07 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853489', 'tblTempUsageDetail_20' ) end [2025-04-07 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853489', 'tblTempVendorCDR_20' ) start [2025-04-07 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853489', 'tblTempVendorCDR_20' ) end [2025-04-07 07:59:18] Production.INFO: ProcessCDR(1,14853489,1,1,2) [2025-04-07 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853489', 'tblTempUsageDetail_20' ) start [2025-04-07 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853489', 'tblTempUsageDetail_20' ) end [2025-04-07 07:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 07:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 07:59:22] Production.INFO: ==24746== Releasing lock... [2025-04-07 07:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 07:59:22] Production.INFO: 31 MB #Memory Used# [2025-04-07 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:00:06 [end_date_ymd] => 2025-04-07 08:00:06 [RateCDR] => 1 ) [2025-04-07 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 05:00:06' and `end` < '2025-04-07 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 08:00:19] Production.INFO: count ==301 [2025-04-07 08:00:19] Production.ERROR: pbx CDR StartTime 2025-04-07 05:00:06 - End Time 2025-04-07 08:00:06 [2025-04-07 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853495', 'tblTempUsageDetail_20' ) start [2025-04-07 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853495', 'tblTempUsageDetail_20' ) end [2025-04-07 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853495', 'tblTempVendorCDR_20' ) start [2025-04-07 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853495', 'tblTempVendorCDR_20' ) end [2025-04-07 08:00:19] Production.INFO: ProcessCDR(1,14853495,1,1,2) [2025-04-07 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853495', 'tblTempUsageDetail_20' ) start [2025-04-07 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853495', 'tblTempUsageDetail_20' ) end [2025-04-07 08:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:00:23] Production.INFO: ==24825== Releasing lock... [2025-04-07 08:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:00:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-07 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:01:05 [end_date_ymd] => 2025-04-07 08:01:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:01:05' and `end` < '2025-04-07 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-04-07 08:01:18] Production.INFO: count ==293 [2025-04-07 08:01:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:01:05 - End Time 2025-04-07 08:01:05 [2025-04-07 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853500', 'tblTempUsageDetail_20' ) start [2025-04-07 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853500', 'tblTempUsageDetail_20' ) end [2025-04-07 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853500', 'tblTempVendorCDR_20' ) start [2025-04-07 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853500', 'tblTempVendorCDR_20' ) end [2025-04-07 08:01:18] Production.INFO: ProcessCDR(1,14853500,1,1,2) [2025-04-07 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853500', 'tblTempUsageDetail_20' ) start [2025-04-07 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853500', 'tblTempUsageDetail_20' ) end [2025-04-07 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:01:22] Production.INFO: ==24915== Releasing lock... [2025-04-07 08:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:01:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-07 08:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:02:06 [end_date_ymd] => 2025-04-07 08:02:06 [RateCDR] => 1 ) [2025-04-07 08: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-04-07 05:02:06' and `end` < '2025-04-07 08: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-04-07 08:02:18] Production.INFO: count ==282 [2025-04-07 08:02:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:02:06 - End Time 2025-04-07 08:02:06 [2025-04-07 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853505', 'tblTempUsageDetail_20' ) start [2025-04-07 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853505', 'tblTempUsageDetail_20' ) end [2025-04-07 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853505', 'tblTempVendorCDR_20' ) start [2025-04-07 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853505', 'tblTempVendorCDR_20' ) end [2025-04-07 08:02:19] Production.INFO: ProcessCDR(1,14853505,1,1,2) [2025-04-07 08:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853505', 'tblTempUsageDetail_20' ) start [2025-04-07 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853505', 'tblTempUsageDetail_20' ) end [2025-04-07 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:02:22] Production.INFO: ==24989== Releasing lock... [2025-04-07 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:02:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-07 08:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:03:06 [end_date_ymd] => 2025-04-07 08:03:06 [RateCDR] => 1 ) [2025-04-07 08: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-04-07 05:03:06' and `end` < '2025-04-07 08: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-04-07 08:03:19] Production.INFO: count ==283 [2025-04-07 08:03:19] Production.ERROR: pbx CDR StartTime 2025-04-07 05:03:06 - End Time 2025-04-07 08:03:06 [2025-04-07 08:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853510', 'tblTempUsageDetail_20' ) start [2025-04-07 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853510', 'tblTempUsageDetail_20' ) end [2025-04-07 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853510', 'tblTempVendorCDR_20' ) start [2025-04-07 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853510', 'tblTempVendorCDR_20' ) end [2025-04-07 08:03:19] Production.INFO: ProcessCDR(1,14853510,1,1,2) [2025-04-07 08:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853510', 'tblTempUsageDetail_20' ) start [2025-04-07 08:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853510', 'tblTempUsageDetail_20' ) end [2025-04-07 08:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:03:24] Production.INFO: ==25072== Releasing lock... [2025-04-07 08:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:03:24] Production.INFO: 30.25 MB #Memory Used# [2025-04-07 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:04:05 [end_date_ymd] => 2025-04-07 08:04:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:04:05' and `end` < '2025-04-07 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-04-07 08:04:18] Production.INFO: count ==288 [2025-04-07 08:04:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:04:05 - End Time 2025-04-07 08:04:05 [2025-04-07 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853515', 'tblTempUsageDetail_20' ) start [2025-04-07 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853515', 'tblTempUsageDetail_20' ) end [2025-04-07 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853515', 'tblTempVendorCDR_20' ) start [2025-04-07 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853515', 'tblTempVendorCDR_20' ) end [2025-04-07 08:04:18] Production.INFO: ProcessCDR(1,14853515,1,1,2) [2025-04-07 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853515', 'tblTempUsageDetail_20' ) start [2025-04-07 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853515', 'tblTempUsageDetail_20' ) end [2025-04-07 08:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:04:22] Production.INFO: ==25150== Releasing lock... [2025-04-07 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:04:22] Production.INFO: 31 MB #Memory Used# [2025-04-07 08:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:05:06 [end_date_ymd] => 2025-04-07 08:05:06 [RateCDR] => 1 ) [2025-04-07 08: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-04-07 05:05:06' and `end` < '2025-04-07 08: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-04-07 08:05:18] Production.INFO: count ==290 [2025-04-07 08:05:19] Production.ERROR: pbx CDR StartTime 2025-04-07 05:05:06 - End Time 2025-04-07 08:05:06 [2025-04-07 08:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853520', 'tblTempUsageDetail_20' ) start [2025-04-07 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853520', 'tblTempUsageDetail_20' ) end [2025-04-07 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853520', 'tblTempVendorCDR_20' ) start [2025-04-07 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853520', 'tblTempVendorCDR_20' ) end [2025-04-07 08:05:19] Production.INFO: ProcessCDR(1,14853520,1,1,2) [2025-04-07 08:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853520', 'tblTempUsageDetail_20' ) start [2025-04-07 08:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853520', 'tblTempUsageDetail_20' ) end [2025-04-07 08:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:05:24] Production.INFO: ==25221== Releasing lock... [2025-04-07 08:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:05:24] Production.INFO: 31 MB #Memory Used# [2025-04-07 08:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:06:06 [end_date_ymd] => 2025-04-07 08:06:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:06:06' and `end` < '2025-04-07 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-04-07 08:06:19] Production.INFO: count ==291 [2025-04-07 08:06:19] Production.ERROR: pbx CDR StartTime 2025-04-07 05:06:06 - End Time 2025-04-07 08:06:06 [2025-04-07 08:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853525', 'tblTempUsageDetail_20' ) start [2025-04-07 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853525', 'tblTempUsageDetail_20' ) end [2025-04-07 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853525', 'tblTempVendorCDR_20' ) start [2025-04-07 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853525', 'tblTempVendorCDR_20' ) end [2025-04-07 08:06:19] Production.INFO: ProcessCDR(1,14853525,1,1,2) [2025-04-07 08:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853525', 'tblTempUsageDetail_20' ) start [2025-04-07 08:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853525', 'tblTempUsageDetail_20' ) end [2025-04-07 08:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:06:24] Production.INFO: ==25296== Releasing lock... [2025-04-07 08:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:06:24] Production.INFO: 31.25 MB #Memory Used# [2025-04-07 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:07:05 [end_date_ymd] => 2025-04-07 08:07:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:07:05' and `end` < '2025-04-07 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-04-07 08:07:18] Production.INFO: count ==309 [2025-04-07 08:07:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:07:05 - End Time 2025-04-07 08:07:05 [2025-04-07 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853530', 'tblTempUsageDetail_20' ) start [2025-04-07 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853530', 'tblTempUsageDetail_20' ) end [2025-04-07 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853530', 'tblTempVendorCDR_20' ) start [2025-04-07 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853530', 'tblTempVendorCDR_20' ) end [2025-04-07 08:07:18] Production.INFO: ProcessCDR(1,14853530,1,1,2) [2025-04-07 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853530', 'tblTempUsageDetail_20' ) start [2025-04-07 08:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853530', 'tblTempUsageDetail_20' ) end [2025-04-07 08:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:07:23] Production.INFO: ==25369== Releasing lock... [2025-04-07 08:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:07:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-07 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:08:05 [end_date_ymd] => 2025-04-07 08:08:05 [RateCDR] => 1 ) [2025-04-07 08: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-04-07 05:08:05' and `end` < '2025-04-07 08: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-04-07 08:08:18] Production.INFO: count ==316 [2025-04-07 08:08:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:08:05 - End Time 2025-04-07 08:08:05 [2025-04-07 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853535', 'tblTempUsageDetail_20' ) start [2025-04-07 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853535', 'tblTempUsageDetail_20' ) end [2025-04-07 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853535', 'tblTempVendorCDR_20' ) start [2025-04-07 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853535', 'tblTempVendorCDR_20' ) end [2025-04-07 08:08:18] Production.INFO: ProcessCDR(1,14853535,1,1,2) [2025-04-07 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853535', 'tblTempUsageDetail_20' ) start [2025-04-07 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853535', 'tblTempUsageDetail_20' ) end [2025-04-07 08:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:08:22] Production.INFO: ==25445== Releasing lock... [2025-04-07 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:08:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-07 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:09:05 [end_date_ymd] => 2025-04-07 08:09:05 [RateCDR] => 1 ) [2025-04-07 08:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 05:09:05' and `end` < '2025-04-07 08:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 08:09:18] Production.INFO: count ==333 [2025-04-07 08:09:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:09:05 - End Time 2025-04-07 08:09:05 [2025-04-07 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853540', 'tblTempUsageDetail_20' ) start [2025-04-07 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853540', 'tblTempUsageDetail_20' ) end [2025-04-07 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853540', 'tblTempVendorCDR_20' ) start [2025-04-07 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853540', 'tblTempVendorCDR_20' ) end [2025-04-07 08:09:18] Production.INFO: ProcessCDR(1,14853540,1,1,2) [2025-04-07 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853540', 'tblTempUsageDetail_20' ) start [2025-04-07 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853540', 'tblTempUsageDetail_20' ) end [2025-04-07 08:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:09:22] Production.INFO: ==25564== Releasing lock... [2025-04-07 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:09:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-07 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:10:05 [end_date_ymd] => 2025-04-07 08:10:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:10:05' and `end` < '2025-04-07 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-04-07 08:10:18] Production.INFO: count ==348 [2025-04-07 08:10:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:10:05 - End Time 2025-04-07 08:10:05 [2025-04-07 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853545', 'tblTempUsageDetail_20' ) start [2025-04-07 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853545', 'tblTempUsageDetail_20' ) end [2025-04-07 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853545', 'tblTempVendorCDR_20' ) start [2025-04-07 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853545', 'tblTempVendorCDR_20' ) end [2025-04-07 08:10:18] Production.INFO: ProcessCDR(1,14853545,1,1,2) [2025-04-07 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853545', 'tblTempUsageDetail_20' ) start [2025-04-07 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853545', 'tblTempUsageDetail_20' ) end [2025-04-07 08:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:10:23] Production.INFO: ==25645== Releasing lock... [2025-04-07 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:10:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-07 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:11:05 [end_date_ymd] => 2025-04-07 08:11:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:11:05' and `end` < '2025-04-07 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-04-07 08:11:18] Production.INFO: count ==365 [2025-04-07 08:11:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:11:05 - End Time 2025-04-07 08:11:05 [2025-04-07 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853551', 'tblTempUsageDetail_20' ) start [2025-04-07 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853551', 'tblTempUsageDetail_20' ) end [2025-04-07 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853551', 'tblTempVendorCDR_20' ) start [2025-04-07 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853551', 'tblTempVendorCDR_20' ) end [2025-04-07 08:11:18] Production.INFO: ProcessCDR(1,14853551,1,1,2) [2025-04-07 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853551', 'tblTempUsageDetail_20' ) start [2025-04-07 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853551', 'tblTempUsageDetail_20' ) end [2025-04-07 08:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:11:22] Production.INFO: ==25724== Releasing lock... [2025-04-07 08:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:11:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-07 08:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:12:06 [end_date_ymd] => 2025-04-07 08:12:06 [RateCDR] => 1 ) [2025-04-07 08:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 05:12:06' and `end` < '2025-04-07 08:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 08:12:19] Production.INFO: count ==370 [2025-04-07 08:12:19] Production.ERROR: pbx CDR StartTime 2025-04-07 05:12:06 - End Time 2025-04-07 08:12:06 [2025-04-07 08:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853556', 'tblTempUsageDetail_20' ) start [2025-04-07 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853556', 'tblTempUsageDetail_20' ) end [2025-04-07 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853556', 'tblTempVendorCDR_20' ) start [2025-04-07 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853556', 'tblTempVendorCDR_20' ) end [2025-04-07 08:12:19] Production.INFO: ProcessCDR(1,14853556,1,1,2) [2025-04-07 08:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853556', 'tblTempUsageDetail_20' ) start [2025-04-07 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853556', 'tblTempUsageDetail_20' ) end [2025-04-07 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:12:22] Production.INFO: ==25795== Releasing lock... [2025-04-07 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:12:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-07 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:13:05 [end_date_ymd] => 2025-04-07 08:13:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:13:05' and `end` < '2025-04-07 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-04-07 08:13:18] Production.INFO: count ==375 [2025-04-07 08:13:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:13:05 - End Time 2025-04-07 08:13:05 [2025-04-07 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853561', 'tblTempUsageDetail_20' ) start [2025-04-07 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853561', 'tblTempUsageDetail_20' ) end [2025-04-07 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853561', 'tblTempVendorCDR_20' ) start [2025-04-07 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853561', 'tblTempVendorCDR_20' ) end [2025-04-07 08:13:18] Production.INFO: ProcessCDR(1,14853561,1,1,2) [2025-04-07 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853561', 'tblTempUsageDetail_20' ) start [2025-04-07 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853561', 'tblTempUsageDetail_20' ) end [2025-04-07 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:13:21] Production.INFO: ==25874== Releasing lock... [2025-04-07 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:13:21] Production.INFO: 31 MB #Memory Used# [2025-04-07 08:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:14:06 [end_date_ymd] => 2025-04-07 08:14:06 [RateCDR] => 1 ) [2025-04-07 08:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 05:14:06' and `end` < '2025-04-07 08:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 08:14:19] Production.INFO: count ==377 [2025-04-07 08:14:19] Production.ERROR: pbx CDR StartTime 2025-04-07 05:14:06 - End Time 2025-04-07 08:14:06 [2025-04-07 08:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853566', 'tblTempUsageDetail_20' ) start [2025-04-07 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853566', 'tblTempUsageDetail_20' ) end [2025-04-07 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853566', 'tblTempVendorCDR_20' ) start [2025-04-07 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853566', 'tblTempVendorCDR_20' ) end [2025-04-07 08:14:19] Production.INFO: ProcessCDR(1,14853566,1,1,2) [2025-04-07 08:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853566', 'tblTempUsageDetail_20' ) start [2025-04-07 08:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853566', 'tblTempUsageDetail_20' ) end [2025-04-07 08:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:14:24] Production.INFO: ==25950== Releasing lock... [2025-04-07 08:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:14:24] Production.INFO: 31.25 MB #Memory Used# [2025-04-07 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:15:05 [end_date_ymd] => 2025-04-07 08:15:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:15:05' and `end` < '2025-04-07 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-04-07 08:15:18] Production.INFO: count ==383 [2025-04-07 08:15:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:15:05 - End Time 2025-04-07 08:15:05 [2025-04-07 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853571', 'tblTempUsageDetail_20' ) start [2025-04-07 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853571', 'tblTempUsageDetail_20' ) end [2025-04-07 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853571', 'tblTempVendorCDR_20' ) start [2025-04-07 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853571', 'tblTempVendorCDR_20' ) end [2025-04-07 08:15:18] Production.INFO: ProcessCDR(1,14853571,1,1,2) [2025-04-07 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853571', 'tblTempUsageDetail_20' ) start [2025-04-07 08:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853571', 'tblTempUsageDetail_20' ) end [2025-04-07 08:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:15:23] Production.INFO: ==26027== Releasing lock... [2025-04-07 08:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:15:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-07 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:16:05 [end_date_ymd] => 2025-04-07 08:16:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:16:05' and `end` < '2025-04-07 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-04-07 08:16:18] Production.INFO: count ==381 [2025-04-07 08:16:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:16:05 - End Time 2025-04-07 08:16:05 [2025-04-07 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853576', 'tblTempUsageDetail_20' ) start [2025-04-07 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853576', 'tblTempUsageDetail_20' ) end [2025-04-07 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853576', 'tblTempVendorCDR_20' ) start [2025-04-07 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853576', 'tblTempVendorCDR_20' ) end [2025-04-07 08:16:18] Production.INFO: ProcessCDR(1,14853576,1,1,2) [2025-04-07 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853576', 'tblTempUsageDetail_20' ) start [2025-04-07 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853576', 'tblTempUsageDetail_20' ) end [2025-04-07 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:16:21] Production.INFO: ==26101== Releasing lock... [2025-04-07 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:16:21] Production.INFO: 32 MB #Memory Used# [2025-04-07 08:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:17:04 [end_date_ymd] => 2025-04-07 08:17:04 [RateCDR] => 1 ) [2025-04-07 08:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 05:17:04' and `end` < '2025-04-07 08:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 08:17:17] Production.INFO: count ==380 [2025-04-07 08:17:17] Production.ERROR: pbx CDR StartTime 2025-04-07 05:17:04 - End Time 2025-04-07 08:17:04 [2025-04-07 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853581', 'tblTempUsageDetail_20' ) start [2025-04-07 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853581', 'tblTempUsageDetail_20' ) end [2025-04-07 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853581', 'tblTempVendorCDR_20' ) start [2025-04-07 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853581', 'tblTempVendorCDR_20' ) end [2025-04-07 08:17:17] Production.INFO: ProcessCDR(1,14853581,1,1,2) [2025-04-07 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853581', 'tblTempUsageDetail_20' ) start [2025-04-07 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853581', 'tblTempUsageDetail_20' ) end [2025-04-07 08:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:17:21] Production.INFO: ==26179== Releasing lock... [2025-04-07 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:17:21] Production.INFO: 32 MB #Memory Used# [2025-04-07 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:18:05 [end_date_ymd] => 2025-04-07 08:18:05 [RateCDR] => 1 ) [2025-04-07 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 05:18:05' and `end` < '2025-04-07 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 08:18:18] Production.INFO: count ==382 [2025-04-07 08:18:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:18:05 - End Time 2025-04-07 08:18:05 [2025-04-07 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853586', 'tblTempUsageDetail_20' ) start [2025-04-07 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853586', 'tblTempUsageDetail_20' ) end [2025-04-07 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853586', 'tblTempVendorCDR_20' ) start [2025-04-07 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853586', 'tblTempVendorCDR_20' ) end [2025-04-07 08:18:18] Production.INFO: ProcessCDR(1,14853586,1,1,2) [2025-04-07 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853586', 'tblTempUsageDetail_20' ) start [2025-04-07 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853586', 'tblTempUsageDetail_20' ) end [2025-04-07 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:18:22] Production.INFO: ==26258== Releasing lock... [2025-04-07 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:18:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-07 08:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:19:06 [end_date_ymd] => 2025-04-07 08:19:06 [RateCDR] => 1 ) [2025-04-07 08: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-04-07 05:19:06' and `end` < '2025-04-07 08: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-04-07 08:19:19] Production.INFO: count ==385 [2025-04-07 08:19:19] Production.ERROR: pbx CDR StartTime 2025-04-07 05:19:06 - End Time 2025-04-07 08:19:06 [2025-04-07 08:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853591', 'tblTempUsageDetail_20' ) start [2025-04-07 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853591', 'tblTempUsageDetail_20' ) end [2025-04-07 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853591', 'tblTempVendorCDR_20' ) start [2025-04-07 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853591', 'tblTempVendorCDR_20' ) end [2025-04-07 08:19:19] Production.INFO: ProcessCDR(1,14853591,1,1,2) [2025-04-07 08:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853591', 'tblTempUsageDetail_20' ) start [2025-04-07 08:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853591', 'tblTempUsageDetail_20' ) end [2025-04-07 08:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:19:24] Production.INFO: ==26331== Releasing lock... [2025-04-07 08:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:19:24] Production.INFO: 31.75 MB #Memory Used# [2025-04-07 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:20:06 [end_date_ymd] => 2025-04-07 08:20:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:20:06' and `end` < '2025-04-07 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-04-07 08:20:18] Production.INFO: count ==399 [2025-04-07 08:20:19] Production.ERROR: pbx CDR StartTime 2025-04-07 05:20:06 - End Time 2025-04-07 08:20:06 [2025-04-07 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853596', 'tblTempUsageDetail_20' ) start [2025-04-07 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853596', 'tblTempUsageDetail_20' ) end [2025-04-07 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853596', 'tblTempVendorCDR_20' ) start [2025-04-07 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853596', 'tblTempVendorCDR_20' ) end [2025-04-07 08:20:19] Production.INFO: ProcessCDR(1,14853596,1,1,2) [2025-04-07 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853596', 'tblTempUsageDetail_20' ) start [2025-04-07 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853596', 'tblTempUsageDetail_20' ) end [2025-04-07 08:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:20:23] Production.INFO: ==26409== Releasing lock... [2025-04-07 08:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:20:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-07 08:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:21:06 [end_date_ymd] => 2025-04-07 08:21:06 [RateCDR] => 1 ) [2025-04-07 08: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-04-07 05:21:06' and `end` < '2025-04-07 08: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-04-07 08:21:19] Production.INFO: count ==439 [2025-04-07 08:21:19] Production.ERROR: pbx CDR StartTime 2025-04-07 05:21:06 - End Time 2025-04-07 08:21:06 [2025-04-07 08:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853602', 'tblTempUsageDetail_20' ) start [2025-04-07 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853602', 'tblTempUsageDetail_20' ) end [2025-04-07 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853602', 'tblTempVendorCDR_20' ) start [2025-04-07 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853602', 'tblTempVendorCDR_20' ) end [2025-04-07 08:21:19] Production.INFO: ProcessCDR(1,14853602,1,1,2) [2025-04-07 08:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853602', 'tblTempUsageDetail_20' ) start [2025-04-07 08:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853602', 'tblTempUsageDetail_20' ) end [2025-04-07 08:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:21:24] Production.INFO: ==26487== Releasing lock... [2025-04-07 08:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:21:24] Production.INFO: 32 MB #Memory Used# [2025-04-07 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:22:05 [end_date_ymd] => 2025-04-07 08:22:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:22:05' and `end` < '2025-04-07 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-04-07 08:22:18] Production.INFO: count ==455 [2025-04-07 08:22:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:22:05 - End Time 2025-04-07 08:22:05 [2025-04-07 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853607', 'tblTempUsageDetail_20' ) start [2025-04-07 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853607', 'tblTempUsageDetail_20' ) end [2025-04-07 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853607', 'tblTempVendorCDR_20' ) start [2025-04-07 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853607', 'tblTempVendorCDR_20' ) end [2025-04-07 08:22:18] Production.INFO: ProcessCDR(1,14853607,1,1,2) [2025-04-07 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853607', 'tblTempUsageDetail_20' ) start [2025-04-07 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853607', 'tblTempUsageDetail_20' ) end [2025-04-07 08:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:22:23] Production.INFO: ==26567== Releasing lock... [2025-04-07 08:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:22:23] Production.INFO: 32 MB #Memory Used# [2025-04-07 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:23:05 [end_date_ymd] => 2025-04-07 08:23:05 [RateCDR] => 1 ) [2025-04-07 08:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 05:23:05' and `end` < '2025-04-07 08:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 08:23:18] Production.INFO: count ==463 [2025-04-07 08:23:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:23:05 - End Time 2025-04-07 08:23:05 [2025-04-07 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853612', 'tblTempUsageDetail_20' ) start [2025-04-07 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853612', 'tblTempUsageDetail_20' ) end [2025-04-07 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853612', 'tblTempVendorCDR_20' ) start [2025-04-07 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853612', 'tblTempVendorCDR_20' ) end [2025-04-07 08:23:18] Production.INFO: ProcessCDR(1,14853612,1,1,2) [2025-04-07 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853612', 'tblTempUsageDetail_20' ) start [2025-04-07 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853612', 'tblTempUsageDetail_20' ) end [2025-04-07 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:23:21] Production.INFO: ==26647== Releasing lock... [2025-04-07 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:23:21] Production.INFO: 32 MB #Memory Used# [2025-04-07 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:24:05 [end_date_ymd] => 2025-04-07 08:24:05 [RateCDR] => 1 ) [2025-04-07 08:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 05:24:05' and `end` < '2025-04-07 08:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 08:24:18] Production.INFO: count ==470 [2025-04-07 08:24:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:24:05 - End Time 2025-04-07 08:24:05 [2025-04-07 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853617', 'tblTempUsageDetail_20' ) start [2025-04-07 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853617', 'tblTempUsageDetail_20' ) end [2025-04-07 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853617', 'tblTempVendorCDR_20' ) start [2025-04-07 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853617', 'tblTempVendorCDR_20' ) end [2025-04-07 08:24:18] Production.INFO: ProcessCDR(1,14853617,1,1,2) [2025-04-07 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853617', 'tblTempUsageDetail_20' ) start [2025-04-07 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853617', 'tblTempUsageDetail_20' ) end [2025-04-07 08:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:24:23] Production.INFO: ==26762== Releasing lock... [2025-04-07 08:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:24:23] Production.INFO: 32 MB #Memory Used# [2025-04-07 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:25:05 [end_date_ymd] => 2025-04-07 08:25:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:25:05' and `end` < '2025-04-07 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-04-07 08:25:18] Production.INFO: count ==472 [2025-04-07 08:25:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:25:05 - End Time 2025-04-07 08:25:05 [2025-04-07 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853622', 'tblTempUsageDetail_20' ) start [2025-04-07 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853622', 'tblTempUsageDetail_20' ) end [2025-04-07 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853622', 'tblTempVendorCDR_20' ) start [2025-04-07 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853622', 'tblTempVendorCDR_20' ) end [2025-04-07 08:25:18] Production.INFO: ProcessCDR(1,14853622,1,1,2) [2025-04-07 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853622', 'tblTempUsageDetail_20' ) start [2025-04-07 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853622', 'tblTempUsageDetail_20' ) end [2025-04-07 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:25:21] Production.INFO: ==26837== Releasing lock... [2025-04-07 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:25:21] Production.INFO: 32 MB #Memory Used# [2025-04-07 08:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:26:04 [end_date_ymd] => 2025-04-07 08:26:04 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:26:04' and `end` < '2025-04-07 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-04-07 08:26:17] Production.INFO: count ==475 [2025-04-07 08:26:17] Production.ERROR: pbx CDR StartTime 2025-04-07 05:26:04 - End Time 2025-04-07 08:26:04 [2025-04-07 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853627', 'tblTempUsageDetail_20' ) start [2025-04-07 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853627', 'tblTempUsageDetail_20' ) end [2025-04-07 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853627', 'tblTempVendorCDR_20' ) start [2025-04-07 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853627', 'tblTempVendorCDR_20' ) end [2025-04-07 08:26:17] Production.INFO: ProcessCDR(1,14853627,1,1,2) [2025-04-07 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853627', 'tblTempUsageDetail_20' ) start [2025-04-07 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853627', 'tblTempUsageDetail_20' ) end [2025-04-07 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:26:21] Production.INFO: ==26913== Releasing lock... [2025-04-07 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:26:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:27:05 [end_date_ymd] => 2025-04-07 08:27:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:27:05' and `end` < '2025-04-07 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-04-07 08:27:18] Production.INFO: count ==503 [2025-04-07 08:27:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:27:05 - End Time 2025-04-07 08:27:05 [2025-04-07 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853632', 'tblTempUsageDetail_20' ) start [2025-04-07 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853632', 'tblTempUsageDetail_20' ) end [2025-04-07 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853632', 'tblTempVendorCDR_20' ) start [2025-04-07 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853632', 'tblTempVendorCDR_20' ) end [2025-04-07 08:27:18] Production.INFO: ProcessCDR(1,14853632,1,1,2) [2025-04-07 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853632', 'tblTempUsageDetail_20' ) start [2025-04-07 08:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853632', 'tblTempUsageDetail_20' ) end [2025-04-07 08:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:27:24] Production.INFO: ==26987== Releasing lock... [2025-04-07 08:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:27:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-07 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:28:05 [end_date_ymd] => 2025-04-07 08:28:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:28:05' and `end` < '2025-04-07 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-04-07 08:28:18] Production.INFO: count ==521 [2025-04-07 08:28:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:28:05 - End Time 2025-04-07 08:28:05 [2025-04-07 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853637', 'tblTempUsageDetail_20' ) start [2025-04-07 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853637', 'tblTempUsageDetail_20' ) end [2025-04-07 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853637', 'tblTempVendorCDR_20' ) start [2025-04-07 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853637', 'tblTempVendorCDR_20' ) end [2025-04-07 08:28:18] Production.INFO: ProcessCDR(1,14853637,1,1,2) [2025-04-07 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853637', 'tblTempUsageDetail_20' ) start [2025-04-07 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853637', 'tblTempUsageDetail_20' ) end [2025-04-07 08:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:28:23] Production.INFO: ==27061== Releasing lock... [2025-04-07 08:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:28:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-07 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:29:05 [end_date_ymd] => 2025-04-07 08:29:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:29:05' and `end` < '2025-04-07 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-04-07 08:29:18] Production.INFO: count ==526 [2025-04-07 08:29:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:29:05 - End Time 2025-04-07 08:29:05 [2025-04-07 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853642', 'tblTempUsageDetail_20' ) start [2025-04-07 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853642', 'tblTempUsageDetail_20' ) end [2025-04-07 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853642', 'tblTempVendorCDR_20' ) start [2025-04-07 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853642', 'tblTempVendorCDR_20' ) end [2025-04-07 08:29:18] Production.INFO: ProcessCDR(1,14853642,1,1,2) [2025-04-07 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853642', 'tblTempUsageDetail_20' ) start [2025-04-07 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853642', 'tblTempUsageDetail_20' ) end [2025-04-07 08:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:29:23] Production.INFO: ==27137== Releasing lock... [2025-04-07 08:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:29:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-07 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:30:06 [end_date_ymd] => 2025-04-07 08:30:06 [RateCDR] => 1 ) [2025-04-07 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 05:30:06' and `end` < '2025-04-07 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 08:30:19] Production.INFO: count ==539 [2025-04-07 08:30:19] Production.ERROR: pbx CDR StartTime 2025-04-07 05:30:06 - End Time 2025-04-07 08:30:06 [2025-04-07 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853648', 'tblTempUsageDetail_20' ) start [2025-04-07 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853648', 'tblTempUsageDetail_20' ) end [2025-04-07 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853648', 'tblTempVendorCDR_20' ) start [2025-04-07 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853648', 'tblTempVendorCDR_20' ) end [2025-04-07 08:30:19] Production.INFO: ProcessCDR(1,14853648,1,1,2) [2025-04-07 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853648', 'tblTempUsageDetail_20' ) start [2025-04-07 08:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853648', 'tblTempUsageDetail_20' ) end [2025-04-07 08:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:30:25] Production.INFO: ==27218== Releasing lock... [2025-04-07 08:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:30:25] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:31:05 [end_date_ymd] => 2025-04-07 08:31:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:31:05' and `end` < '2025-04-07 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-04-07 08:31:18] Production.INFO: count ==597 [2025-04-07 08:31:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:31:05 - End Time 2025-04-07 08:31:05 [2025-04-07 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853653', 'tblTempUsageDetail_20' ) start [2025-04-07 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853653', 'tblTempUsageDetail_20' ) end [2025-04-07 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853653', 'tblTempVendorCDR_20' ) start [2025-04-07 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853653', 'tblTempVendorCDR_20' ) end [2025-04-07 08:31:18] Production.INFO: ProcessCDR(1,14853653,1,1,2) [2025-04-07 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853653', 'tblTempUsageDetail_20' ) start [2025-04-07 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853653', 'tblTempUsageDetail_20' ) end [2025-04-07 08:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:31:23] Production.INFO: ==27293== Releasing lock... [2025-04-07 08:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:31:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-07 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:32:05 [end_date_ymd] => 2025-04-07 08:32:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:32:05' and `end` < '2025-04-07 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-04-07 08:32:18] Production.INFO: count ==610 [2025-04-07 08:32:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:32:05 - End Time 2025-04-07 08:32:05 [2025-04-07 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853658', 'tblTempUsageDetail_20' ) start [2025-04-07 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853658', 'tblTempUsageDetail_20' ) end [2025-04-07 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853658', 'tblTempVendorCDR_20' ) start [2025-04-07 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853658', 'tblTempVendorCDR_20' ) end [2025-04-07 08:32:18] Production.INFO: ProcessCDR(1,14853658,1,1,2) [2025-04-07 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853658', 'tblTempUsageDetail_20' ) start [2025-04-07 08:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853658', 'tblTempUsageDetail_20' ) end [2025-04-07 08:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:32:24] Production.INFO: ==27365== Releasing lock... [2025-04-07 08:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:32:24] Production.INFO: 33.25 MB #Memory Used# [2025-04-07 08:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:33:06 [end_date_ymd] => 2025-04-07 08:33:06 [RateCDR] => 1 ) [2025-04-07 08:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 05:33:06' and `end` < '2025-04-07 08:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 08:33:18] Production.INFO: count ==619 [2025-04-07 08:33:19] Production.ERROR: pbx CDR StartTime 2025-04-07 05:33:06 - End Time 2025-04-07 08:33:06 [2025-04-07 08:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853663', 'tblTempUsageDetail_20' ) start [2025-04-07 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853663', 'tblTempUsageDetail_20' ) end [2025-04-07 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853663', 'tblTempVendorCDR_20' ) start [2025-04-07 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853663', 'tblTempVendorCDR_20' ) end [2025-04-07 08:33:19] Production.INFO: ProcessCDR(1,14853663,1,1,2) [2025-04-07 08:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853663', 'tblTempUsageDetail_20' ) start [2025-04-07 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853663', 'tblTempUsageDetail_20' ) end [2025-04-07 08:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:33:22] Production.INFO: ==27445== Releasing lock... [2025-04-07 08:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:33:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-07 08:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:34:06 [end_date_ymd] => 2025-04-07 08:34:06 [RateCDR] => 1 ) [2025-04-07 08: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-04-07 05:34:06' and `end` < '2025-04-07 08: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-04-07 08:34:18] Production.INFO: count ==625 [2025-04-07 08:34:19] Production.ERROR: pbx CDR StartTime 2025-04-07 05:34:06 - End Time 2025-04-07 08:34:06 [2025-04-07 08:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853668', 'tblTempUsageDetail_20' ) start [2025-04-07 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853668', 'tblTempUsageDetail_20' ) end [2025-04-07 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853668', 'tblTempVendorCDR_20' ) start [2025-04-07 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853668', 'tblTempVendorCDR_20' ) end [2025-04-07 08:34:19] Production.INFO: ProcessCDR(1,14853668,1,1,2) [2025-04-07 08:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853668', 'tblTempUsageDetail_20' ) start [2025-04-07 08:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853668', 'tblTempUsageDetail_20' ) end [2025-04-07 08:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:34:24] Production.INFO: ==27524== Releasing lock... [2025-04-07 08:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:34:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-07 08:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:35:04 [end_date_ymd] => 2025-04-07 08:35:04 [RateCDR] => 1 ) [2025-04-07 08: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-04-07 05:35:04' and `end` < '2025-04-07 08: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-04-07 08:35:17] Production.INFO: count ==631 [2025-04-07 08:35:17] Production.ERROR: pbx CDR StartTime 2025-04-07 05:35:04 - End Time 2025-04-07 08:35:04 [2025-04-07 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853673', 'tblTempUsageDetail_20' ) start [2025-04-07 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853673', 'tblTempUsageDetail_20' ) end [2025-04-07 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853673', 'tblTempVendorCDR_20' ) start [2025-04-07 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853673', 'tblTempVendorCDR_20' ) end [2025-04-07 08:35:17] Production.INFO: ProcessCDR(1,14853673,1,1,2) [2025-04-07 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853673', 'tblTempUsageDetail_20' ) start [2025-04-07 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853673', 'tblTempUsageDetail_20' ) end [2025-04-07 08:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:35:22] Production.INFO: ==27600== Releasing lock... [2025-04-07 08:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:35:22] Production.INFO: 33 MB #Memory Used# [2025-04-07 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:36:05 [end_date_ymd] => 2025-04-07 08:36:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:36:05' and `end` < '2025-04-07 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-04-07 08:36:18] Production.INFO: count ==632 [2025-04-07 08:36:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:36:05 - End Time 2025-04-07 08:36:05 [2025-04-07 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853678', 'tblTempUsageDetail_20' ) start [2025-04-07 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853678', 'tblTempUsageDetail_20' ) end [2025-04-07 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853678', 'tblTempVendorCDR_20' ) start [2025-04-07 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853678', 'tblTempVendorCDR_20' ) end [2025-04-07 08:36:18] Production.INFO: ProcessCDR(1,14853678,1,1,2) [2025-04-07 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853678', 'tblTempUsageDetail_20' ) start [2025-04-07 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853678', 'tblTempUsageDetail_20' ) end [2025-04-07 08:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:36:23] Production.INFO: ==27674== Releasing lock... [2025-04-07 08:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:36:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-07 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:37:05 [end_date_ymd] => 2025-04-07 08:37:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:37:05' and `end` < '2025-04-07 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-04-07 08:37:17] Production.INFO: count ==641 [2025-04-07 08:37:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:37:05 - End Time 2025-04-07 08:37:05 [2025-04-07 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853681', 'tblTempUsageDetail_20' ) start [2025-04-07 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853681', 'tblTempUsageDetail_20' ) end [2025-04-07 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853681', 'tblTempVendorCDR_20' ) start [2025-04-07 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853681', 'tblTempVendorCDR_20' ) end [2025-04-07 08:37:18] Production.INFO: ProcessCDR(1,14853681,1,1,2) [2025-04-07 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853681', 'tblTempUsageDetail_20' ) start [2025-04-07 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853681', 'tblTempUsageDetail_20' ) end [2025-04-07 08:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:37:21] Production.INFO: ==27750== Releasing lock... [2025-04-07 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:37:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-07 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:38:05 [end_date_ymd] => 2025-04-07 08:38:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:38:05' and `end` < '2025-04-07 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-04-07 08:38:18] Production.INFO: count ==646 [2025-04-07 08:38:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:38:05 - End Time 2025-04-07 08:38:05 [2025-04-07 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853688', 'tblTempUsageDetail_20' ) start [2025-04-07 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853688', 'tblTempUsageDetail_20' ) end [2025-04-07 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853688', 'tblTempVendorCDR_20' ) start [2025-04-07 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853688', 'tblTempVendorCDR_20' ) end [2025-04-07 08:38:18] Production.INFO: ProcessCDR(1,14853688,1,1,2) [2025-04-07 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853688', 'tblTempUsageDetail_20' ) start [2025-04-07 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853688', 'tblTempUsageDetail_20' ) end [2025-04-07 08:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:38:22] Production.INFO: ==27826== Releasing lock... [2025-04-07 08:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:38:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-07 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:39:05 [end_date_ymd] => 2025-04-07 08:39:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:39:05' and `end` < '2025-04-07 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-04-07 08:39:18] Production.INFO: count ==652 [2025-04-07 08:39:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:39:05 - End Time 2025-04-07 08:39:05 [2025-04-07 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853693', 'tblTempUsageDetail_20' ) start [2025-04-07 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853693', 'tblTempUsageDetail_20' ) end [2025-04-07 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853693', 'tblTempVendorCDR_20' ) start [2025-04-07 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853693', 'tblTempVendorCDR_20' ) end [2025-04-07 08:39:18] Production.INFO: ProcessCDR(1,14853693,1,1,2) [2025-04-07 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853693', 'tblTempUsageDetail_20' ) start [2025-04-07 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853693', 'tblTempUsageDetail_20' ) end [2025-04-07 08:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:39:21] Production.INFO: ==27907== Releasing lock... [2025-04-07 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:39:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-07 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:40:06 [end_date_ymd] => 2025-04-07 08:40:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:40:06' and `end` < '2025-04-07 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-04-07 08:40:19] Production.INFO: count ==666 [2025-04-07 08:40:19] Production.ERROR: pbx CDR StartTime 2025-04-07 05:40:06 - End Time 2025-04-07 08:40:06 [2025-04-07 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853699', 'tblTempUsageDetail_20' ) start [2025-04-07 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853699', 'tblTempUsageDetail_20' ) end [2025-04-07 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853699', 'tblTempVendorCDR_20' ) start [2025-04-07 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853699', 'tblTempVendorCDR_20' ) end [2025-04-07 08:40:19] Production.INFO: ProcessCDR(1,14853699,1,1,2) [2025-04-07 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853699', 'tblTempUsageDetail_20' ) start [2025-04-07 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853699', 'tblTempUsageDetail_20' ) end [2025-04-07 08:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:40:23] Production.INFO: ==28023== Releasing lock... [2025-04-07 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:40:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-07 08:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:41:06 [end_date_ymd] => 2025-04-07 08:41:06 [RateCDR] => 1 ) [2025-04-07 08:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 05:41:06' and `end` < '2025-04-07 08:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 08:41:18] Production.INFO: count ==710 [2025-04-07 08:41:19] Production.ERROR: pbx CDR StartTime 2025-04-07 05:41:06 - End Time 2025-04-07 08:41:06 [2025-04-07 08:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853704', 'tblTempUsageDetail_20' ) start [2025-04-07 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853704', 'tblTempUsageDetail_20' ) end [2025-04-07 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853704', 'tblTempVendorCDR_20' ) start [2025-04-07 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853704', 'tblTempVendorCDR_20' ) end [2025-04-07 08:41:19] Production.INFO: ProcessCDR(1,14853704,1,1,2) [2025-04-07 08:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853704', 'tblTempUsageDetail_20' ) start [2025-04-07 08:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853704', 'tblTempUsageDetail_20' ) end [2025-04-07 08:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:41:24] Production.INFO: ==28104== Releasing lock... [2025-04-07 08:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:41:24] Production.INFO: 33.75 MB #Memory Used# [2025-04-07 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:42:05 [end_date_ymd] => 2025-04-07 08:42:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:42:05' and `end` < '2025-04-07 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-04-07 08:42:18] Production.INFO: count ==719 [2025-04-07 08:42:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:42:05 - End Time 2025-04-07 08:42:05 [2025-04-07 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853709', 'tblTempUsageDetail_20' ) start [2025-04-07 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853709', 'tblTempUsageDetail_20' ) end [2025-04-07 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853709', 'tblTempVendorCDR_20' ) start [2025-04-07 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853709', 'tblTempVendorCDR_20' ) end [2025-04-07 08:42:18] Production.INFO: ProcessCDR(1,14853709,1,1,2) [2025-04-07 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853709', 'tblTempUsageDetail_20' ) start [2025-04-07 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853709', 'tblTempUsageDetail_20' ) end [2025-04-07 08:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:42:22] Production.INFO: ==28180== Releasing lock... [2025-04-07 08:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:42:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-07 08:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:43:06 [end_date_ymd] => 2025-04-07 08:43:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:43:06' and `end` < '2025-04-07 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-04-07 08:43:19] Production.INFO: count ==729 [2025-04-07 08:43:19] Production.ERROR: pbx CDR StartTime 2025-04-07 05:43:06 - End Time 2025-04-07 08:43:06 [2025-04-07 08:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853714', 'tblTempUsageDetail_20' ) start [2025-04-07 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853714', 'tblTempUsageDetail_20' ) end [2025-04-07 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853714', 'tblTempVendorCDR_20' ) start [2025-04-07 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853714', 'tblTempVendorCDR_20' ) end [2025-04-07 08:43:19] Production.INFO: ProcessCDR(1,14853714,1,1,2) [2025-04-07 08:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853714', 'tblTempUsageDetail_20' ) start [2025-04-07 08:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853714', 'tblTempUsageDetail_20' ) end [2025-04-07 08:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:43:24] Production.INFO: ==28258== Releasing lock... [2025-04-07 08:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:43:24] Production.INFO: 33.75 MB #Memory Used# [2025-04-07 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:44:05 [end_date_ymd] => 2025-04-07 08:44:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:44:05' and `end` < '2025-04-07 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-04-07 08:44:18] Production.INFO: count ==745 [2025-04-07 08:44:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:44:05 - End Time 2025-04-07 08:44:05 [2025-04-07 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853719', 'tblTempUsageDetail_20' ) start [2025-04-07 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853719', 'tblTempUsageDetail_20' ) end [2025-04-07 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853719', 'tblTempVendorCDR_20' ) start [2025-04-07 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853719', 'tblTempVendorCDR_20' ) end [2025-04-07 08:44:18] Production.INFO: ProcessCDR(1,14853719,1,1,2) [2025-04-07 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853719', 'tblTempUsageDetail_20' ) start [2025-04-07 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853719', 'tblTempUsageDetail_20' ) end [2025-04-07 08:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:44:23] Production.INFO: ==28342== Releasing lock... [2025-04-07 08:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:44:23] Production.INFO: 34 MB #Memory Used# [2025-04-07 08:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:45:06 [end_date_ymd] => 2025-04-07 08:45:06 [RateCDR] => 1 ) [2025-04-07 08:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 05:45:06' and `end` < '2025-04-07 08:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 08:45:19] Production.INFO: count ==758 [2025-04-07 08:45:19] Production.ERROR: pbx CDR StartTime 2025-04-07 05:45:06 - End Time 2025-04-07 08:45:06 [2025-04-07 08:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853724', 'tblTempUsageDetail_20' ) start [2025-04-07 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853724', 'tblTempUsageDetail_20' ) end [2025-04-07 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853724', 'tblTempVendorCDR_20' ) start [2025-04-07 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853724', 'tblTempVendorCDR_20' ) end [2025-04-07 08:45:19] Production.INFO: ProcessCDR(1,14853724,1,1,2) [2025-04-07 08:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853724', 'tblTempUsageDetail_20' ) start [2025-04-07 08:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853724', 'tblTempUsageDetail_20' ) end [2025-04-07 08:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:45:24] Production.INFO: ==28443== Releasing lock... [2025-04-07 08:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:45:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-07 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:46:05 [end_date_ymd] => 2025-04-07 08:46:05 [RateCDR] => 1 ) [2025-04-07 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 05:46:05' and `end` < '2025-04-07 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 08:46:18] Production.INFO: count ==766 [2025-04-07 08:46:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:46:05 - End Time 2025-04-07 08:46:05 [2025-04-07 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853729', 'tblTempUsageDetail_20' ) start [2025-04-07 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853729', 'tblTempUsageDetail_20' ) end [2025-04-07 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853729', 'tblTempVendorCDR_20' ) start [2025-04-07 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853729', 'tblTempVendorCDR_20' ) end [2025-04-07 08:46:18] Production.INFO: ProcessCDR(1,14853729,1,1,2) [2025-04-07 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853729', 'tblTempUsageDetail_20' ) start [2025-04-07 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853729', 'tblTempUsageDetail_20' ) end [2025-04-07 08:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:46:21] Production.INFO: ==28538== Releasing lock... [2025-04-07 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:46:21] Production.INFO: 34 MB #Memory Used# [2025-04-07 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:47:05 [end_date_ymd] => 2025-04-07 08:47:05 [RateCDR] => 1 ) [2025-04-07 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 05:47:05' and `end` < '2025-04-07 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 08:47:18] Production.INFO: count ==778 [2025-04-07 08:47:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:47:05 - End Time 2025-04-07 08:47:05 [2025-04-07 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853734', 'tblTempUsageDetail_20' ) start [2025-04-07 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853734', 'tblTempUsageDetail_20' ) end [2025-04-07 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853734', 'tblTempVendorCDR_20' ) start [2025-04-07 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853734', 'tblTempVendorCDR_20' ) end [2025-04-07 08:47:18] Production.INFO: ProcessCDR(1,14853734,1,1,2) [2025-04-07 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853734', 'tblTempUsageDetail_20' ) start [2025-04-07 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853734', 'tblTempUsageDetail_20' ) end [2025-04-07 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:47:21] Production.INFO: ==28631== Releasing lock... [2025-04-07 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:47:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-07 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:48:05 [end_date_ymd] => 2025-04-07 08:48:05 [RateCDR] => 1 ) [2025-04-07 08:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 05:48:05' and `end` < '2025-04-07 08:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 08:48:18] Production.INFO: count ==784 [2025-04-07 08:48:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:48:05 - End Time 2025-04-07 08:48:05 [2025-04-07 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853739', 'tblTempUsageDetail_20' ) start [2025-04-07 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853739', 'tblTempUsageDetail_20' ) end [2025-04-07 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853739', 'tblTempVendorCDR_20' ) start [2025-04-07 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853739', 'tblTempVendorCDR_20' ) end [2025-04-07 08:48:18] Production.INFO: ProcessCDR(1,14853739,1,1,2) [2025-04-07 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853739', 'tblTempUsageDetail_20' ) start [2025-04-07 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853739', 'tblTempUsageDetail_20' ) end [2025-04-07 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:48:23] Production.INFO: ==28733== Releasing lock... [2025-04-07 08:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:48:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-07 08:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:49:06 [end_date_ymd] => 2025-04-07 08:49:06 [RateCDR] => 1 ) [2025-04-07 08: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-04-07 05:49:06' and `end` < '2025-04-07 08: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-04-07 08:49:19] Production.INFO: count ==791 [2025-04-07 08:49:19] Production.ERROR: pbx CDR StartTime 2025-04-07 05:49:06 - End Time 2025-04-07 08:49:06 [2025-04-07 08:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853744', 'tblTempUsageDetail_20' ) start [2025-04-07 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853744', 'tblTempUsageDetail_20' ) end [2025-04-07 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853744', 'tblTempVendorCDR_20' ) start [2025-04-07 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853744', 'tblTempVendorCDR_20' ) end [2025-04-07 08:49:19] Production.INFO: ProcessCDR(1,14853744,1,1,2) [2025-04-07 08:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853744', 'tblTempUsageDetail_20' ) start [2025-04-07 08:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853744', 'tblTempUsageDetail_20' ) end [2025-04-07 08:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:49:24] Production.INFO: ==28833== Releasing lock... [2025-04-07 08:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:49:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-07 08:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:50:05 [end_date_ymd] => 2025-04-07 08:50:05 [RateCDR] => 1 ) [2025-04-07 08:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 05:50:05' and `end` < '2025-04-07 08:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 08:50:18] Production.INFO: count ==813 [2025-04-07 08:50:19] Production.ERROR: pbx CDR StartTime 2025-04-07 05:50:05 - End Time 2025-04-07 08:50:05 [2025-04-07 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853750', 'tblTempUsageDetail_20' ) start [2025-04-07 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853750', 'tblTempUsageDetail_20' ) end [2025-04-07 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853750', 'tblTempVendorCDR_20' ) start [2025-04-07 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853750', 'tblTempVendorCDR_20' ) end [2025-04-07 08:50:19] Production.INFO: ProcessCDR(1,14853750,1,1,2) [2025-04-07 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853750', 'tblTempUsageDetail_20' ) start [2025-04-07 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853750', 'tblTempUsageDetail_20' ) end [2025-04-07 08:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:50:24] Production.INFO: ==28930== Releasing lock... [2025-04-07 08:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:50:24] Production.INFO: 34 MB #Memory Used# [2025-04-07 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:51:05 [end_date_ymd] => 2025-04-07 08:51:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:51:05' and `end` < '2025-04-07 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-04-07 08:51:18] Production.INFO: count ==832 [2025-04-07 08:51:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:51:05 - End Time 2025-04-07 08:51:05 [2025-04-07 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853755', 'tblTempUsageDetail_20' ) start [2025-04-07 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853755', 'tblTempUsageDetail_20' ) end [2025-04-07 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853755', 'tblTempVendorCDR_20' ) start [2025-04-07 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853755', 'tblTempVendorCDR_20' ) end [2025-04-07 08:51:18] Production.INFO: ProcessCDR(1,14853755,1,1,2) [2025-04-07 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853755', 'tblTempUsageDetail_20' ) start [2025-04-07 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853755', 'tblTempUsageDetail_20' ) end [2025-04-07 08:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:51:22] Production.INFO: ==29026== Releasing lock... [2025-04-07 08:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:51:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-07 08:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:52:06 [end_date_ymd] => 2025-04-07 08:52:06 [RateCDR] => 1 ) [2025-04-07 08: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-04-07 05:52:06' and `end` < '2025-04-07 08: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-04-07 08:52:19] Production.INFO: count ==845 [2025-04-07 08:52:19] Production.ERROR: pbx CDR StartTime 2025-04-07 05:52:06 - End Time 2025-04-07 08:52:06 [2025-04-07 08:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853760', 'tblTempUsageDetail_20' ) start [2025-04-07 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853760', 'tblTempUsageDetail_20' ) end [2025-04-07 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853760', 'tblTempVendorCDR_20' ) start [2025-04-07 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853760', 'tblTempVendorCDR_20' ) end [2025-04-07 08:52:19] Production.INFO: ProcessCDR(1,14853760,1,1,2) [2025-04-07 08:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853760', 'tblTempUsageDetail_20' ) start [2025-04-07 08:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853760', 'tblTempUsageDetail_20' ) end [2025-04-07 08:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:52:25] Production.INFO: ==29132== Releasing lock... [2025-04-07 08:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:52:25] Production.INFO: 34.25 MB #Memory Used# [2025-04-07 08:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:53:06 [end_date_ymd] => 2025-04-07 08:53:06 [RateCDR] => 1 ) [2025-04-07 08: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-04-07 05:53:06' and `end` < '2025-04-07 08: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-04-07 08:53:19] Production.INFO: count ==845 [2025-04-07 08:53:19] Production.ERROR: pbx CDR StartTime 2025-04-07 05:53:06 - End Time 2025-04-07 08:53:06 [2025-04-07 08:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853765', 'tblTempUsageDetail_20' ) start [2025-04-07 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853765', 'tblTempUsageDetail_20' ) end [2025-04-07 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853765', 'tblTempVendorCDR_20' ) start [2025-04-07 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853765', 'tblTempVendorCDR_20' ) end [2025-04-07 08:53:19] Production.INFO: ProcessCDR(1,14853765,1,1,2) [2025-04-07 08:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853765', 'tblTempUsageDetail_20' ) start [2025-04-07 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853765', 'tblTempUsageDetail_20' ) end [2025-04-07 08:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:53:23] Production.INFO: ==29230== Releasing lock... [2025-04-07 08:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:53:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-07 08:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:54:06 [end_date_ymd] => 2025-04-07 08:54:06 [RateCDR] => 1 ) [2025-04-07 08: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-04-07 05:54:06' and `end` < '2025-04-07 08: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-04-07 08:54:19] Production.INFO: count ==851 [2025-04-07 08:54:19] Production.ERROR: pbx CDR StartTime 2025-04-07 05:54:06 - End Time 2025-04-07 08:54:06 [2025-04-07 08:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853770', 'tblTempUsageDetail_20' ) start [2025-04-07 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853770', 'tblTempUsageDetail_20' ) end [2025-04-07 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853770', 'tblTempVendorCDR_20' ) start [2025-04-07 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853770', 'tblTempVendorCDR_20' ) end [2025-04-07 08:54:19] Production.INFO: ProcessCDR(1,14853770,1,1,2) [2025-04-07 08:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853770', 'tblTempUsageDetail_20' ) start [2025-04-07 08:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853770', 'tblTempUsageDetail_20' ) end [2025-04-07 08:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:54:25] Production.INFO: ==29334== Releasing lock... [2025-04-07 08:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:54:25] Production.INFO: 34.5 MB #Memory Used# [2025-04-07 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:55:05 [end_date_ymd] => 2025-04-07 08:55:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:55:05' and `end` < '2025-04-07 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-04-07 08:55:18] Production.INFO: count ==865 [2025-04-07 08:55:19] Production.ERROR: pbx CDR StartTime 2025-04-07 05:55:05 - End Time 2025-04-07 08:55:05 [2025-04-07 08:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853775', 'tblTempUsageDetail_20' ) start [2025-04-07 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853775', 'tblTempUsageDetail_20' ) end [2025-04-07 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853775', 'tblTempVendorCDR_20' ) start [2025-04-07 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853775', 'tblTempVendorCDR_20' ) end [2025-04-07 08:55:19] Production.INFO: ProcessCDR(1,14853775,1,1,2) [2025-04-07 08:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853775', 'tblTempUsageDetail_20' ) start [2025-04-07 08:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853775', 'tblTempUsageDetail_20' ) end [2025-04-07 08:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:55:25] Production.INFO: ==29469== Releasing lock... [2025-04-07 08:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:55:25] Production.INFO: 34.5 MB #Memory Used# [2025-04-07 08:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:56:06 [end_date_ymd] => 2025-04-07 08:56:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:56:06' and `end` < '2025-04-07 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-04-07 08:56:19] Production.INFO: count ==869 [2025-04-07 08:56:19] Production.ERROR: pbx CDR StartTime 2025-04-07 05:56:06 - End Time 2025-04-07 08:56:06 [2025-04-07 08:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853780', 'tblTempUsageDetail_20' ) start [2025-04-07 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853780', 'tblTempUsageDetail_20' ) end [2025-04-07 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853780', 'tblTempVendorCDR_20' ) start [2025-04-07 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853780', 'tblTempVendorCDR_20' ) end [2025-04-07 08:56:19] Production.INFO: ProcessCDR(1,14853780,1,1,2) [2025-04-07 08:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853780', 'tblTempUsageDetail_20' ) start [2025-04-07 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853780', 'tblTempUsageDetail_20' ) end [2025-04-07 08:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:56:24] Production.INFO: ==29567== Releasing lock... [2025-04-07 08:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:56:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-07 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:57:05 [end_date_ymd] => 2025-04-07 08:57:05 [RateCDR] => 1 ) [2025-04-07 08: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-04-07 05:57:05' and `end` < '2025-04-07 08: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-04-07 08:57:18] Production.INFO: count ==884 [2025-04-07 08:57:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:57:05 - End Time 2025-04-07 08:57:05 [2025-04-07 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853785', 'tblTempUsageDetail_20' ) start [2025-04-07 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853785', 'tblTempUsageDetail_20' ) end [2025-04-07 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853785', 'tblTempVendorCDR_20' ) start [2025-04-07 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853785', 'tblTempVendorCDR_20' ) end [2025-04-07 08:57:18] Production.INFO: ProcessCDR(1,14853785,1,1,2) [2025-04-07 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853785', 'tblTempUsageDetail_20' ) start [2025-04-07 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853785', 'tblTempUsageDetail_20' ) end [2025-04-07 08:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:57:22] Production.INFO: ==29666== Releasing lock... [2025-04-07 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:57:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-07 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:58:05 [end_date_ymd] => 2025-04-07 08:58:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 05:58:05' and `end` < '2025-04-07 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-04-07 08:58:18] Production.INFO: count ==892 [2025-04-07 08:58:19] Production.ERROR: pbx CDR StartTime 2025-04-07 05:58:05 - End Time 2025-04-07 08:58:05 [2025-04-07 08:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853790', 'tblTempUsageDetail_20' ) start [2025-04-07 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853790', 'tblTempUsageDetail_20' ) end [2025-04-07 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853790', 'tblTempVendorCDR_20' ) start [2025-04-07 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853790', 'tblTempVendorCDR_20' ) end [2025-04-07 08:58:19] Production.INFO: ProcessCDR(1,14853790,1,1,2) [2025-04-07 08:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853790', 'tblTempUsageDetail_20' ) start [2025-04-07 08:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853790', 'tblTempUsageDetail_20' ) end [2025-04-07 08:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:58:24] Production.INFO: ==29789== Releasing lock... [2025-04-07 08:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:58:24] Production.INFO: 34.5 MB #Memory Used# [2025-04-07 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 05:59:05 [end_date_ymd] => 2025-04-07 08:59:05 [RateCDR] => 1 ) [2025-04-07 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 05:59:05' and `end` < '2025-04-07 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 08:59:18] Production.INFO: count ==906 [2025-04-07 08:59:18] Production.ERROR: pbx CDR StartTime 2025-04-07 05:59:05 - End Time 2025-04-07 08:59:05 [2025-04-07 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853795', 'tblTempUsageDetail_20' ) start [2025-04-07 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853795', 'tblTempUsageDetail_20' ) end [2025-04-07 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853795', 'tblTempVendorCDR_20' ) start [2025-04-07 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853795', 'tblTempVendorCDR_20' ) end [2025-04-07 08:59:18] Production.INFO: ProcessCDR(1,14853795,1,1,2) [2025-04-07 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853795', 'tblTempUsageDetail_20' ) start [2025-04-07 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853795', 'tblTempUsageDetail_20' ) end [2025-04-07 08:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 08:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 08:59:22] Production.INFO: ==29911== Releasing lock... [2025-04-07 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 08:59:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-07 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:00:06 [end_date_ymd] => 2025-04-07 09:00:06 [RateCDR] => 1 ) [2025-04-07 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 06:00:06' and `end` < '2025-04-07 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 09:00:19] Production.INFO: count ==934 [2025-04-07 09:00:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:00:06 - End Time 2025-04-07 09:00:06 [2025-04-07 09:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853800', 'tblTempUsageDetail_20' ) start [2025-04-07 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853800', 'tblTempUsageDetail_20' ) end [2025-04-07 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853800', 'tblTempVendorCDR_20' ) start [2025-04-07 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853800', 'tblTempVendorCDR_20' ) end [2025-04-07 09:00:20] Production.INFO: ProcessCDR(1,14853800,1,1,2) [2025-04-07 09:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853800', 'tblTempUsageDetail_20' ) start [2025-04-07 09:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853800', 'tblTempUsageDetail_20' ) end [2025-04-07 09:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:00:25] Production.INFO: ==30038== Releasing lock... [2025-04-07 09:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:00:25] Production.INFO: 35.25 MB #Memory Used# [2025-04-07 09:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:01:04 [end_date_ymd] => 2025-04-07 09:01:04 [RateCDR] => 1 ) [2025-04-07 09:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 06:01:04' and `end` < '2025-04-07 09:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 09:01:17] Production.INFO: count ==1001 [2025-04-07 09:01:18] Production.ERROR: pbx CDR StartTime 2025-04-07 06:01:04 - End Time 2025-04-07 09:01:04 [2025-04-07 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853806', 'tblTempUsageDetail_20' ) start [2025-04-07 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853806', 'tblTempUsageDetail_20' ) end [2025-04-07 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853806', 'tblTempVendorCDR_20' ) start [2025-04-07 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853806', 'tblTempVendorCDR_20' ) end [2025-04-07 09:01:18] Production.INFO: ProcessCDR(1,14853806,1,1,2) [2025-04-07 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853806', 'tblTempUsageDetail_20' ) start [2025-04-07 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853806', 'tblTempUsageDetail_20' ) end [2025-04-07 09:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:01:23] Production.INFO: ==30183== Releasing lock... [2025-04-07 09:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:01:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-07 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:02:05 [end_date_ymd] => 2025-04-07 09:02:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 06:02:05' and `end` < '2025-04-07 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-04-07 09:02:18] Production.INFO: count ==1013 [2025-04-07 09:02:19] Production.ERROR: pbx CDR StartTime 2025-04-07 06:02:05 - End Time 2025-04-07 09:02:05 [2025-04-07 09:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853811', 'tblTempUsageDetail_20' ) start [2025-04-07 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853811', 'tblTempUsageDetail_20' ) end [2025-04-07 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853811', 'tblTempVendorCDR_20' ) start [2025-04-07 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853811', 'tblTempVendorCDR_20' ) end [2025-04-07 09:02:19] Production.INFO: ProcessCDR(1,14853811,1,1,2) [2025-04-07 09:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853811', 'tblTempUsageDetail_20' ) start [2025-04-07 09:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853811', 'tblTempUsageDetail_20' ) end [2025-04-07 09:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:02:25] Production.INFO: ==30307== Releasing lock... [2025-04-07 09:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:02:25] Production.INFO: 36 MB #Memory Used# [2025-04-07 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:03:05 [end_date_ymd] => 2025-04-07 09:03:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 06:03:05' and `end` < '2025-04-07 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-04-07 09:03:18] Production.INFO: count ==1024 [2025-04-07 09:03:19] Production.ERROR: pbx CDR StartTime 2025-04-07 06:03:05 - End Time 2025-04-07 09:03:05 [2025-04-07 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853816', 'tblTempUsageDetail_20' ) start [2025-04-07 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853816', 'tblTempUsageDetail_20' ) end [2025-04-07 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853816', 'tblTempVendorCDR_20' ) start [2025-04-07 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853816', 'tblTempVendorCDR_20' ) end [2025-04-07 09:03:19] Production.INFO: ProcessCDR(1,14853816,1,1,2) [2025-04-07 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853816', 'tblTempUsageDetail_20' ) start [2025-04-07 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853816', 'tblTempUsageDetail_20' ) end [2025-04-07 09:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:03:23] Production.INFO: ==30430== Releasing lock... [2025-04-07 09:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:03:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-07 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:04:05 [end_date_ymd] => 2025-04-07 09:04:05 [RateCDR] => 1 ) [2025-04-07 09: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-04-07 06:04:05' and `end` < '2025-04-07 09: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-04-07 09:04:19] Production.INFO: count ==1033 [2025-04-07 09:04:19] Production.ERROR: pbx CDR StartTime 2025-04-07 06:04:05 - End Time 2025-04-07 09:04:05 [2025-04-07 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853821', 'tblTempUsageDetail_20' ) start [2025-04-07 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853821', 'tblTempUsageDetail_20' ) end [2025-04-07 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853821', 'tblTempVendorCDR_20' ) start [2025-04-07 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853821', 'tblTempVendorCDR_20' ) end [2025-04-07 09:04:19] Production.INFO: ProcessCDR(1,14853821,1,1,2) [2025-04-07 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853821', 'tblTempUsageDetail_20' ) start [2025-04-07 09:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853821', 'tblTempUsageDetail_20' ) end [2025-04-07 09:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:04:25] Production.INFO: ==30550== Releasing lock... [2025-04-07 09:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:04:25] Production.INFO: 36 MB #Memory Used# [2025-04-07 09:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:05:06 [end_date_ymd] => 2025-04-07 09:05:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 06:05:06' and `end` < '2025-04-07 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-04-07 09:05:19] Production.INFO: count ==1050 [2025-04-07 09:05:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:05:06 - End Time 2025-04-07 09:05:06 [2025-04-07 09:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853826', 'tblTempUsageDetail_20' ) start [2025-04-07 09:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853826', 'tblTempUsageDetail_20' ) end [2025-04-07 09:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853826', 'tblTempVendorCDR_20' ) start [2025-04-07 09:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853826', 'tblTempVendorCDR_20' ) end [2025-04-07 09:05:20] Production.INFO: ProcessCDR(1,14853826,1,1,2) [2025-04-07 09:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853826', 'tblTempUsageDetail_20' ) start [2025-04-07 09:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853826', 'tblTempUsageDetail_20' ) end [2025-04-07 09:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:05:26] Production.INFO: ==30673== Releasing lock... [2025-04-07 09:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:05:26] Production.INFO: 36 MB #Memory Used# [2025-04-07 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:06:05 [end_date_ymd] => 2025-04-07 09:06:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 06:06:05' and `end` < '2025-04-07 09:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 09:06:19] Production.INFO: count ==1076 [2025-04-07 09:06:19] Production.ERROR: pbx CDR StartTime 2025-04-07 06:06:05 - End Time 2025-04-07 09:06:05 [2025-04-07 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853831', 'tblTempUsageDetail_20' ) start [2025-04-07 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853831', 'tblTempUsageDetail_20' ) end [2025-04-07 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853831', 'tblTempVendorCDR_20' ) start [2025-04-07 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853831', 'tblTempVendorCDR_20' ) end [2025-04-07 09:06:19] Production.INFO: ProcessCDR(1,14853831,1,1,2) [2025-04-07 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853831', 'tblTempUsageDetail_20' ) start [2025-04-07 09:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853831', 'tblTempUsageDetail_20' ) end [2025-04-07 09:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:06:25] Production.INFO: ==30810== Releasing lock... [2025-04-07 09:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:06:25] Production.INFO: 36.5 MB #Memory Used# [2025-04-07 09:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:07:06 [end_date_ymd] => 2025-04-07 09:07:06 [RateCDR] => 1 ) [2025-04-07 09:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 06:07:06' and `end` < '2025-04-07 09:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 09:07:19] Production.INFO: count ==1104 [2025-04-07 09:07:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:07:06 - End Time 2025-04-07 09:07:06 [2025-04-07 09:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853836', 'tblTempUsageDetail_20' ) start [2025-04-07 09:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853836', 'tblTempUsageDetail_20' ) end [2025-04-07 09:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853836', 'tblTempVendorCDR_20' ) start [2025-04-07 09:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853836', 'tblTempVendorCDR_20' ) end [2025-04-07 09:07:20] Production.INFO: ProcessCDR(1,14853836,1,1,2) [2025-04-07 09:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853836', 'tblTempUsageDetail_20' ) start [2025-04-07 09:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853836', 'tblTempUsageDetail_20' ) end [2025-04-07 09:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:07:26] Production.INFO: ==30932== Releasing lock... [2025-04-07 09:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:07:26] Production.INFO: 36.25 MB #Memory Used# [2025-04-07 09:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:08:06 [end_date_ymd] => 2025-04-07 09:08:06 [RateCDR] => 1 ) [2025-04-07 09: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-04-07 06:08:06' and `end` < '2025-04-07 09: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-04-07 09:08:19] Production.INFO: count ==1134 [2025-04-07 09:08:19] Production.ERROR: pbx CDR StartTime 2025-04-07 06:08:06 - End Time 2025-04-07 09:08:06 [2025-04-07 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853841', 'tblTempUsageDetail_20' ) start [2025-04-07 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853841', 'tblTempUsageDetail_20' ) end [2025-04-07 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853841', 'tblTempVendorCDR_20' ) start [2025-04-07 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853841', 'tblTempVendorCDR_20' ) end [2025-04-07 09:08:19] Production.INFO: ProcessCDR(1,14853841,1,1,2) [2025-04-07 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853841', 'tblTempUsageDetail_20' ) start [2025-04-07 09:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853841', 'tblTempUsageDetail_20' ) end [2025-04-07 09:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:08:26] Production.INFO: ==31033== Releasing lock... [2025-04-07 09:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:08:26] Production.INFO: 36.75 MB #Memory Used# [2025-04-07 09:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:09:06 [end_date_ymd] => 2025-04-07 09:09:06 [RateCDR] => 1 ) [2025-04-07 09:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 06:09:06' and `end` < '2025-04-07 09:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 09:09:20] Production.INFO: count ==1159 [2025-04-07 09:09:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:09:06 - End Time 2025-04-07 09:09:06 [2025-04-07 09:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853846', 'tblTempUsageDetail_20' ) start [2025-04-07 09:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853846', 'tblTempUsageDetail_20' ) end [2025-04-07 09:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853846', 'tblTempVendorCDR_20' ) start [2025-04-07 09:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853846', 'tblTempVendorCDR_20' ) end [2025-04-07 09:09:20] Production.INFO: ProcessCDR(1,14853846,1,1,2) [2025-04-07 09:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853846', 'tblTempUsageDetail_20' ) start [2025-04-07 09:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853846', 'tblTempUsageDetail_20' ) end [2025-04-07 09:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:09:27] Production.INFO: ==31136== Releasing lock... [2025-04-07 09:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:09:27] Production.INFO: 37 MB #Memory Used# [2025-04-07 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:10:06 [end_date_ymd] => 2025-04-07 09:10:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 06:10:06' and `end` < '2025-04-07 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-04-07 09:10:19] Production.INFO: count ==1225 [2025-04-07 09:10:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:10:06 - End Time 2025-04-07 09:10:06 [2025-04-07 09:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853852', 'tblTempUsageDetail_20' ) start [2025-04-07 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853852', 'tblTempUsageDetail_20' ) end [2025-04-07 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853852', 'tblTempVendorCDR_20' ) start [2025-04-07 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853852', 'tblTempVendorCDR_20' ) end [2025-04-07 09:10:20] Production.INFO: ProcessCDR(1,14853852,1,1,2) [2025-04-07 09:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853852', 'tblTempUsageDetail_20' ) start [2025-04-07 09:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853852', 'tblTempUsageDetail_20' ) end [2025-04-07 09:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:10:26] Production.INFO: ==31240== Releasing lock... [2025-04-07 09:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:10:26] Production.INFO: 37.25 MB #Memory Used# [2025-04-07 09:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:11:06 [end_date_ymd] => 2025-04-07 09:11:06 [RateCDR] => 1 ) [2025-04-07 09: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-04-07 06:11:06' and `end` < '2025-04-07 09: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-04-07 09:11:19] Production.INFO: count ==1299 [2025-04-07 09:11:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:11:06 - End Time 2025-04-07 09:11:06 [2025-04-07 09:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853857', 'tblTempUsageDetail_20' ) start [2025-04-07 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853857', 'tblTempUsageDetail_20' ) end [2025-04-07 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853857', 'tblTempVendorCDR_20' ) start [2025-04-07 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853857', 'tblTempVendorCDR_20' ) end [2025-04-07 09:11:20] Production.INFO: ProcessCDR(1,14853857,1,1,2) [2025-04-07 09:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853857', 'tblTempUsageDetail_20' ) start [2025-04-07 09:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853857', 'tblTempUsageDetail_20' ) end [2025-04-07 09:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:11:26] Production.INFO: ==31377== Releasing lock... [2025-04-07 09:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:11:26] Production.INFO: 37.75 MB #Memory Used# [2025-04-07 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:12:06 [end_date_ymd] => 2025-04-07 09:12:06 [RateCDR] => 1 ) [2025-04-07 09: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-04-07 06:12:06' and `end` < '2025-04-07 09: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-04-07 09:12:19] Production.INFO: count ==1326 [2025-04-07 09:12:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:12:06 - End Time 2025-04-07 09:12:06 [2025-04-07 09:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853862', 'tblTempUsageDetail_20' ) start [2025-04-07 09:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853862', 'tblTempUsageDetail_20' ) end [2025-04-07 09:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853862', 'tblTempVendorCDR_20' ) start [2025-04-07 09:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853862', 'tblTempVendorCDR_20' ) end [2025-04-07 09:12:20] Production.INFO: ProcessCDR(1,14853862,1,1,2) [2025-04-07 09:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853862', 'tblTempUsageDetail_20' ) start [2025-04-07 09:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853862', 'tblTempUsageDetail_20' ) end [2025-04-07 09:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:12:26] Production.INFO: ==31471== Releasing lock... [2025-04-07 09:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:12:26] Production.INFO: 38 MB #Memory Used# [2025-04-07 09:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:13:06 [end_date_ymd] => 2025-04-07 09:13:06 [RateCDR] => 1 ) [2025-04-07 09:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 06:13:06' and `end` < '2025-04-07 09:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 09:13:19] Production.INFO: count ==1344 [2025-04-07 09:13:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:13:06 - End Time 2025-04-07 09:13:06 [2025-04-07 09:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853867', 'tblTempUsageDetail_20' ) start [2025-04-07 09:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853867', 'tblTempUsageDetail_20' ) end [2025-04-07 09:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853867', 'tblTempVendorCDR_20' ) start [2025-04-07 09:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853867', 'tblTempVendorCDR_20' ) end [2025-04-07 09:13:20] Production.INFO: ProcessCDR(1,14853867,1,1,2) [2025-04-07 09:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853867', 'tblTempUsageDetail_20' ) start [2025-04-07 09:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853867', 'tblTempUsageDetail_20' ) end [2025-04-07 09:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:13:26] Production.INFO: ==31566== Releasing lock... [2025-04-07 09:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:13:26] Production.INFO: 38.25 MB #Memory Used# [2025-04-07 09:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:14:06 [end_date_ymd] => 2025-04-07 09:14:06 [RateCDR] => 1 ) [2025-04-07 09: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-04-07 06:14:06' and `end` < '2025-04-07 09: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-04-07 09:14:19] Production.INFO: count ==1368 [2025-04-07 09:14:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:14:06 - End Time 2025-04-07 09:14:06 [2025-04-07 09:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853872', 'tblTempUsageDetail_20' ) start [2025-04-07 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853872', 'tblTempUsageDetail_20' ) end [2025-04-07 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853872', 'tblTempVendorCDR_20' ) start [2025-04-07 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853872', 'tblTempVendorCDR_20' ) end [2025-04-07 09:14:20] Production.INFO: ProcessCDR(1,14853872,1,1,2) [2025-04-07 09:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853872', 'tblTempUsageDetail_20' ) start [2025-04-07 09:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853872', 'tblTempUsageDetail_20' ) end [2025-04-07 09:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:14:26] Production.INFO: ==31659== Releasing lock... [2025-04-07 09:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:14:26] Production.INFO: 38.25 MB #Memory Used# [2025-04-07 09:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:15:06 [end_date_ymd] => 2025-04-07 09:15:06 [RateCDR] => 1 ) [2025-04-07 09:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 06:15:06' and `end` < '2025-04-07 09:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 09:15:19] Production.INFO: count ==1396 [2025-04-07 09:15:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:15:06 - End Time 2025-04-07 09:15:06 [2025-04-07 09:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853877', 'tblTempUsageDetail_20' ) start [2025-04-07 09:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853877', 'tblTempUsageDetail_20' ) end [2025-04-07 09:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853877', 'tblTempVendorCDR_20' ) start [2025-04-07 09:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853877', 'tblTempVendorCDR_20' ) end [2025-04-07 09:15:20] Production.INFO: ProcessCDR(1,14853877,1,1,2) [2025-04-07 09:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853877', 'tblTempUsageDetail_20' ) start [2025-04-07 09:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853877', 'tblTempUsageDetail_20' ) end [2025-04-07 09:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:15:26] Production.INFO: ==31748== Releasing lock... [2025-04-07 09:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:15:26] Production.INFO: 38.75 MB #Memory Used# [2025-04-07 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:16:05 [end_date_ymd] => 2025-04-07 09:16:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 06:16:05' and `end` < '2025-04-07 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-04-07 09:16:18] Production.INFO: count ==1424 [2025-04-07 09:16:19] Production.ERROR: pbx CDR StartTime 2025-04-07 06:16:05 - End Time 2025-04-07 09:16:05 [2025-04-07 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853882', 'tblTempUsageDetail_20' ) start [2025-04-07 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853882', 'tblTempUsageDetail_20' ) end [2025-04-07 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853882', 'tblTempVendorCDR_20' ) start [2025-04-07 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853882', 'tblTempVendorCDR_20' ) end [2025-04-07 09:16:19] Production.INFO: ProcessCDR(1,14853882,1,1,2) [2025-04-07 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853882', 'tblTempUsageDetail_20' ) start [2025-04-07 09:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853882', 'tblTempUsageDetail_20' ) end [2025-04-07 09:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:16:25] Production.INFO: ==31841== Releasing lock... [2025-04-07 09:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:16:25] Production.INFO: 38.75 MB #Memory Used# [2025-04-07 09:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:17:06 [end_date_ymd] => 2025-04-07 09:17:06 [RateCDR] => 1 ) [2025-04-07 09:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 06:17:06' and `end` < '2025-04-07 09:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 09:17:19] Production.INFO: count ==1432 [2025-04-07 09:17:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:17:06 - End Time 2025-04-07 09:17:06 [2025-04-07 09:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853887', 'tblTempUsageDetail_20' ) start [2025-04-07 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853887', 'tblTempUsageDetail_20' ) end [2025-04-07 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853887', 'tblTempVendorCDR_20' ) start [2025-04-07 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853887', 'tblTempVendorCDR_20' ) end [2025-04-07 09:17:20] Production.INFO: ProcessCDR(1,14853887,1,1,2) [2025-04-07 09:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853887', 'tblTempUsageDetail_20' ) start [2025-04-07 09:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853887', 'tblTempUsageDetail_20' ) end [2025-04-07 09:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:17:26] Production.INFO: ==31914== Releasing lock... [2025-04-07 09:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:17:26] Production.INFO: 39 MB #Memory Used# [2025-04-07 09:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:18:06 [end_date_ymd] => 2025-04-07 09:18:06 [RateCDR] => 1 ) [2025-04-07 09: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-04-07 06:18:06' and `end` < '2025-04-07 09: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-04-07 09:18:19] Production.INFO: count ==1455 [2025-04-07 09:18:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:18:06 - End Time 2025-04-07 09:18:06 [2025-04-07 09:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853892', 'tblTempUsageDetail_20' ) start [2025-04-07 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853892', 'tblTempUsageDetail_20' ) end [2025-04-07 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853892', 'tblTempVendorCDR_20' ) start [2025-04-07 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853892', 'tblTempVendorCDR_20' ) end [2025-04-07 09:18:20] Production.INFO: ProcessCDR(1,14853892,1,1,2) [2025-04-07 09:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853892', 'tblTempUsageDetail_20' ) start [2025-04-07 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853892', 'tblTempUsageDetail_20' ) end [2025-04-07 09:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:18:24] Production.INFO: ==31996== Releasing lock... [2025-04-07 09:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:18:24] Production.INFO: 39 MB #Memory Used# [2025-04-07 09:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:19:06 [end_date_ymd] => 2025-04-07 09:19:06 [RateCDR] => 1 ) [2025-04-07 09: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-04-07 06:19:06' and `end` < '2025-04-07 09: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-04-07 09:19:19] Production.INFO: count ==1499 [2025-04-07 09:19:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:19:06 - End Time 2025-04-07 09:19:06 [2025-04-07 09:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853897', 'tblTempUsageDetail_20' ) start [2025-04-07 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853897', 'tblTempUsageDetail_20' ) end [2025-04-07 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853897', 'tblTempVendorCDR_20' ) start [2025-04-07 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853897', 'tblTempVendorCDR_20' ) end [2025-04-07 09:19:20] Production.INFO: ProcessCDR(1,14853897,1,1,2) [2025-04-07 09:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853897', 'tblTempUsageDetail_20' ) start [2025-04-07 09:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853897', 'tblTempUsageDetail_20' ) end [2025-04-07 09:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:19:26] Production.INFO: ==32074== Releasing lock... [2025-04-07 09:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:19:26] Production.INFO: 39.5 MB #Memory Used# [2025-04-07 09:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:20:07 [end_date_ymd] => 2025-04-07 09:20:07 [RateCDR] => 1 ) [2025-04-07 09:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 06:20:07' and `end` < '2025-04-07 09:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 09:20:20] Production.INFO: count ==1529 [2025-04-07 09:20:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:20:07 - End Time 2025-04-07 09:20:07 [2025-04-07 09:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853903', 'tblTempUsageDetail_20' ) start [2025-04-07 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853903', 'tblTempUsageDetail_20' ) end [2025-04-07 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853903', 'tblTempVendorCDR_20' ) start [2025-04-07 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853903', 'tblTempVendorCDR_20' ) end [2025-04-07 09:20:20] Production.INFO: ProcessCDR(1,14853903,1,1,2) [2025-04-07 09:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853903', 'tblTempUsageDetail_20' ) start [2025-04-07 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853903', 'tblTempUsageDetail_20' ) end [2025-04-07 09:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:20:24] Production.INFO: ==32161== Releasing lock... [2025-04-07 09:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:20:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-07 09:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:21:06 [end_date_ymd] => 2025-04-07 09:21:06 [RateCDR] => 1 ) [2025-04-07 09: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-04-07 06:21:06' and `end` < '2025-04-07 09: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-04-07 09:21:19] Production.INFO: count ==1677 [2025-04-07 09:21:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:21:06 - End Time 2025-04-07 09:21:06 [2025-04-07 09:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853908', 'tblTempUsageDetail_20' ) start [2025-04-07 09:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853908', 'tblTempUsageDetail_20' ) end [2025-04-07 09:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853908', 'tblTempVendorCDR_20' ) start [2025-04-07 09:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853908', 'tblTempVendorCDR_20' ) end [2025-04-07 09:21:20] Production.INFO: ProcessCDR(1,14853908,1,1,2) [2025-04-07 09:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853908', 'tblTempUsageDetail_20' ) start [2025-04-07 09:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853908', 'tblTempUsageDetail_20' ) end [2025-04-07 09:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:21:26] Production.INFO: ==32237== Releasing lock... [2025-04-07 09:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:21:26] Production.INFO: 40.75 MB #Memory Used# [2025-04-07 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:22:06 [end_date_ymd] => 2025-04-07 09:22:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 06:22:06' and `end` < '2025-04-07 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-04-07 09:22:19] Production.INFO: count ==1723 [2025-04-07 09:22:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:22:06 - End Time 2025-04-07 09:22:06 [2025-04-07 09:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853913', 'tblTempUsageDetail_20' ) start [2025-04-07 09:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853913', 'tblTempUsageDetail_20' ) end [2025-04-07 09:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853913', 'tblTempVendorCDR_20' ) start [2025-04-07 09:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853913', 'tblTempVendorCDR_20' ) end [2025-04-07 09:22:20] Production.INFO: ProcessCDR(1,14853913,1,1,2) [2025-04-07 09:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853913', 'tblTempUsageDetail_20' ) start [2025-04-07 09:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853913', 'tblTempUsageDetail_20' ) end [2025-04-07 09:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:22:26] Production.INFO: ==32310== Releasing lock... [2025-04-07 09:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:22:26] Production.INFO: 41.25 MB #Memory Used# [2025-04-07 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:23:05 [end_date_ymd] => 2025-04-07 09:23:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 06:23:05' and `end` < '2025-04-07 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-04-07 09:23:18] Production.INFO: count ==1755 [2025-04-07 09:23:19] Production.ERROR: pbx CDR StartTime 2025-04-07 06:23:05 - End Time 2025-04-07 09:23:05 [2025-04-07 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853918', 'tblTempUsageDetail_20' ) start [2025-04-07 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853918', 'tblTempUsageDetail_20' ) end [2025-04-07 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853918', 'tblTempVendorCDR_20' ) start [2025-04-07 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853918', 'tblTempVendorCDR_20' ) end [2025-04-07 09:23:19] Production.INFO: ProcessCDR(1,14853918,1,1,2) [2025-04-07 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853918', 'tblTempUsageDetail_20' ) start [2025-04-07 09:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853918', 'tblTempUsageDetail_20' ) end [2025-04-07 09:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:23:25] Production.INFO: ==32387== Releasing lock... [2025-04-07 09:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:23:25] Production.INFO: 41.25 MB #Memory Used# [2025-04-07 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:24:06 [end_date_ymd] => 2025-04-07 09:24:06 [RateCDR] => 1 ) [2025-04-07 09: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-04-07 06:24:06' and `end` < '2025-04-07 09: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-04-07 09:24:19] Production.INFO: count ==1767 [2025-04-07 09:24:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:24:06 - End Time 2025-04-07 09:24:06 [2025-04-07 09:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853923', 'tblTempUsageDetail_20' ) start [2025-04-07 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853923', 'tblTempUsageDetail_20' ) end [2025-04-07 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853923', 'tblTempVendorCDR_20' ) start [2025-04-07 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853923', 'tblTempVendorCDR_20' ) end [2025-04-07 09:24:20] Production.INFO: ProcessCDR(1,14853923,1,1,2) [2025-04-07 09:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853923', 'tblTempUsageDetail_20' ) start [2025-04-07 09:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853923', 'tblTempUsageDetail_20' ) end [2025-04-07 09:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:24:25] Production.INFO: ==32468== Releasing lock... [2025-04-07 09:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:24:25] Production.INFO: 41.25 MB #Memory Used# [2025-04-07 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:25:06 [end_date_ymd] => 2025-04-07 09:25:06 [RateCDR] => 1 ) [2025-04-07 09: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-04-07 06:25:06' and `end` < '2025-04-07 09: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-04-07 09:25:19] Production.INFO: count ==1789 [2025-04-07 09:25:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:25:06 - End Time 2025-04-07 09:25:06 [2025-04-07 09:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853928', 'tblTempUsageDetail_20' ) start [2025-04-07 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853928', 'tblTempUsageDetail_20' ) end [2025-04-07 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853928', 'tblTempVendorCDR_20' ) start [2025-04-07 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853928', 'tblTempVendorCDR_20' ) end [2025-04-07 09:25:20] Production.INFO: ProcessCDR(1,14853928,1,1,2) [2025-04-07 09:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853928', 'tblTempUsageDetail_20' ) start [2025-04-07 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853928', 'tblTempUsageDetail_20' ) end [2025-04-07 09:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:25:26] Production.INFO: ==32539== Releasing lock... [2025-04-07 09:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:25:26] Production.INFO: 41.5 MB #Memory Used# [2025-04-07 09:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:26:06 [end_date_ymd] => 2025-04-07 09:26:06 [RateCDR] => 1 ) [2025-04-07 09: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-04-07 06:26:06' and `end` < '2025-04-07 09: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-04-07 09:26:20] Production.INFO: count ==1804 [2025-04-07 09:26:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:26:06 - End Time 2025-04-07 09:26:06 [2025-04-07 09:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853933', 'tblTempUsageDetail_20' ) start [2025-04-07 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853933', 'tblTempUsageDetail_20' ) end [2025-04-07 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853933', 'tblTempVendorCDR_20' ) start [2025-04-07 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853933', 'tblTempVendorCDR_20' ) end [2025-04-07 09:26:20] Production.INFO: ProcessCDR(1,14853933,1,1,2) [2025-04-07 09:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853933', 'tblTempUsageDetail_20' ) start [2025-04-07 09:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853933', 'tblTempUsageDetail_20' ) end [2025-04-07 09:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:26:26] Production.INFO: ==32655== Releasing lock... [2025-04-07 09:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:26:26] Production.INFO: 41.5 MB #Memory Used# [2025-04-07 09:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:27:06 [end_date_ymd] => 2025-04-07 09:27:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 06:27:06' and `end` < '2025-04-07 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-04-07 09:27:19] Production.INFO: count ==1830 [2025-04-07 09:27:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:27:06 - End Time 2025-04-07 09:27:06 [2025-04-07 09:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853938', 'tblTempUsageDetail_20' ) start [2025-04-07 09:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853938', 'tblTempUsageDetail_20' ) end [2025-04-07 09:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853938', 'tblTempVendorCDR_20' ) start [2025-04-07 09:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853938', 'tblTempVendorCDR_20' ) end [2025-04-07 09:27:20] Production.INFO: ProcessCDR(1,14853938,1,1,2) [2025-04-07 09:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853938', 'tblTempUsageDetail_20' ) start [2025-04-07 09:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853938', 'tblTempUsageDetail_20' ) end [2025-04-07 09:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:27:26] Production.INFO: ==32727== Releasing lock... [2025-04-07 09:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:27:26] Production.INFO: 42 MB #Memory Used# [2025-04-07 09:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:28:06 [end_date_ymd] => 2025-04-07 09:28:06 [RateCDR] => 1 ) [2025-04-07 09: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-04-07 06:28:06' and `end` < '2025-04-07 09: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-04-07 09:28:19] Production.INFO: count ==1843 [2025-04-07 09:28:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:28:06 - End Time 2025-04-07 09:28:06 [2025-04-07 09:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853943', 'tblTempUsageDetail_20' ) start [2025-04-07 09:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853943', 'tblTempUsageDetail_20' ) end [2025-04-07 09:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853943', 'tblTempVendorCDR_20' ) start [2025-04-07 09:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853943', 'tblTempVendorCDR_20' ) end [2025-04-07 09:28:20] Production.INFO: ProcessCDR(1,14853943,1,1,2) [2025-04-07 09:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853943', 'tblTempUsageDetail_20' ) start [2025-04-07 09:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853943', 'tblTempUsageDetail_20' ) end [2025-04-07 09:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:28:26] Production.INFO: ==354== Releasing lock... [2025-04-07 09:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:28:26] Production.INFO: 42 MB #Memory Used# [2025-04-07 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:29:05 [end_date_ymd] => 2025-04-07 09:29:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 06:29:05' and `end` < '2025-04-07 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-04-07 09:29:19] Production.INFO: count ==1855 [2025-04-07 09:29:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:29:05 - End Time 2025-04-07 09:29:05 [2025-04-07 09:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853948', 'tblTempUsageDetail_20' ) start [2025-04-07 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853948', 'tblTempUsageDetail_20' ) end [2025-04-07 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853948', 'tblTempVendorCDR_20' ) start [2025-04-07 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853948', 'tblTempVendorCDR_20' ) end [2025-04-07 09:29:20] Production.INFO: ProcessCDR(1,14853948,1,1,2) [2025-04-07 09:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853948', 'tblTempUsageDetail_20' ) start [2025-04-07 09:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853948', 'tblTempUsageDetail_20' ) end [2025-04-07 09:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:29:25] Production.INFO: ==431== Releasing lock... [2025-04-07 09:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:29:25] Production.INFO: 42 MB #Memory Used# [2025-04-07 09:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:30:07 [end_date_ymd] => 2025-04-07 09:30:07 [RateCDR] => 1 ) [2025-04-07 09:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 06:30:07' and `end` < '2025-04-07 09:30: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-04-07 09:30:20] Production.INFO: count ==1899 [2025-04-07 09:30:21] Production.ERROR: pbx CDR StartTime 2025-04-07 06:30:07 - End Time 2025-04-07 09:30:07 [2025-04-07 09:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853954', 'tblTempUsageDetail_20' ) start [2025-04-07 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853954', 'tblTempUsageDetail_20' ) end [2025-04-07 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853954', 'tblTempVendorCDR_20' ) start [2025-04-07 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853954', 'tblTempVendorCDR_20' ) end [2025-04-07 09:30:21] Production.INFO: ProcessCDR(1,14853954,1,1,2) [2025-04-07 09:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853954', 'tblTempUsageDetail_20' ) start [2025-04-07 09:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853954', 'tblTempUsageDetail_20' ) end [2025-04-07 09:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:30:27] Production.INFO: ==510== Releasing lock... [2025-04-07 09:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:30:27] Production.INFO: 42.25 MB #Memory Used# [2025-04-07 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:31:05 [end_date_ymd] => 2025-04-07 09:31:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 06:31:05' and `end` < '2025-04-07 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-04-07 09:31:19] Production.INFO: count ==1987 [2025-04-07 09:31:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:31:05 - End Time 2025-04-07 09:31:05 [2025-04-07 09:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853959', 'tblTempUsageDetail_20' ) start [2025-04-07 09:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853959', 'tblTempUsageDetail_20' ) end [2025-04-07 09:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853959', 'tblTempVendorCDR_20' ) start [2025-04-07 09:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853959', 'tblTempVendorCDR_20' ) end [2025-04-07 09:31:20] Production.INFO: ProcessCDR(1,14853959,1,1,2) [2025-04-07 09:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853959', 'tblTempUsageDetail_20' ) start [2025-04-07 09:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853959', 'tblTempUsageDetail_20' ) end [2025-04-07 09:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:31:26] Production.INFO: ==589== Releasing lock... [2025-04-07 09:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:31:26] Production.INFO: 43 MB #Memory Used# [2025-04-07 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:32:06 [end_date_ymd] => 2025-04-07 09:32:06 [RateCDR] => 1 ) [2025-04-07 09: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-04-07 06:32:06' and `end` < '2025-04-07 09: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-04-07 09:32:19] Production.INFO: count ==2007 [2025-04-07 09:32:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:32:06 - End Time 2025-04-07 09:32:06 [2025-04-07 09:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853964', 'tblTempUsageDetail_20' ) start [2025-04-07 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853964', 'tblTempUsageDetail_20' ) end [2025-04-07 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853964', 'tblTempVendorCDR_20' ) start [2025-04-07 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853964', 'tblTempVendorCDR_20' ) end [2025-04-07 09:32:20] Production.INFO: ProcessCDR(1,14853964,1,1,2) [2025-04-07 09:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853964', 'tblTempUsageDetail_20' ) start [2025-04-07 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853964', 'tblTempUsageDetail_20' ) end [2025-04-07 09:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:32:25] Production.INFO: ==693== Releasing lock... [2025-04-07 09:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:32:25] Production.INFO: 43.25 MB #Memory Used# [2025-04-07 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:33:05 [end_date_ymd] => 2025-04-07 09:33:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 06:33:05' and `end` < '2025-04-07 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-04-07 09:33:19] Production.INFO: count ==2039 [2025-04-07 09:33:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:33:05 - End Time 2025-04-07 09:33:05 [2025-04-07 09:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853969', 'tblTempUsageDetail_20' ) start [2025-04-07 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853969', 'tblTempUsageDetail_20' ) end [2025-04-07 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853969', 'tblTempVendorCDR_20' ) start [2025-04-07 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853969', 'tblTempVendorCDR_20' ) end [2025-04-07 09:33:20] Production.INFO: ProcessCDR(1,14853969,1,1,2) [2025-04-07 09:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853969', 'tblTempUsageDetail_20' ) start [2025-04-07 09:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853969', 'tblTempUsageDetail_20' ) end [2025-04-07 09:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:33:26] Production.INFO: ==776== Releasing lock... [2025-04-07 09:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:33:26] Production.INFO: 43.5 MB #Memory Used# [2025-04-07 09:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:34:06 [end_date_ymd] => 2025-04-07 09:34:06 [RateCDR] => 1 ) [2025-04-07 09: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-04-07 06:34:06' and `end` < '2025-04-07 09: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-04-07 09:34:19] Production.INFO: count ==2076 [2025-04-07 09:34:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:34:06 - End Time 2025-04-07 09:34:06 [2025-04-07 09:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853974', 'tblTempUsageDetail_20' ) start [2025-04-07 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853974', 'tblTempUsageDetail_20' ) end [2025-04-07 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853974', 'tblTempVendorCDR_20' ) start [2025-04-07 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853974', 'tblTempVendorCDR_20' ) end [2025-04-07 09:34:20] Production.INFO: ProcessCDR(1,14853974,1,1,2) [2025-04-07 09:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853974', 'tblTempUsageDetail_20' ) start [2025-04-07 09:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853974', 'tblTempUsageDetail_20' ) end [2025-04-07 09:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:34:26] Production.INFO: ==852== Releasing lock... [2025-04-07 09:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:34:26] Production.INFO: 43.75 MB #Memory Used# [2025-04-07 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:35:05 [end_date_ymd] => 2025-04-07 09:35:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 06:35:05' and `end` < '2025-04-07 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-04-07 09:35:19] Production.INFO: count ==2098 [2025-04-07 09:35:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:35:05 - End Time 2025-04-07 09:35:05 [2025-04-07 09:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853979', 'tblTempUsageDetail_20' ) start [2025-04-07 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853979', 'tblTempUsageDetail_20' ) end [2025-04-07 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853979', 'tblTempVendorCDR_20' ) start [2025-04-07 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853979', 'tblTempVendorCDR_20' ) end [2025-04-07 09:35:20] Production.INFO: ProcessCDR(1,14853979,1,1,2) [2025-04-07 09:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853979', 'tblTempUsageDetail_20' ) start [2025-04-07 09:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853979', 'tblTempUsageDetail_20' ) end [2025-04-07 09:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:35:26] Production.INFO: ==932== Releasing lock... [2025-04-07 09:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:35:26] Production.INFO: 43.75 MB #Memory Used# [2025-04-07 09:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:36:06 [end_date_ymd] => 2025-04-07 09:36:06 [RateCDR] => 1 ) [2025-04-07 09: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-04-07 06:36:06' and `end` < '2025-04-07 09: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-04-07 09:36:20] Production.INFO: count ==2128 [2025-04-07 09:36:21] Production.ERROR: pbx CDR StartTime 2025-04-07 06:36:06 - End Time 2025-04-07 09:36:06 [2025-04-07 09:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853984', 'tblTempUsageDetail_20' ) start [2025-04-07 09:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853984', 'tblTempUsageDetail_20' ) end [2025-04-07 09:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853984', 'tblTempVendorCDR_20' ) start [2025-04-07 09:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853984', 'tblTempVendorCDR_20' ) end [2025-04-07 09:36:21] Production.INFO: ProcessCDR(1,14853984,1,1,2) [2025-04-07 09:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853984', 'tblTempUsageDetail_20' ) start [2025-04-07 09:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853984', 'tblTempUsageDetail_20' ) end [2025-04-07 09:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:36:27] Production.INFO: ==1010== Releasing lock... [2025-04-07 09:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:36:27] Production.INFO: 44 MB #Memory Used# [2025-04-07 09:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:37:06 [end_date_ymd] => 2025-04-07 09:37:06 [RateCDR] => 1 ) [2025-04-07 09:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 06:37:06' and `end` < '2025-04-07 09:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 09:37:19] Production.INFO: count ==2143 [2025-04-07 09:37:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:37:06 - End Time 2025-04-07 09:37:06 [2025-04-07 09:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853989', 'tblTempUsageDetail_20' ) start [2025-04-07 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853989', 'tblTempUsageDetail_20' ) end [2025-04-07 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853989', 'tblTempVendorCDR_20' ) start [2025-04-07 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853989', 'tblTempVendorCDR_20' ) end [2025-04-07 09:37:20] Production.INFO: ProcessCDR(1,14853989,1,1,2) [2025-04-07 09:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853989', 'tblTempUsageDetail_20' ) start [2025-04-07 09:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853989', 'tblTempUsageDetail_20' ) end [2025-04-07 09:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:37:26] Production.INFO: ==1082== Releasing lock... [2025-04-07 09:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:37:26] Production.INFO: 44.25 MB #Memory Used# [2025-04-07 09:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:38:06 [end_date_ymd] => 2025-04-07 09:38:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 06:38:06' and `end` < '2025-04-07 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-04-07 09:38:19] Production.INFO: count ==2179 [2025-04-07 09:38:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:38:06 - End Time 2025-04-07 09:38:06 [2025-04-07 09:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853994', 'tblTempUsageDetail_20' ) start [2025-04-07 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853994', 'tblTempUsageDetail_20' ) end [2025-04-07 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853994', 'tblTempVendorCDR_20' ) start [2025-04-07 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853994', 'tblTempVendorCDR_20' ) end [2025-04-07 09:38:20] Production.INFO: ProcessCDR(1,14853994,1,1,2) [2025-04-07 09:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853994', 'tblTempUsageDetail_20' ) start [2025-04-07 09:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853994', 'tblTempUsageDetail_20' ) end [2025-04-07 09:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:38:26] Production.INFO: ==1163== Releasing lock... [2025-04-07 09:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:38:26] Production.INFO: 44.5 MB #Memory Used# [2025-04-07 09:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:39:06 [end_date_ymd] => 2025-04-07 09:39:06 [RateCDR] => 1 ) [2025-04-07 09:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 06:39:06' and `end` < '2025-04-07 09:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 09:39:19] Production.INFO: count ==2217 [2025-04-07 09:39:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:39:06 - End Time 2025-04-07 09:39:06 [2025-04-07 09:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853999', 'tblTempUsageDetail_20' ) start [2025-04-07 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14853999', 'tblTempUsageDetail_20' ) end [2025-04-07 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853999', 'tblTempVendorCDR_20' ) start [2025-04-07 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14853999', 'tblTempVendorCDR_20' ) end [2025-04-07 09:39:20] Production.INFO: ProcessCDR(1,14853999,1,1,2) [2025-04-07 09:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14853999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14853999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14853999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14853999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853999', 'tblTempUsageDetail_20' ) start [2025-04-07 09:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14853999', 'tblTempUsageDetail_20' ) end [2025-04-07 09:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:39:26] Production.INFO: ==1247== Releasing lock... [2025-04-07 09:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:39:26] Production.INFO: 44.75 MB #Memory Used# [2025-04-07 09:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:40:07 [end_date_ymd] => 2025-04-07 09:40:07 [RateCDR] => 1 ) [2025-04-07 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-04-07 06:40:07' and `end` < '2025-04-07 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-04-07 09:40:21] Production.INFO: count ==2292 [2025-04-07 09:40:22] Production.ERROR: pbx CDR StartTime 2025-04-07 06:40:07 - End Time 2025-04-07 09:40:07 [2025-04-07 09:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854005', 'tblTempUsageDetail_20' ) start [2025-04-07 09:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854005', 'tblTempUsageDetail_20' ) end [2025-04-07 09:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854005', 'tblTempVendorCDR_20' ) start [2025-04-07 09:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854005', 'tblTempVendorCDR_20' ) end [2025-04-07 09:40:22] Production.INFO: ProcessCDR(1,14854005,1,1,2) [2025-04-07 09:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854005', 'tblTempUsageDetail_20' ) start [2025-04-07 09:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854005', 'tblTempUsageDetail_20' ) end [2025-04-07 09:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:40:28] Production.INFO: ==1331== Releasing lock... [2025-04-07 09:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:40:28] Production.INFO: 45.25 MB #Memory Used# [2025-04-07 09:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:41:06 [end_date_ymd] => 2025-04-07 09:41:06 [RateCDR] => 1 ) [2025-04-07 09: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-04-07 06:41:06' and `end` < '2025-04-07 09: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-04-07 09:41:20] Production.INFO: count ==2471 [2025-04-07 09:41:21] Production.ERROR: pbx CDR StartTime 2025-04-07 06:41:06 - End Time 2025-04-07 09:41:06 [2025-04-07 09:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854010', 'tblTempUsageDetail_20' ) start [2025-04-07 09:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854010', 'tblTempUsageDetail_20' ) end [2025-04-07 09:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854010', 'tblTempVendorCDR_20' ) start [2025-04-07 09:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854010', 'tblTempVendorCDR_20' ) end [2025-04-07 09:41:21] Production.INFO: ProcessCDR(1,14854010,1,1,2) [2025-04-07 09:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854010', 'tblTempUsageDetail_20' ) start [2025-04-07 09:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854010', 'tblTempUsageDetail_20' ) end [2025-04-07 09:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:41:27] Production.INFO: ==1452== Releasing lock... [2025-04-07 09:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:41:27] Production.INFO: 46.5 MB #Memory Used# [2025-04-07 09:42:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:42:06 [end_date_ymd] => 2025-04-07 09:42:06 [RateCDR] => 1 ) [2025-04-07 09:42: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-04-07 06:42:06' and `end` < '2025-04-07 09: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-04-07 09:42:20] Production.INFO: count ==2500 [2025-04-07 09:42:21] Production.ERROR: pbx CDR StartTime 2025-04-07 06:42:06 - End Time 2025-04-07 09:42:06 [2025-04-07 09:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854015', 'tblTempUsageDetail_20' ) start [2025-04-07 09:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854015', 'tblTempUsageDetail_20' ) end [2025-04-07 09:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854015', 'tblTempVendorCDR_20' ) start [2025-04-07 09:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854015', 'tblTempVendorCDR_20' ) end [2025-04-07 09:42:21] Production.INFO: ProcessCDR(1,14854015,1,1,2) [2025-04-07 09:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854015', 'tblTempUsageDetail_20' ) start [2025-04-07 09:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854015', 'tblTempUsageDetail_20' ) end [2025-04-07 09:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:42:27] Production.INFO: ==1554== Releasing lock... [2025-04-07 09:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:42:27] Production.INFO: 46.75 MB #Memory Used# [2025-04-07 09:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:43:06 [end_date_ymd] => 2025-04-07 09:43:06 [RateCDR] => 1 ) [2025-04-07 09: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-04-07 06:43:06' and `end` < '2025-04-07 09: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-04-07 09:43:19] Production.INFO: count ==2570 [2025-04-07 09:43:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:43:06 - End Time 2025-04-07 09:43:06 [2025-04-07 09:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854020', 'tblTempUsageDetail_20' ) start [2025-04-07 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854020', 'tblTempUsageDetail_20' ) end [2025-04-07 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854020', 'tblTempVendorCDR_20' ) start [2025-04-07 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854020', 'tblTempVendorCDR_20' ) end [2025-04-07 09:43:20] Production.INFO: ProcessCDR(1,14854020,1,1,2) [2025-04-07 09:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854020', 'tblTempUsageDetail_20' ) start [2025-04-07 09:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854020', 'tblTempUsageDetail_20' ) end [2025-04-07 09:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:43:27] Production.INFO: ==1635== Releasing lock... [2025-04-07 09:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:43:27] Production.INFO: 47.5 MB #Memory Used# [2025-04-07 09:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:44:06 [end_date_ymd] => 2025-04-07 09:44:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 06:44:06' and `end` < '2025-04-07 09: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-04-07 09:44:19] Production.INFO: count ==2603 [2025-04-07 09:44:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:44:06 - End Time 2025-04-07 09:44:06 [2025-04-07 09:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854025', 'tblTempUsageDetail_20' ) start [2025-04-07 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854025', 'tblTempUsageDetail_20' ) end [2025-04-07 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854025', 'tblTempVendorCDR_20' ) start [2025-04-07 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854025', 'tblTempVendorCDR_20' ) end [2025-04-07 09:44:20] Production.INFO: ProcessCDR(1,14854025,1,1,2) [2025-04-07 09:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854025', 'tblTempUsageDetail_20' ) start [2025-04-07 09:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854025', 'tblTempUsageDetail_20' ) end [2025-04-07 09:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:44:27] Production.INFO: ==1710== Releasing lock... [2025-04-07 09:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:44:27] Production.INFO: 48 MB #Memory Used# [2025-04-07 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:45:05 [end_date_ymd] => 2025-04-07 09:45:05 [RateCDR] => 1 ) [2025-04-07 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 06:45:05' and `end` < '2025-04-07 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 09:45:19] Production.INFO: count ==2649 [2025-04-07 09:45:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:45:05 - End Time 2025-04-07 09:45:05 [2025-04-07 09:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854030', 'tblTempUsageDetail_20' ) start [2025-04-07 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854030', 'tblTempUsageDetail_20' ) end [2025-04-07 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854030', 'tblTempVendorCDR_20' ) start [2025-04-07 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854030', 'tblTempVendorCDR_20' ) end [2025-04-07 09:45:20] Production.INFO: ProcessCDR(1,14854030,1,1,2) [2025-04-07 09:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854030', 'tblTempUsageDetail_20' ) start [2025-04-07 09:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854030', 'tblTempUsageDetail_20' ) end [2025-04-07 09:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:45:26] Production.INFO: ==1787== Releasing lock... [2025-04-07 09:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:45:26] Production.INFO: 48.75 MB #Memory Used# [2025-04-07 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:46:05 [end_date_ymd] => 2025-04-07 09:46:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 06:46:05' and `end` < '2025-04-07 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-04-07 09:46:19] Production.INFO: count ==2686 [2025-04-07 09:46:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:46:05 - End Time 2025-04-07 09:46:05 [2025-04-07 09:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854035', 'tblTempUsageDetail_20' ) start [2025-04-07 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854035', 'tblTempUsageDetail_20' ) end [2025-04-07 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854035', 'tblTempVendorCDR_20' ) start [2025-04-07 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854035', 'tblTempVendorCDR_20' ) end [2025-04-07 09:46:20] Production.INFO: ProcessCDR(1,14854035,1,1,2) [2025-04-07 09:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854035', 'tblTempUsageDetail_20' ) start [2025-04-07 09:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854035', 'tblTempUsageDetail_20' ) end [2025-04-07 09:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:46:26] Production.INFO: ==1866== Releasing lock... [2025-04-07 09:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:46:26] Production.INFO: 49.25 MB #Memory Used# [2025-04-07 09:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:47:06 [end_date_ymd] => 2025-04-07 09:47:06 [RateCDR] => 1 ) [2025-04-07 09:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 06:47:06' and `end` < '2025-04-07 09: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-04-07 09:47:19] Production.INFO: count ==2706 [2025-04-07 09:47:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:47:06 - End Time 2025-04-07 09:47:06 [2025-04-07 09:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854040', 'tblTempUsageDetail_20' ) start [2025-04-07 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854040', 'tblTempUsageDetail_20' ) end [2025-04-07 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854040', 'tblTempVendorCDR_20' ) start [2025-04-07 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854040', 'tblTempVendorCDR_20' ) end [2025-04-07 09:47:20] Production.INFO: ProcessCDR(1,14854040,1,1,2) [2025-04-07 09:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854040', 'tblTempUsageDetail_20' ) start [2025-04-07 09:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854040', 'tblTempUsageDetail_20' ) end [2025-04-07 09:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:47:26] Production.INFO: ==1937== Releasing lock... [2025-04-07 09:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:47:26] Production.INFO: 48.5 MB #Memory Used# [2025-04-07 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:48:05 [end_date_ymd] => 2025-04-07 09:48:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 06:48:05' and `end` < '2025-04-07 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-04-07 09:48:19] Production.INFO: count ==2726 [2025-04-07 09:48:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:48:05 - End Time 2025-04-07 09:48:05 [2025-04-07 09:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854045', 'tblTempUsageDetail_20' ) start [2025-04-07 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854045', 'tblTempUsageDetail_20' ) end [2025-04-07 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854045', 'tblTempVendorCDR_20' ) start [2025-04-07 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854045', 'tblTempVendorCDR_20' ) end [2025-04-07 09:48:20] Production.INFO: ProcessCDR(1,14854045,1,1,2) [2025-04-07 09:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854045', 'tblTempUsageDetail_20' ) start [2025-04-07 09:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854045', 'tblTempUsageDetail_20' ) end [2025-04-07 09:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:48:26] Production.INFO: ==2011== Releasing lock... [2025-04-07 09:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:48:26] Production.INFO: 49 MB #Memory Used# [2025-04-07 09:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:49:06 [end_date_ymd] => 2025-04-07 09:49:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 06:49:06' and `end` < '2025-04-07 09:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 09:49:19] Production.INFO: count ==2764 [2025-04-07 09:49:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:49:06 - End Time 2025-04-07 09:49:06 [2025-04-07 09:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854050', 'tblTempUsageDetail_20' ) start [2025-04-07 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854050', 'tblTempUsageDetail_20' ) end [2025-04-07 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854050', 'tblTempVendorCDR_20' ) start [2025-04-07 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854050', 'tblTempVendorCDR_20' ) end [2025-04-07 09:49:20] Production.INFO: ProcessCDR(1,14854050,1,1,2) [2025-04-07 09:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854050', 'tblTempUsageDetail_20' ) start [2025-04-07 09:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854050', 'tblTempUsageDetail_20' ) end [2025-04-07 09:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:49:26] Production.INFO: ==2092== Releasing lock... [2025-04-07 09:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:49:26] Production.INFO: 49.5 MB #Memory Used# [2025-04-07 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:50:06 [end_date_ymd] => 2025-04-07 09:50:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 06:50:06' and `end` < '2025-04-07 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-04-07 09:50:19] Production.INFO: count ==2848 [2025-04-07 09:50:21] Production.ERROR: pbx CDR StartTime 2025-04-07 06:50:06 - End Time 2025-04-07 09:50:06 [2025-04-07 09:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854056', 'tblTempUsageDetail_20' ) start [2025-04-07 09:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854056', 'tblTempUsageDetail_20' ) end [2025-04-07 09:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854056', 'tblTempVendorCDR_20' ) start [2025-04-07 09:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854056', 'tblTempVendorCDR_20' ) end [2025-04-07 09:50:21] Production.INFO: ProcessCDR(1,14854056,1,1,2) [2025-04-07 09:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854056', 'tblTempUsageDetail_20' ) start [2025-04-07 09:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854056', 'tblTempUsageDetail_20' ) end [2025-04-07 09:50:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:50:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:50:26] Production.INFO: ==2171== Releasing lock... [2025-04-07 09:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:50:26] Production.INFO: 49.5 MB #Memory Used# [2025-04-07 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:51:05 [end_date_ymd] => 2025-04-07 09:51:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 06:51:05' and `end` < '2025-04-07 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-04-07 09:51:19] Production.INFO: count ==2984 [2025-04-07 09:51:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:51:05 - End Time 2025-04-07 09:51:05 [2025-04-07 09:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854061', 'tblTempUsageDetail_20' ) start [2025-04-07 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854061', 'tblTempUsageDetail_20' ) end [2025-04-07 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854061', 'tblTempVendorCDR_20' ) start [2025-04-07 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854061', 'tblTempVendorCDR_20' ) end [2025-04-07 09:51:20] Production.INFO: ProcessCDR(1,14854061,1,1,2) [2025-04-07 09:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854061', 'tblTempUsageDetail_20' ) start [2025-04-07 09:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854061', 'tblTempUsageDetail_20' ) end [2025-04-07 09:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:51:26] Production.INFO: ==2245== Releasing lock... [2025-04-07 09:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:51:26] Production.INFO: 51.25 MB #Memory Used# [2025-04-07 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:52:05 [end_date_ymd] => 2025-04-07 09:52:05 [RateCDR] => 1 ) [2025-04-07 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 06:52:05' and `end` < '2025-04-07 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 09:52:18] Production.INFO: count ==3004 [2025-04-07 09:52:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:52:05 - End Time 2025-04-07 09:52:05 [2025-04-07 09:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854066', 'tblTempUsageDetail_20' ) start [2025-04-07 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854066', 'tblTempUsageDetail_20' ) end [2025-04-07 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854066', 'tblTempVendorCDR_20' ) start [2025-04-07 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854066', 'tblTempVendorCDR_20' ) end [2025-04-07 09:52:20] Production.INFO: ProcessCDR(1,14854066,1,1,2) [2025-04-07 09:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854066', 'tblTempUsageDetail_20' ) start [2025-04-07 09:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854066', 'tblTempUsageDetail_20' ) end [2025-04-07 09:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:52:26] Production.INFO: ==2315== Releasing lock... [2025-04-07 09:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:52:26] Production.INFO: 50.25 MB #Memory Used# [2025-04-07 09:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:53:06 [end_date_ymd] => 2025-04-07 09:53:06 [RateCDR] => 1 ) [2025-04-07 09: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-04-07 06:53:06' and `end` < '2025-04-07 09: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-04-07 09:53:19] Production.INFO: count ==3006 [2025-04-07 09:53:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:53:06 - End Time 2025-04-07 09:53:06 [2025-04-07 09:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854071', 'tblTempUsageDetail_20' ) start [2025-04-07 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854071', 'tblTempUsageDetail_20' ) end [2025-04-07 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854071', 'tblTempVendorCDR_20' ) start [2025-04-07 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854071', 'tblTempVendorCDR_20' ) end [2025-04-07 09:53:21] Production.INFO: ProcessCDR(1,14854071,1,1,2) [2025-04-07 09:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854071', 'tblTempUsageDetail_20' ) start [2025-04-07 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854071', 'tblTempUsageDetail_20' ) end [2025-04-07 09:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:53:24] Production.INFO: ==2391== Releasing lock... [2025-04-07 09:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:53:24] Production.INFO: 51.5 MB #Memory Used# [2025-04-07 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:54:05 [end_date_ymd] => 2025-04-07 09:54:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 06:54:05' and `end` < '2025-04-07 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-04-07 09:54:19] Production.INFO: count ==3022 [2025-04-07 09:54:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:54:05 - End Time 2025-04-07 09:54:05 [2025-04-07 09:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854076', 'tblTempUsageDetail_20' ) start [2025-04-07 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854076', 'tblTempUsageDetail_20' ) end [2025-04-07 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854076', 'tblTempVendorCDR_20' ) start [2025-04-07 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854076', 'tblTempVendorCDR_20' ) end [2025-04-07 09:54:20] Production.INFO: ProcessCDR(1,14854076,1,1,2) [2025-04-07 09:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854076', 'tblTempUsageDetail_20' ) start [2025-04-07 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854076', 'tblTempUsageDetail_20' ) end [2025-04-07 09:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:54:25] Production.INFO: ==2464== Releasing lock... [2025-04-07 09:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:54:25] Production.INFO: 51.5 MB #Memory Used# [2025-04-07 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:55:05 [end_date_ymd] => 2025-04-07 09:55:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 06:55:05' and `end` < '2025-04-07 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-04-07 09:55:19] Production.INFO: count ==3030 [2025-04-07 09:55:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:55:05 - End Time 2025-04-07 09:55:05 [2025-04-07 09:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854081', 'tblTempUsageDetail_20' ) start [2025-04-07 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854081', 'tblTempUsageDetail_20' ) end [2025-04-07 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854081', 'tblTempVendorCDR_20' ) start [2025-04-07 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854081', 'tblTempVendorCDR_20' ) end [2025-04-07 09:55:20] Production.INFO: ProcessCDR(1,14854081,1,1,2) [2025-04-07 09:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854081', 'tblTempUsageDetail_20' ) start [2025-04-07 09:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854081', 'tblTempUsageDetail_20' ) end [2025-04-07 09:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:55:25] Production.INFO: ==2537== Releasing lock... [2025-04-07 09:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:55:25] Production.INFO: 51 MB #Memory Used# [2025-04-07 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:56:05 [end_date_ymd] => 2025-04-07 09:56:05 [RateCDR] => 1 ) [2025-04-07 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 06:56:05' and `end` < '2025-04-07 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 09:56:19] Production.INFO: count ==3038 [2025-04-07 09:56:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:56:05 - End Time 2025-04-07 09:56:05 [2025-04-07 09:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854086', 'tblTempUsageDetail_20' ) start [2025-04-07 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854086', 'tblTempUsageDetail_20' ) end [2025-04-07 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854086', 'tblTempVendorCDR_20' ) start [2025-04-07 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854086', 'tblTempVendorCDR_20' ) end [2025-04-07 09:56:20] Production.INFO: ProcessCDR(1,14854086,1,1,2) [2025-04-07 09:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854086', 'tblTempUsageDetail_20' ) start [2025-04-07 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854086', 'tblTempUsageDetail_20' ) end [2025-04-07 09:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:56:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:56:25] Production.INFO: ==2611== Releasing lock... [2025-04-07 09:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:56:25] Production.INFO: 51.25 MB #Memory Used# [2025-04-07 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:57:05 [end_date_ymd] => 2025-04-07 09:57:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 06:57:05' and `end` < '2025-04-07 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-04-07 09:57:18] Production.INFO: count ==3061 [2025-04-07 09:57:19] Production.ERROR: pbx CDR StartTime 2025-04-07 06:57:05 - End Time 2025-04-07 09:57:05 [2025-04-07 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854091', 'tblTempUsageDetail_20' ) start [2025-04-07 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854091', 'tblTempUsageDetail_20' ) end [2025-04-07 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854091', 'tblTempVendorCDR_20' ) start [2025-04-07 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854091', 'tblTempVendorCDR_20' ) end [2025-04-07 09:57:19] Production.INFO: ProcessCDR(1,14854091,1,1,2) [2025-04-07 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854091', 'tblTempUsageDetail_20' ) start [2025-04-07 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854091', 'tblTempUsageDetail_20' ) end [2025-04-07 09:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:57:25] Production.INFO: ==2724== Releasing lock... [2025-04-07 09:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:57:25] Production.INFO: 51.5 MB #Memory Used# [2025-04-07 09:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:58:06 [end_date_ymd] => 2025-04-07 09:58:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 06:58:06' and `end` < '2025-04-07 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-04-07 09:58:19] Production.INFO: count ==3074 [2025-04-07 09:58:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:58:06 - End Time 2025-04-07 09:58:06 [2025-04-07 09:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854096', 'tblTempUsageDetail_20' ) start [2025-04-07 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854096', 'tblTempUsageDetail_20' ) end [2025-04-07 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854096', 'tblTempVendorCDR_20' ) start [2025-04-07 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854096', 'tblTempVendorCDR_20' ) end [2025-04-07 09:58:21] Production.INFO: ProcessCDR(1,14854096,1,1,2) [2025-04-07 09:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854096', 'tblTempUsageDetail_20' ) start [2025-04-07 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854096', 'tblTempUsageDetail_20' ) end [2025-04-07 09:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:58:25] Production.INFO: ==2799== Releasing lock... [2025-04-07 09:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:58:25] Production.INFO: 51 MB #Memory Used# [2025-04-07 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 06:59:05 [end_date_ymd] => 2025-04-07 09:59:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 06:59:05' and `end` < '2025-04-07 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-04-07 09:59:19] Production.INFO: count ==3101 [2025-04-07 09:59:20] Production.ERROR: pbx CDR StartTime 2025-04-07 06:59:05 - End Time 2025-04-07 09:59:05 [2025-04-07 09:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854101', 'tblTempUsageDetail_20' ) start [2025-04-07 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854101', 'tblTempUsageDetail_20' ) end [2025-04-07 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854101', 'tblTempVendorCDR_20' ) start [2025-04-07 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854101', 'tblTempVendorCDR_20' ) end [2025-04-07 09:59:20] Production.INFO: ProcessCDR(1,14854101,1,1,2) [2025-04-07 09:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 09:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854101', 'tblTempUsageDetail_20' ) start [2025-04-07 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854101', 'tblTempUsageDetail_20' ) end [2025-04-07 09:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 09:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 09:59:25] Production.INFO: ==2881== Releasing lock... [2025-04-07 09:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 09:59:25] Production.INFO: 51 MB #Memory Used# [2025-04-07 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:00:06 [end_date_ymd] => 2025-04-07 10:00:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:00:06' and `end` < '2025-04-07 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-04-07 10:00:19] Production.INFO: count ==3113 [2025-04-07 10:00:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:00:06 - End Time 2025-04-07 10:00:06 [2025-04-07 10:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854106', 'tblTempUsageDetail_20' ) start [2025-04-07 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854106', 'tblTempUsageDetail_20' ) end [2025-04-07 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854106', 'tblTempVendorCDR_20' ) start [2025-04-07 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854106', 'tblTempVendorCDR_20' ) end [2025-04-07 10:00:21] Production.INFO: ProcessCDR(1,14854106,1,1,2) [2025-04-07 10:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854106', 'tblTempUsageDetail_20' ) start [2025-04-07 10:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854106', 'tblTempUsageDetail_20' ) end [2025-04-07 10:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:00:27] Production.INFO: ==2957== Releasing lock... [2025-04-07 10:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:00:27] Production.INFO: 51.5 MB #Memory Used# [2025-04-07 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:01:05 [end_date_ymd] => 2025-04-07 10:01:05 [RateCDR] => 1 ) [2025-04-07 10: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-04-07 07:01:05' and `end` < '2025-04-07 10: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-04-07 10:01:19] Production.INFO: count ==3198 [2025-04-07 10:01:20] Production.ERROR: pbx CDR StartTime 2025-04-07 07:01:05 - End Time 2025-04-07 10:01:05 [2025-04-07 10:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854112', 'tblTempUsageDetail_20' ) start [2025-04-07 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854112', 'tblTempUsageDetail_20' ) end [2025-04-07 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854112', 'tblTempVendorCDR_20' ) start [2025-04-07 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854112', 'tblTempVendorCDR_20' ) end [2025-04-07 10:01:20] Production.INFO: ProcessCDR(1,14854112,1,1,2) [2025-04-07 10:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854112', 'tblTempUsageDetail_20' ) start [2025-04-07 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854112', 'tblTempUsageDetail_20' ) end [2025-04-07 10:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:01:25] Production.INFO: ==3044== Releasing lock... [2025-04-07 10:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:01:25] Production.INFO: 52.25 MB #Memory Used# [2025-04-07 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:02:05 [end_date_ymd] => 2025-04-07 10:02:05 [RateCDR] => 1 ) [2025-04-07 10: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-04-07 07:02:05' and `end` < '2025-04-07 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-04-07 10:02:19] Production.INFO: count ==3203 [2025-04-07 10:02:20] Production.ERROR: pbx CDR StartTime 2025-04-07 07:02:05 - End Time 2025-04-07 10:02:05 [2025-04-07 10:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854117', 'tblTempUsageDetail_20' ) start [2025-04-07 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854117', 'tblTempUsageDetail_20' ) end [2025-04-07 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854117', 'tblTempVendorCDR_20' ) start [2025-04-07 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854117', 'tblTempVendorCDR_20' ) end [2025-04-07 10:02:21] Production.INFO: ProcessCDR(1,14854117,1,1,2) [2025-04-07 10:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854117', 'tblTempUsageDetail_20' ) start [2025-04-07 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854117', 'tblTempUsageDetail_20' ) end [2025-04-07 10:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:02:26] Production.INFO: ==3121== Releasing lock... [2025-04-07 10:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:02:26] Production.INFO: 52 MB #Memory Used# [2025-04-07 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:03:05 [end_date_ymd] => 2025-04-07 10:03:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:03:05' and `end` < '2025-04-07 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-04-07 10:03:18] Production.INFO: count ==3216 [2025-04-07 10:03:20] Production.ERROR: pbx CDR StartTime 2025-04-07 07:03:05 - End Time 2025-04-07 10:03:05 [2025-04-07 10:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854122', 'tblTempUsageDetail_20' ) start [2025-04-07 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854122', 'tblTempUsageDetail_20' ) end [2025-04-07 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854122', 'tblTempVendorCDR_20' ) start [2025-04-07 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854122', 'tblTempVendorCDR_20' ) end [2025-04-07 10:03:20] Production.INFO: ProcessCDR(1,14854122,1,1,2) [2025-04-07 10:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854122', 'tblTempUsageDetail_20' ) start [2025-04-07 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854122', 'tblTempUsageDetail_20' ) end [2025-04-07 10:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:03:24] Production.INFO: ==3201== Releasing lock... [2025-04-07 10:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:03:24] Production.INFO: 52.25 MB #Memory Used# [2025-04-07 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:04:06 [end_date_ymd] => 2025-04-07 10:04:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:04:06' and `end` < '2025-04-07 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-04-07 10:04:20] Production.INFO: count ==3229 [2025-04-07 10:04:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:04:06 - End Time 2025-04-07 10:04:06 [2025-04-07 10:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854127', 'tblTempUsageDetail_20' ) start [2025-04-07 10:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854127', 'tblTempUsageDetail_20' ) end [2025-04-07 10:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854127', 'tblTempVendorCDR_20' ) start [2025-04-07 10:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854127', 'tblTempVendorCDR_20' ) end [2025-04-07 10:04:21] Production.INFO: ProcessCDR(1,14854127,1,1,2) [2025-04-07 10:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854127', 'tblTempUsageDetail_20' ) start [2025-04-07 10:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854127', 'tblTempUsageDetail_20' ) end [2025-04-07 10:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:04:27] Production.INFO: ==3273== Releasing lock... [2025-04-07 10:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:04:27] Production.INFO: 53 MB #Memory Used# [2025-04-07 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:05:05 [end_date_ymd] => 2025-04-07 10:05:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:05:05' and `end` < '2025-04-07 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-04-07 10:05:19] Production.INFO: count ==3261 [2025-04-07 10:05:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:05:05 - End Time 2025-04-07 10:05:05 [2025-04-07 10:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854132', 'tblTempUsageDetail_20' ) start [2025-04-07 10:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854132', 'tblTempUsageDetail_20' ) end [2025-04-07 10:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854132', 'tblTempVendorCDR_20' ) start [2025-04-07 10:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854132', 'tblTempVendorCDR_20' ) end [2025-04-07 10:05:21] Production.INFO: ProcessCDR(1,14854132,1,1,2) [2025-04-07 10:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854132', 'tblTempUsageDetail_20' ) start [2025-04-07 10:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854132', 'tblTempUsageDetail_20' ) end [2025-04-07 10:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:05:27] Production.INFO: ==3347== Releasing lock... [2025-04-07 10:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:05:27] Production.INFO: 53.25 MB #Memory Used# [2025-04-07 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:06:06 [end_date_ymd] => 2025-04-07 10:06:06 [RateCDR] => 1 ) [2025-04-07 10: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-04-07 07:06:06' and `end` < '2025-04-07 10: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-04-07 10:06:19] Production.INFO: count ==3280 [2025-04-07 10:06:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:06:06 - End Time 2025-04-07 10:06:06 [2025-04-07 10:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854137', 'tblTempUsageDetail_20' ) start [2025-04-07 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854137', 'tblTempUsageDetail_20' ) end [2025-04-07 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854137', 'tblTempVendorCDR_20' ) start [2025-04-07 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854137', 'tblTempVendorCDR_20' ) end [2025-04-07 10:06:21] Production.INFO: ProcessCDR(1,14854137,1,1,2) [2025-04-07 10:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854137', 'tblTempUsageDetail_20' ) start [2025-04-07 10:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854137', 'tblTempUsageDetail_20' ) end [2025-04-07 10:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:06:27] Production.INFO: ==3425== Releasing lock... [2025-04-07 10:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:06:27] Production.INFO: 52.5 MB #Memory Used# [2025-04-07 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:07:06 [end_date_ymd] => 2025-04-07 10:07:06 [RateCDR] => 1 ) [2025-04-07 10:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 07:07:06' and `end` < '2025-04-07 10:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 10:07:19] Production.INFO: count ==3320 [2025-04-07 10:07:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:07:06 - End Time 2025-04-07 10:07:06 [2025-04-07 10:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854142', 'tblTempUsageDetail_20' ) start [2025-04-07 10:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854142', 'tblTempUsageDetail_20' ) end [2025-04-07 10:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854142', 'tblTempVendorCDR_20' ) start [2025-04-07 10:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854142', 'tblTempVendorCDR_20' ) end [2025-04-07 10:07:21] Production.INFO: ProcessCDR(1,14854142,1,1,2) [2025-04-07 10:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854142', 'tblTempUsageDetail_20' ) start [2025-04-07 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854142', 'tblTempUsageDetail_20' ) end [2025-04-07 10:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:07:25] Production.INFO: ==3507== Releasing lock... [2025-04-07 10:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:07:25] Production.INFO: 53.75 MB #Memory Used# [2025-04-07 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:08:06 [end_date_ymd] => 2025-04-07 10:08:06 [RateCDR] => 1 ) [2025-04-07 10: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-04-07 07:08:06' and `end` < '2025-04-07 10: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-04-07 10:08:20] Production.INFO: count ==3354 [2025-04-07 10:08:22] Production.ERROR: pbx CDR StartTime 2025-04-07 07:08:06 - End Time 2025-04-07 10:08:06 [2025-04-07 10:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854147', 'tblTempUsageDetail_20' ) start [2025-04-07 10:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854147', 'tblTempUsageDetail_20' ) end [2025-04-07 10:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854147', 'tblTempVendorCDR_20' ) start [2025-04-07 10:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854147', 'tblTempVendorCDR_20' ) end [2025-04-07 10:08:22] Production.INFO: ProcessCDR(1,14854147,1,1,2) [2025-04-07 10:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854147', 'tblTempUsageDetail_20' ) start [2025-04-07 10:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854147', 'tblTempUsageDetail_20' ) end [2025-04-07 10:08:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:08:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:08:28] Production.INFO: ==3583== Releasing lock... [2025-04-07 10:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:08:28] Production.INFO: 54 MB #Memory Used# [2025-04-07 10:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:09:06 [end_date_ymd] => 2025-04-07 10:09:06 [RateCDR] => 1 ) [2025-04-07 10:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 07:09:06' and `end` < '2025-04-07 10:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 10:09:19] Production.INFO: count ==3377 [2025-04-07 10:09:20] Production.ERROR: pbx CDR StartTime 2025-04-07 07:09:06 - End Time 2025-04-07 10:09:06 [2025-04-07 10:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854152', 'tblTempUsageDetail_20' ) start [2025-04-07 10:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854152', 'tblTempUsageDetail_20' ) end [2025-04-07 10:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854152', 'tblTempVendorCDR_20' ) start [2025-04-07 10:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854152', 'tblTempVendorCDR_20' ) end [2025-04-07 10:09:21] Production.INFO: ProcessCDR(1,14854152,1,1,2) [2025-04-07 10:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854152', 'tblTempUsageDetail_20' ) start [2025-04-07 10:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854152', 'tblTempUsageDetail_20' ) end [2025-04-07 10:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:09:26] Production.INFO: ==3654== Releasing lock... [2025-04-07 10:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:09:26] Production.INFO: 54.25 MB #Memory Used# [2025-04-07 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:10:06 [end_date_ymd] => 2025-04-07 10:10:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:10:06' and `end` < '2025-04-07 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-04-07 10:10:19] Production.INFO: count ==3412 [2025-04-07 10:10:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:10:06 - End Time 2025-04-07 10:10:06 [2025-04-07 10:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854158', 'tblTempUsageDetail_20' ) start [2025-04-07 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854158', 'tblTempUsageDetail_20' ) end [2025-04-07 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854158', 'tblTempVendorCDR_20' ) start [2025-04-07 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854158', 'tblTempVendorCDR_20' ) end [2025-04-07 10:10:21] Production.INFO: ProcessCDR(1,14854158,1,1,2) [2025-04-07 10:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854158', 'tblTempUsageDetail_20' ) start [2025-04-07 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854158', 'tblTempUsageDetail_20' ) end [2025-04-07 10:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:10:26] Production.INFO: ==3733== Releasing lock... [2025-04-07 10:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:10:26] Production.INFO: 54.5 MB #Memory Used# [2025-04-07 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:11:05 [end_date_ymd] => 2025-04-07 10:11:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:11:05' and `end` < '2025-04-07 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-04-07 10:11:18] Production.INFO: count ==3490 [2025-04-07 10:11:20] Production.ERROR: pbx CDR StartTime 2025-04-07 07:11:05 - End Time 2025-04-07 10:11:05 [2025-04-07 10:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854163', 'tblTempUsageDetail_20' ) start [2025-04-07 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854163', 'tblTempUsageDetail_20' ) end [2025-04-07 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854163', 'tblTempVendorCDR_20' ) start [2025-04-07 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854163', 'tblTempVendorCDR_20' ) end [2025-04-07 10:11:20] Production.INFO: ProcessCDR(1,14854163,1,1,2) [2025-04-07 10:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854163', 'tblTempUsageDetail_20' ) start [2025-04-07 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854163', 'tblTempUsageDetail_20' ) end [2025-04-07 10:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:11:25] Production.INFO: ==3810== Releasing lock... [2025-04-07 10:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:11:25] Production.INFO: 55 MB #Memory Used# [2025-04-07 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:12:06 [end_date_ymd] => 2025-04-07 10:12:06 [RateCDR] => 1 ) [2025-04-07 10:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 07:12:06' and `end` < '2025-04-07 10:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 10:12:19] Production.INFO: count ==3516 [2025-04-07 10:12:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:12:06 - End Time 2025-04-07 10:12:06 [2025-04-07 10:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854168', 'tblTempUsageDetail_20' ) start [2025-04-07 10:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854168', 'tblTempUsageDetail_20' ) end [2025-04-07 10:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854168', 'tblTempVendorCDR_20' ) start [2025-04-07 10:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854168', 'tblTempVendorCDR_20' ) end [2025-04-07 10:12:21] Production.INFO: ProcessCDR(1,14854168,1,1,2) [2025-04-07 10:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854168', 'tblTempUsageDetail_20' ) start [2025-04-07 10:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854168', 'tblTempUsageDetail_20' ) end [2025-04-07 10:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:12:26] Production.INFO: ==3931== Releasing lock... [2025-04-07 10:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:12:26] Production.INFO: 55.25 MB #Memory Used# [2025-04-07 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:13:05 [end_date_ymd] => 2025-04-07 10:13:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:13:05' and `end` < '2025-04-07 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-04-07 10:13:18] Production.INFO: count ==3537 [2025-04-07 10:13:20] Production.ERROR: pbx CDR StartTime 2025-04-07 07:13:05 - End Time 2025-04-07 10:13:05 [2025-04-07 10:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854173', 'tblTempUsageDetail_20' ) start [2025-04-07 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854173', 'tblTempUsageDetail_20' ) end [2025-04-07 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854173', 'tblTempVendorCDR_20' ) start [2025-04-07 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854173', 'tblTempVendorCDR_20' ) end [2025-04-07 10:13:20] Production.INFO: ProcessCDR(1,14854173,1,1,2) [2025-04-07 10:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854173', 'tblTempUsageDetail_20' ) start [2025-04-07 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854173', 'tblTempUsageDetail_20' ) end [2025-04-07 10:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:13:25] Production.INFO: ==4004== Releasing lock... [2025-04-07 10:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:13:25] Production.INFO: 55.25 MB #Memory Used# [2025-04-07 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:14:05 [end_date_ymd] => 2025-04-07 10:14:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:14:05' and `end` < '2025-04-07 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-04-07 10:14:19] Production.INFO: count ==3564 [2025-04-07 10:14:20] Production.ERROR: pbx CDR StartTime 2025-04-07 07:14:05 - End Time 2025-04-07 10:14:05 [2025-04-07 10:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854178', 'tblTempUsageDetail_20' ) start [2025-04-07 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854178', 'tblTempUsageDetail_20' ) end [2025-04-07 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854178', 'tblTempVendorCDR_20' ) start [2025-04-07 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854178', 'tblTempVendorCDR_20' ) end [2025-04-07 10:14:20] Production.INFO: ProcessCDR(1,14854178,1,1,2) [2025-04-07 10:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854178', 'tblTempUsageDetail_20' ) start [2025-04-07 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854178', 'tblTempUsageDetail_20' ) end [2025-04-07 10:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:14:25] Production.INFO: ==4078== Releasing lock... [2025-04-07 10:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:14:25] Production.INFO: 55.5 MB #Memory Used# [2025-04-07 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:15:05 [end_date_ymd] => 2025-04-07 10:15:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:15:05' and `end` < '2025-04-07 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-04-07 10:15:18] Production.INFO: count ==3587 [2025-04-07 10:15:20] Production.ERROR: pbx CDR StartTime 2025-04-07 07:15:05 - End Time 2025-04-07 10:15:05 [2025-04-07 10:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854183', 'tblTempUsageDetail_20' ) start [2025-04-07 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854183', 'tblTempUsageDetail_20' ) end [2025-04-07 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854183', 'tblTempVendorCDR_20' ) start [2025-04-07 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854183', 'tblTempVendorCDR_20' ) end [2025-04-07 10:15:20] Production.INFO: ProcessCDR(1,14854183,1,1,2) [2025-04-07 10:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854183', 'tblTempUsageDetail_20' ) start [2025-04-07 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854183', 'tblTempUsageDetail_20' ) end [2025-04-07 10:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:15:25] Production.INFO: ==4158== Releasing lock... [2025-04-07 10:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:15:25] Production.INFO: 55.25 MB #Memory Used# [2025-04-07 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:16:05 [end_date_ymd] => 2025-04-07 10:16:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:16:05' and `end` < '2025-04-07 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-04-07 10:16:19] Production.INFO: count ==3608 [2025-04-07 10:16:20] Production.ERROR: pbx CDR StartTime 2025-04-07 07:16:05 - End Time 2025-04-07 10:16:05 [2025-04-07 10:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854188', 'tblTempUsageDetail_20' ) start [2025-04-07 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854188', 'tblTempUsageDetail_20' ) end [2025-04-07 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854188', 'tblTempVendorCDR_20' ) start [2025-04-07 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854188', 'tblTempVendorCDR_20' ) end [2025-04-07 10:16:21] Production.INFO: ProcessCDR(1,14854188,1,1,2) [2025-04-07 10:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854188', 'tblTempUsageDetail_20' ) start [2025-04-07 10:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854188', 'tblTempUsageDetail_20' ) end [2025-04-07 10:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:16:26] Production.INFO: ==4237== Releasing lock... [2025-04-07 10:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:16:26] Production.INFO: 55.25 MB #Memory Used# [2025-04-07 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:17:05 [end_date_ymd] => 2025-04-07 10:17:05 [RateCDR] => 1 ) [2025-04-07 10:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 07:17:05' and `end` < '2025-04-07 10:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 10:17:19] Production.INFO: count ==3658 [2025-04-07 10:17:20] Production.ERROR: pbx CDR StartTime 2025-04-07 07:17:05 - End Time 2025-04-07 10:17:05 [2025-04-07 10:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854193', 'tblTempUsageDetail_20' ) start [2025-04-07 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854193', 'tblTempUsageDetail_20' ) end [2025-04-07 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854193', 'tblTempVendorCDR_20' ) start [2025-04-07 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854193', 'tblTempVendorCDR_20' ) end [2025-04-07 10:17:20] Production.INFO: ProcessCDR(1,14854193,1,1,2) [2025-04-07 10:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854193', 'tblTempUsageDetail_20' ) start [2025-04-07 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854193', 'tblTempUsageDetail_20' ) end [2025-04-07 10:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:17:25] Production.INFO: ==4310== Releasing lock... [2025-04-07 10:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:17:25] Production.INFO: 55.75 MB #Memory Used# [2025-04-07 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:18:06 [end_date_ymd] => 2025-04-07 10:18:06 [RateCDR] => 1 ) [2025-04-07 10: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-04-07 07:18:06' and `end` < '2025-04-07 10: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-04-07 10:18:19] Production.INFO: count ==3674 [2025-04-07 10:18:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:18:06 - End Time 2025-04-07 10:18:06 [2025-04-07 10:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854198', 'tblTempUsageDetail_20' ) start [2025-04-07 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854198', 'tblTempUsageDetail_20' ) end [2025-04-07 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854198', 'tblTempVendorCDR_20' ) start [2025-04-07 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854198', 'tblTempVendorCDR_20' ) end [2025-04-07 10:18:21] Production.INFO: ProcessCDR(1,14854198,1,1,2) [2025-04-07 10:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854198', 'tblTempUsageDetail_20' ) start [2025-04-07 10:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854198', 'tblTempUsageDetail_20' ) end [2025-04-07 10:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:18:26] Production.INFO: ==4393== Releasing lock... [2025-04-07 10:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:18:26] Production.INFO: 55.5 MB #Memory Used# [2025-04-07 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:19:05 [end_date_ymd] => 2025-04-07 10:19:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:19:05' and `end` < '2025-04-07 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-04-07 10:19:19] Production.INFO: count ==3680 [2025-04-07 10:19:20] Production.ERROR: pbx CDR StartTime 2025-04-07 07:19:05 - End Time 2025-04-07 10:19:05 [2025-04-07 10:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854203', 'tblTempUsageDetail_20' ) start [2025-04-07 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854203', 'tblTempUsageDetail_20' ) end [2025-04-07 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854203', 'tblTempVendorCDR_20' ) start [2025-04-07 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854203', 'tblTempVendorCDR_20' ) end [2025-04-07 10:19:20] Production.INFO: ProcessCDR(1,14854203,1,1,2) [2025-04-07 10:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854203', 'tblTempUsageDetail_20' ) start [2025-04-07 10:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854203', 'tblTempUsageDetail_20' ) end [2025-04-07 10:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:19:26] Production.INFO: ==4475== Releasing lock... [2025-04-07 10:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:19:26] Production.INFO: 55.5 MB #Memory Used# [2025-04-07 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:20:06 [end_date_ymd] => 2025-04-07 10:20:06 [RateCDR] => 1 ) [2025-04-07 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 07:20:06' and `end` < '2025-04-07 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 10:20:19] Production.INFO: count ==3681 [2025-04-07 10:20:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:20:06 - End Time 2025-04-07 10:20:06 [2025-04-07 10:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854208', 'tblTempUsageDetail_20' ) start [2025-04-07 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854208', 'tblTempUsageDetail_20' ) end [2025-04-07 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854208', 'tblTempVendorCDR_20' ) start [2025-04-07 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854208', 'tblTempVendorCDR_20' ) end [2025-04-07 10:20:21] Production.INFO: ProcessCDR(1,14854208,1,1,2) [2025-04-07 10:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854208', 'tblTempUsageDetail_20' ) start [2025-04-07 10:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854208', 'tblTempUsageDetail_20' ) end [2025-04-07 10:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:20:27] Production.INFO: ==4550== Releasing lock... [2025-04-07 10:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:20:27] Production.INFO: 55.75 MB #Memory Used# [2025-04-07 10:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:21:06 [end_date_ymd] => 2025-04-07 10:21:06 [RateCDR] => 1 ) [2025-04-07 10:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 07:21:06' and `end` < '2025-04-07 10:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 10:21:20] Production.INFO: count ==3797 [2025-04-07 10:21:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:21:06 - End Time 2025-04-07 10:21:06 [2025-04-07 10:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854214', 'tblTempUsageDetail_20' ) start [2025-04-07 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854214', 'tblTempUsageDetail_20' ) end [2025-04-07 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854214', 'tblTempVendorCDR_20' ) start [2025-04-07 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854214', 'tblTempVendorCDR_20' ) end [2025-04-07 10:21:21] Production.INFO: ProcessCDR(1,14854214,1,1,2) [2025-04-07 10:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854214', 'tblTempUsageDetail_20' ) start [2025-04-07 10:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854214', 'tblTempUsageDetail_20' ) end [2025-04-07 10:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:21:27] Production.INFO: ==4630== Releasing lock... [2025-04-07 10:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:21:27] Production.INFO: 56.25 MB #Memory Used# [2025-04-07 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:22:05 [end_date_ymd] => 2025-04-07 10:22:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:22:05' and `end` < '2025-04-07 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-04-07 10:22:19] Production.INFO: count ==3806 [2025-04-07 10:22:20] Production.ERROR: pbx CDR StartTime 2025-04-07 07:22:05 - End Time 2025-04-07 10:22:05 [2025-04-07 10:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854219', 'tblTempUsageDetail_20' ) start [2025-04-07 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854219', 'tblTempUsageDetail_20' ) end [2025-04-07 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854219', 'tblTempVendorCDR_20' ) start [2025-04-07 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854219', 'tblTempVendorCDR_20' ) end [2025-04-07 10:22:20] Production.INFO: ProcessCDR(1,14854219,1,1,2) [2025-04-07 10:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854219', 'tblTempUsageDetail_20' ) start [2025-04-07 10:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854219', 'tblTempUsageDetail_20' ) end [2025-04-07 10:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:22:26] Production.INFO: ==4716== Releasing lock... [2025-04-07 10:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:22:26] Production.INFO: 56.5 MB #Memory Used# [2025-04-07 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:23:05 [end_date_ymd] => 2025-04-07 10:23:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:23:05' and `end` < '2025-04-07 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-04-07 10:23:19] Production.INFO: count ==3829 [2025-04-07 10:23:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:23:05 - End Time 2025-04-07 10:23:05 [2025-04-07 10:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854224', 'tblTempUsageDetail_20' ) start [2025-04-07 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854224', 'tblTempUsageDetail_20' ) end [2025-04-07 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854224', 'tblTempVendorCDR_20' ) start [2025-04-07 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854224', 'tblTempVendorCDR_20' ) end [2025-04-07 10:23:21] Production.INFO: ProcessCDR(1,14854224,1,1,2) [2025-04-07 10:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854224', 'tblTempUsageDetail_20' ) start [2025-04-07 10:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854224', 'tblTempUsageDetail_20' ) end [2025-04-07 10:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:23:26] Production.INFO: ==4791== Releasing lock... [2025-04-07 10:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:23:26] Production.INFO: 56.75 MB #Memory Used# [2025-04-07 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:24:06 [end_date_ymd] => 2025-04-07 10:24:06 [RateCDR] => 1 ) [2025-04-07 10:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 07:24:06' and `end` < '2025-04-07 10:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 10:24:19] Production.INFO: count ==3857 [2025-04-07 10:24:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:24:06 - End Time 2025-04-07 10:24:06 [2025-04-07 10:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854229', 'tblTempUsageDetail_20' ) start [2025-04-07 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854229', 'tblTempUsageDetail_20' ) end [2025-04-07 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854229', 'tblTempVendorCDR_20' ) start [2025-04-07 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854229', 'tblTempVendorCDR_20' ) end [2025-04-07 10:24:21] Production.INFO: ProcessCDR(1,14854229,1,1,2) [2025-04-07 10:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854229', 'tblTempUsageDetail_20' ) start [2025-04-07 10:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854229', 'tblTempUsageDetail_20' ) end [2025-04-07 10:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:24:26] Production.INFO: ==4871== Releasing lock... [2025-04-07 10:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:24:26] Production.INFO: 56.75 MB #Memory Used# [2025-04-07 10:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:25:04 [end_date_ymd] => 2025-04-07 10:25:04 [RateCDR] => 1 ) [2025-04-07 10: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-04-07 07:25:04' and `end` < '2025-04-07 10: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-04-07 10:25:18] Production.INFO: count ==3857 [2025-04-07 10:25:20] Production.ERROR: pbx CDR StartTime 2025-04-07 07:25:04 - End Time 2025-04-07 10:25:04 [2025-04-07 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854234', 'tblTempUsageDetail_20' ) start [2025-04-07 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854234', 'tblTempUsageDetail_20' ) end [2025-04-07 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854234', 'tblTempVendorCDR_20' ) start [2025-04-07 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854234', 'tblTempVendorCDR_20' ) end [2025-04-07 10:25:20] Production.INFO: ProcessCDR(1,14854234,1,1,2) [2025-04-07 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854234', 'tblTempUsageDetail_20' ) start [2025-04-07 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854234', 'tblTempUsageDetail_20' ) end [2025-04-07 10:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:25:25] Production.INFO: ==4944== Releasing lock... [2025-04-07 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:25:25] Production.INFO: 56.75 MB #Memory Used# [2025-04-07 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:26:05 [end_date_ymd] => 2025-04-07 10:26:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:26:05' and `end` < '2025-04-07 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-04-07 10:26:19] Production.INFO: count ==3874 [2025-04-07 10:26:20] Production.ERROR: pbx CDR StartTime 2025-04-07 07:26:05 - End Time 2025-04-07 10:26:05 [2025-04-07 10:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854239', 'tblTempUsageDetail_20' ) start [2025-04-07 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854239', 'tblTempUsageDetail_20' ) end [2025-04-07 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854239', 'tblTempVendorCDR_20' ) start [2025-04-07 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854239', 'tblTempVendorCDR_20' ) end [2025-04-07 10:26:20] Production.INFO: ProcessCDR(1,14854239,1,1,2) [2025-04-07 10:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854239', 'tblTempUsageDetail_20' ) start [2025-04-07 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854239', 'tblTempUsageDetail_20' ) end [2025-04-07 10:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:26:25] Production.INFO: ==5017== Releasing lock... [2025-04-07 10:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:26:25] Production.INFO: 57 MB #Memory Used# [2025-04-07 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:27:05 [end_date_ymd] => 2025-04-07 10:27:05 [RateCDR] => 1 ) [2025-04-07 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 07:27:05' and `end` < '2025-04-07 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 10:27:19] Production.INFO: count ==3884 [2025-04-07 10:27:20] Production.ERROR: pbx CDR StartTime 2025-04-07 07:27:05 - End Time 2025-04-07 10:27:05 [2025-04-07 10:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854244', 'tblTempUsageDetail_20' ) start [2025-04-07 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854244', 'tblTempUsageDetail_20' ) end [2025-04-07 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854244', 'tblTempVendorCDR_20' ) start [2025-04-07 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854244', 'tblTempVendorCDR_20' ) end [2025-04-07 10:27:21] Production.INFO: ProcessCDR(1,14854244,1,1,2) [2025-04-07 10:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854244', 'tblTempUsageDetail_20' ) start [2025-04-07 10:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854244', 'tblTempUsageDetail_20' ) end [2025-04-07 10:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:27:26] Production.INFO: ==5094== Releasing lock... [2025-04-07 10:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:27:26] Production.INFO: 57 MB #Memory Used# [2025-04-07 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:28:05 [end_date_ymd] => 2025-04-07 10:28:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:28:05' and `end` < '2025-04-07 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-04-07 10:28:18] Production.INFO: count ==3889 [2025-04-07 10:28:20] Production.ERROR: pbx CDR StartTime 2025-04-07 07:28:05 - End Time 2025-04-07 10:28:05 [2025-04-07 10:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854249', 'tblTempUsageDetail_20' ) start [2025-04-07 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854249', 'tblTempUsageDetail_20' ) end [2025-04-07 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854249', 'tblTempVendorCDR_20' ) start [2025-04-07 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854249', 'tblTempVendorCDR_20' ) end [2025-04-07 10:28:20] Production.INFO: ProcessCDR(1,14854249,1,1,2) [2025-04-07 10:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854249', 'tblTempUsageDetail_20' ) start [2025-04-07 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854249', 'tblTempUsageDetail_20' ) end [2025-04-07 10:28:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:28:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:28:25] Production.INFO: ==5211== Releasing lock... [2025-04-07 10:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:28:25] Production.INFO: 57 MB #Memory Used# [2025-04-07 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:29:05 [end_date_ymd] => 2025-04-07 10:29:05 [RateCDR] => 1 ) [2025-04-07 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 07:29:05' and `end` < '2025-04-07 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 10:29:18] Production.INFO: count ==3901 [2025-04-07 10:29:20] Production.ERROR: pbx CDR StartTime 2025-04-07 07:29:05 - End Time 2025-04-07 10:29:05 [2025-04-07 10:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854254', 'tblTempUsageDetail_20' ) start [2025-04-07 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854254', 'tblTempUsageDetail_20' ) end [2025-04-07 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854254', 'tblTempVendorCDR_20' ) start [2025-04-07 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854254', 'tblTempVendorCDR_20' ) end [2025-04-07 10:29:20] Production.INFO: ProcessCDR(1,14854254,1,1,2) [2025-04-07 10:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854254', 'tblTempUsageDetail_20' ) start [2025-04-07 10:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854254', 'tblTempUsageDetail_20' ) end [2025-04-07 10:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:29:26] Production.INFO: ==5292== Releasing lock... [2025-04-07 10:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:29:26] Production.INFO: 57.25 MB #Memory Used# [2025-04-07 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:30:06 [end_date_ymd] => 2025-04-07 10:30:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:30:06' and `end` < '2025-04-07 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-04-07 10:30:19] Production.INFO: count ==3907 [2025-04-07 10:30:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:30:06 - End Time 2025-04-07 10:30:06 [2025-04-07 10:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854260', 'tblTempUsageDetail_20' ) start [2025-04-07 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854260', 'tblTempUsageDetail_20' ) end [2025-04-07 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854260', 'tblTempVendorCDR_20' ) start [2025-04-07 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854260', 'tblTempVendorCDR_20' ) end [2025-04-07 10:30:21] Production.INFO: ProcessCDR(1,14854260,1,1,2) [2025-04-07 10:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854260', 'tblTempUsageDetail_20' ) start [2025-04-07 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854260', 'tblTempUsageDetail_20' ) end [2025-04-07 10:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:30:25] Production.INFO: ==5373== Releasing lock... [2025-04-07 10:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:30:25] Production.INFO: 57.25 MB #Memory Used# [2025-04-07 10:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:31:06 [end_date_ymd] => 2025-04-07 10:31:06 [RateCDR] => 1 ) [2025-04-07 10: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-04-07 07:31:06' and `end` < '2025-04-07 10: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-04-07 10:31:19] Production.INFO: count ==3978 [2025-04-07 10:31:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:31:06 - End Time 2025-04-07 10:31:06 [2025-04-07 10:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854265', 'tblTempUsageDetail_20' ) start [2025-04-07 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854265', 'tblTempUsageDetail_20' ) end [2025-04-07 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854265', 'tblTempVendorCDR_20' ) start [2025-04-07 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854265', 'tblTempVendorCDR_20' ) end [2025-04-07 10:31:21] Production.INFO: ProcessCDR(1,14854265,1,1,2) [2025-04-07 10:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854265', 'tblTempUsageDetail_20' ) start [2025-04-07 10:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854265', 'tblTempUsageDetail_20' ) end [2025-04-07 10:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:31:27] Production.INFO: ==5453== Releasing lock... [2025-04-07 10:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:31:27] Production.INFO: 57.75 MB #Memory Used# [2025-04-07 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:32:05 [end_date_ymd] => 2025-04-07 10:32:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:32:05' and `end` < '2025-04-07 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-04-07 10:32:19] Production.INFO: count ==3993 [2025-04-07 10:32:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:32:05 - End Time 2025-04-07 10:32:05 [2025-04-07 10:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854270', 'tblTempUsageDetail_20' ) start [2025-04-07 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854270', 'tblTempUsageDetail_20' ) end [2025-04-07 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854270', 'tblTempVendorCDR_20' ) start [2025-04-07 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854270', 'tblTempVendorCDR_20' ) end [2025-04-07 10:32:21] Production.INFO: ProcessCDR(1,14854270,1,1,2) [2025-04-07 10:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854270', 'tblTempUsageDetail_20' ) start [2025-04-07 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854270', 'tblTempUsageDetail_20' ) end [2025-04-07 10:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:32:26] Production.INFO: ==5530== Releasing lock... [2025-04-07 10:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:32:26] Production.INFO: 57.75 MB #Memory Used# [2025-04-07 10:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:33:06 [end_date_ymd] => 2025-04-07 10:33:06 [RateCDR] => 1 ) [2025-04-07 10:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 07:33:06' and `end` < '2025-04-07 10:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 10:33:19] Production.INFO: count ==3995 [2025-04-07 10:33:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:33:06 - End Time 2025-04-07 10:33:06 [2025-04-07 10:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854275', 'tblTempUsageDetail_20' ) start [2025-04-07 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854275', 'tblTempUsageDetail_20' ) end [2025-04-07 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854275', 'tblTempVendorCDR_20' ) start [2025-04-07 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854275', 'tblTempVendorCDR_20' ) end [2025-04-07 10:33:21] Production.INFO: ProcessCDR(1,14854275,1,1,2) [2025-04-07 10:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854275', 'tblTempUsageDetail_20' ) start [2025-04-07 10:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854275', 'tblTempUsageDetail_20' ) end [2025-04-07 10:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:33:27] Production.INFO: ==5606== Releasing lock... [2025-04-07 10:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:33:27] Production.INFO: 57.75 MB #Memory Used# [2025-04-07 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:34:05 [end_date_ymd] => 2025-04-07 10:34:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:34:05' and `end` < '2025-04-07 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-04-07 10:34:19] Production.INFO: count ==4018 [2025-04-07 10:34:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:34:05 - End Time 2025-04-07 10:34:05 [2025-04-07 10:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854280', 'tblTempUsageDetail_20' ) start [2025-04-07 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854280', 'tblTempUsageDetail_20' ) end [2025-04-07 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854280', 'tblTempVendorCDR_20' ) start [2025-04-07 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854280', 'tblTempVendorCDR_20' ) end [2025-04-07 10:34:21] Production.INFO: ProcessCDR(1,14854280,1,1,2) [2025-04-07 10:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854280', 'tblTempUsageDetail_20' ) start [2025-04-07 10:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854280', 'tblTempUsageDetail_20' ) end [2025-04-07 10:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:34:26] Production.INFO: ==5683== Releasing lock... [2025-04-07 10:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:34:26] Production.INFO: 58 MB #Memory Used# [2025-04-07 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:35:05 [end_date_ymd] => 2025-04-07 10:35:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:35:05' and `end` < '2025-04-07 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-04-07 10:35:19] Production.INFO: count ==4045 [2025-04-07 10:35:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:35:05 - End Time 2025-04-07 10:35:05 [2025-04-07 10:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854285', 'tblTempUsageDetail_20' ) start [2025-04-07 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854285', 'tblTempUsageDetail_20' ) end [2025-04-07 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854285', 'tblTempVendorCDR_20' ) start [2025-04-07 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854285', 'tblTempVendorCDR_20' ) end [2025-04-07 10:35:21] Production.INFO: ProcessCDR(1,14854285,1,1,2) [2025-04-07 10:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854285', 'tblTempUsageDetail_20' ) start [2025-04-07 10:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854285', 'tblTempUsageDetail_20' ) end [2025-04-07 10:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:35:27] Production.INFO: ==5754== Releasing lock... [2025-04-07 10:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:35:27] Production.INFO: 58.25 MB #Memory Used# [2025-04-07 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:36:05 [end_date_ymd] => 2025-04-07 10:36:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:36:05' and `end` < '2025-04-07 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-04-07 10:36:18] Production.INFO: count ==4053 [2025-04-07 10:36:20] Production.ERROR: pbx CDR StartTime 2025-04-07 07:36:05 - End Time 2025-04-07 10:36:05 [2025-04-07 10:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854290', 'tblTempUsageDetail_20' ) start [2025-04-07 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854290', 'tblTempUsageDetail_20' ) end [2025-04-07 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854290', 'tblTempVendorCDR_20' ) start [2025-04-07 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854290', 'tblTempVendorCDR_20' ) end [2025-04-07 10:36:20] Production.INFO: ProcessCDR(1,14854290,1,1,2) [2025-04-07 10:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854290', 'tblTempUsageDetail_20' ) start [2025-04-07 10:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854290', 'tblTempUsageDetail_20' ) end [2025-04-07 10:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:36:26] Production.INFO: ==5833== Releasing lock... [2025-04-07 10:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:36:26] Production.INFO: 58.25 MB #Memory Used# [2025-04-07 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:37:05 [end_date_ymd] => 2025-04-07 10:37:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:37:05' and `end` < '2025-04-07 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-04-07 10:37:19] Production.INFO: count ==4059 [2025-04-07 10:37:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:37:05 - End Time 2025-04-07 10:37:05 [2025-04-07 10:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854295', 'tblTempUsageDetail_20' ) start [2025-04-07 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854295', 'tblTempUsageDetail_20' ) end [2025-04-07 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854295', 'tblTempVendorCDR_20' ) start [2025-04-07 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854295', 'tblTempVendorCDR_20' ) end [2025-04-07 10:37:21] Production.INFO: ProcessCDR(1,14854295,1,1,2) [2025-04-07 10:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854295', 'tblTempUsageDetail_20' ) start [2025-04-07 10:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854295', 'tblTempUsageDetail_20' ) end [2025-04-07 10:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:37:26] Production.INFO: ==5914== Releasing lock... [2025-04-07 10:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:37:26] Production.INFO: 58.25 MB #Memory Used# [2025-04-07 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:38:05 [end_date_ymd] => 2025-04-07 10:38:05 [RateCDR] => 1 ) [2025-04-07 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 07:38:05' and `end` < '2025-04-07 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 10:38:19] Production.INFO: count ==4080 [2025-04-07 10:38:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:38:05 - End Time 2025-04-07 10:38:05 [2025-04-07 10:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854300', 'tblTempUsageDetail_20' ) start [2025-04-07 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854300', 'tblTempUsageDetail_20' ) end [2025-04-07 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854300', 'tblTempVendorCDR_20' ) start [2025-04-07 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854300', 'tblTempVendorCDR_20' ) end [2025-04-07 10:38:21] Production.INFO: ProcessCDR(1,14854300,1,1,2) [2025-04-07 10:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854300', 'tblTempUsageDetail_20' ) start [2025-04-07 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854300', 'tblTempUsageDetail_20' ) end [2025-04-07 10:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:38:26] Production.INFO: ==5993== Releasing lock... [2025-04-07 10:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:38:26] Production.INFO: 58.5 MB #Memory Used# [2025-04-07 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:39:05 [end_date_ymd] => 2025-04-07 10:39:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:39:05' and `end` < '2025-04-07 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-04-07 10:39:19] Production.INFO: count ==4115 [2025-04-07 10:39:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:39:05 - End Time 2025-04-07 10:39:05 [2025-04-07 10:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854305', 'tblTempUsageDetail_20' ) start [2025-04-07 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854305', 'tblTempUsageDetail_20' ) end [2025-04-07 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854305', 'tblTempVendorCDR_20' ) start [2025-04-07 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854305', 'tblTempVendorCDR_20' ) end [2025-04-07 10:39:21] Production.INFO: ProcessCDR(1,14854305,1,1,2) [2025-04-07 10:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854305', 'tblTempUsageDetail_20' ) start [2025-04-07 10:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854305', 'tblTempUsageDetail_20' ) end [2025-04-07 10:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:39:26] Production.INFO: ==6066== Releasing lock... [2025-04-07 10:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:39:26] Production.INFO: 58.75 MB #Memory Used# [2025-04-07 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:40:05 [end_date_ymd] => 2025-04-07 10:40:05 [RateCDR] => 1 ) [2025-04-07 10:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 07:40:05' and `end` < '2025-04-07 10:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 10:40:19] Production.INFO: count ==4134 [2025-04-07 10:40:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:40:05 - End Time 2025-04-07 10:40:05 [2025-04-07 10:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854310', 'tblTempUsageDetail_20' ) start [2025-04-07 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854310', 'tblTempUsageDetail_20' ) end [2025-04-07 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854310', 'tblTempVendorCDR_20' ) start [2025-04-07 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854310', 'tblTempVendorCDR_20' ) end [2025-04-07 10:40:21] Production.INFO: ProcessCDR(1,14854310,1,1,2) [2025-04-07 10:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854310', 'tblTempUsageDetail_20' ) start [2025-04-07 10:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854310', 'tblTempUsageDetail_20' ) end [2025-04-07 10:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:40:27] Production.INFO: ==6146== Releasing lock... [2025-04-07 10:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:40:27] Production.INFO: 59 MB #Memory Used# [2025-04-07 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:41:05 [end_date_ymd] => 2025-04-07 10:41:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:41:05' and `end` < '2025-04-07 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-04-07 10:41:19] Production.INFO: count ==4267 [2025-04-07 10:41:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:41:05 - End Time 2025-04-07 10:41:05 [2025-04-07 10:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854316', 'tblTempUsageDetail_20' ) start [2025-04-07 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854316', 'tblTempUsageDetail_20' ) end [2025-04-07 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854316', 'tblTempVendorCDR_20' ) start [2025-04-07 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854316', 'tblTempVendorCDR_20' ) end [2025-04-07 10:41:21] Production.INFO: ProcessCDR(1,14854316,1,1,2) [2025-04-07 10:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854316', 'tblTempUsageDetail_20' ) start [2025-04-07 10:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854316', 'tblTempUsageDetail_20' ) end [2025-04-07 10:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:41:26] Production.INFO: ==6222== Releasing lock... [2025-04-07 10:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:41:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-07 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:42:05 [end_date_ymd] => 2025-04-07 10:42:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:42:05' and `end` < '2025-04-07 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-04-07 10:42:20] Production.INFO: count ==4287 [2025-04-07 10:42:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:42:05 - End Time 2025-04-07 10:42:05 [2025-04-07 10:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854321', 'tblTempUsageDetail_20' ) start [2025-04-07 10:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854321', 'tblTempUsageDetail_20' ) end [2025-04-07 10:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854321', 'tblTempVendorCDR_20' ) start [2025-04-07 10:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854321', 'tblTempVendorCDR_20' ) end [2025-04-07 10:42:22] Production.INFO: ProcessCDR(1,14854321,1,1,2) [2025-04-07 10:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854321', 'tblTempUsageDetail_20' ) start [2025-04-07 10:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854321', 'tblTempUsageDetail_20' ) end [2025-04-07 10:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:42:27] Production.INFO: ==6293== Releasing lock... [2025-04-07 10:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:42:27] Production.INFO: 60 MB #Memory Used# [2025-04-07 10:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:43:06 [end_date_ymd] => 2025-04-07 10:43:06 [RateCDR] => 1 ) [2025-04-07 10:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 07:43:06' and `end` < '2025-04-07 10:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 10:43:19] Production.INFO: count ==4297 [2025-04-07 10:43:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:43:06 - End Time 2025-04-07 10:43:06 [2025-04-07 10:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854326', 'tblTempUsageDetail_20' ) start [2025-04-07 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854326', 'tblTempUsageDetail_20' ) end [2025-04-07 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854326', 'tblTempVendorCDR_20' ) start [2025-04-07 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854326', 'tblTempVendorCDR_20' ) end [2025-04-07 10:43:21] Production.INFO: ProcessCDR(1,14854326,1,1,2) [2025-04-07 10:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854326', 'tblTempUsageDetail_20' ) start [2025-04-07 10:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854326', 'tblTempUsageDetail_20' ) end [2025-04-07 10:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:43:27] Production.INFO: ==6403== Releasing lock... [2025-04-07 10:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:43:27] Production.INFO: 60 MB #Memory Used# [2025-04-07 10:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:44:06 [end_date_ymd] => 2025-04-07 10:44:06 [RateCDR] => 1 ) [2025-04-07 10:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 07:44:06' and `end` < '2025-04-07 10:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 10:44:19] Production.INFO: count ==4311 [2025-04-07 10:44:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:44:06 - End Time 2025-04-07 10:44:06 [2025-04-07 10:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854331', 'tblTempUsageDetail_20' ) start [2025-04-07 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854331', 'tblTempUsageDetail_20' ) end [2025-04-07 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854331', 'tblTempVendorCDR_20' ) start [2025-04-07 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854331', 'tblTempVendorCDR_20' ) end [2025-04-07 10:44:21] Production.INFO: ProcessCDR(1,14854331,1,1,2) [2025-04-07 10:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854331', 'tblTempUsageDetail_20' ) start [2025-04-07 10:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854331', 'tblTempUsageDetail_20' ) end [2025-04-07 10:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:44:27] Production.INFO: ==6480== Releasing lock... [2025-04-07 10:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:44:27] Production.INFO: 60.25 MB #Memory Used# [2025-04-07 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:45:05 [end_date_ymd] => 2025-04-07 10:45:05 [RateCDR] => 1 ) [2025-04-07 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 07:45:05' and `end` < '2025-04-07 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 10:45:19] Production.INFO: count ==4322 [2025-04-07 10:45:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:45:05 - End Time 2025-04-07 10:45:05 [2025-04-07 10:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854336', 'tblTempUsageDetail_20' ) start [2025-04-07 10:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854336', 'tblTempUsageDetail_20' ) end [2025-04-07 10:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854336', 'tblTempVendorCDR_20' ) start [2025-04-07 10:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854336', 'tblTempVendorCDR_20' ) end [2025-04-07 10:45:21] Production.INFO: ProcessCDR(1,14854336,1,1,2) [2025-04-07 10:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854336', 'tblTempUsageDetail_20' ) start [2025-04-07 10:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854336', 'tblTempUsageDetail_20' ) end [2025-04-07 10:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:45:27] Production.INFO: ==6557== Releasing lock... [2025-04-07 10:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:45:27] Production.INFO: 60.25 MB #Memory Used# [2025-04-07 10:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:46:06 [end_date_ymd] => 2025-04-07 10:46:06 [RateCDR] => 1 ) [2025-04-07 10: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-04-07 07:46:06' and `end` < '2025-04-07 10: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-04-07 10:46:19] Production.INFO: count ==4340 [2025-04-07 10:46:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:46:06 - End Time 2025-04-07 10:46:06 [2025-04-07 10:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854341', 'tblTempUsageDetail_20' ) start [2025-04-07 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854341', 'tblTempUsageDetail_20' ) end [2025-04-07 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854341', 'tblTempVendorCDR_20' ) start [2025-04-07 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854341', 'tblTempVendorCDR_20' ) end [2025-04-07 10:46:21] Production.INFO: ProcessCDR(1,14854341,1,1,2) [2025-04-07 10:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854341', 'tblTempUsageDetail_20' ) start [2025-04-07 10:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854341', 'tblTempUsageDetail_20' ) end [2025-04-07 10:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:46:27] Production.INFO: ==6633== Releasing lock... [2025-04-07 10:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:46:27] Production.INFO: 60.5 MB #Memory Used# [2025-04-07 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:47:05 [end_date_ymd] => 2025-04-07 10:47:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:47:05' and `end` < '2025-04-07 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-04-07 10:47:19] Production.INFO: count ==4363 [2025-04-07 10:47:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:47:05 - End Time 2025-04-07 10:47:05 [2025-04-07 10:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854346', 'tblTempUsageDetail_20' ) start [2025-04-07 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854346', 'tblTempUsageDetail_20' ) end [2025-04-07 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854346', 'tblTempVendorCDR_20' ) start [2025-04-07 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854346', 'tblTempVendorCDR_20' ) end [2025-04-07 10:47:21] Production.INFO: ProcessCDR(1,14854346,1,1,2) [2025-04-07 10:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854346', 'tblTempUsageDetail_20' ) start [2025-04-07 10:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854346', 'tblTempUsageDetail_20' ) end [2025-04-07 10:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:47:27] Production.INFO: ==6705== Releasing lock... [2025-04-07 10:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:47:27] Production.INFO: 60.5 MB #Memory Used# [2025-04-07 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:48:05 [end_date_ymd] => 2025-04-07 10:48:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:48:05' and `end` < '2025-04-07 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-04-07 10:48:20] Production.INFO: count ==4384 [2025-04-07 10:48:22] Production.ERROR: pbx CDR StartTime 2025-04-07 07:48:05 - End Time 2025-04-07 10:48:05 [2025-04-07 10:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854351', 'tblTempUsageDetail_20' ) start [2025-04-07 10:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854351', 'tblTempUsageDetail_20' ) end [2025-04-07 10:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854351', 'tblTempVendorCDR_20' ) start [2025-04-07 10:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854351', 'tblTempVendorCDR_20' ) end [2025-04-07 10:48:22] Production.INFO: ProcessCDR(1,14854351,1,1,2) [2025-04-07 10:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854351', 'tblTempUsageDetail_20' ) start [2025-04-07 10:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854351', 'tblTempUsageDetail_20' ) end [2025-04-07 10:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:48:27] Production.INFO: ==6777== Releasing lock... [2025-04-07 10:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:48:27] Production.INFO: 60.75 MB #Memory Used# [2025-04-07 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:49:05 [end_date_ymd] => 2025-04-07 10:49:05 [RateCDR] => 1 ) [2025-04-07 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 07:49:05' and `end` < '2025-04-07 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 10:49:19] Production.INFO: count ==4401 [2025-04-07 10:49:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:49:05 - End Time 2025-04-07 10:49:05 [2025-04-07 10:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854356', 'tblTempUsageDetail_20' ) start [2025-04-07 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854356', 'tblTempUsageDetail_20' ) end [2025-04-07 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854356', 'tblTempVendorCDR_20' ) start [2025-04-07 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854356', 'tblTempVendorCDR_20' ) end [2025-04-07 10:49:21] Production.INFO: ProcessCDR(1,14854356,1,1,2) [2025-04-07 10:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854356', 'tblTempUsageDetail_20' ) start [2025-04-07 10:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854356', 'tblTempUsageDetail_20' ) end [2025-04-07 10:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:49:26] Production.INFO: ==6851== Releasing lock... [2025-04-07 10:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:49:26] Production.INFO: 61 MB #Memory Used# [2025-04-07 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:50:06 [end_date_ymd] => 2025-04-07 10:50:06 [RateCDR] => 1 ) [2025-04-07 10:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 07:50:06' and `end` < '2025-04-07 10:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 10:50:20] Production.INFO: count ==4425 [2025-04-07 10:50:22] Production.ERROR: pbx CDR StartTime 2025-04-07 07:50:06 - End Time 2025-04-07 10:50:06 [2025-04-07 10:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854361', 'tblTempUsageDetail_20' ) start [2025-04-07 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854361', 'tblTempUsageDetail_20' ) end [2025-04-07 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854361', 'tblTempVendorCDR_20' ) start [2025-04-07 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854361', 'tblTempVendorCDR_20' ) end [2025-04-07 10:50:22] Production.INFO: ProcessCDR(1,14854361,1,1,2) [2025-04-07 10:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854361', 'tblTempUsageDetail_20' ) start [2025-04-07 10:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854361', 'tblTempUsageDetail_20' ) end [2025-04-07 10:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:50:28] Production.INFO: ==6923== Releasing lock... [2025-04-07 10:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:50:28] Production.INFO: 61 MB #Memory Used# [2025-04-07 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:51:05 [end_date_ymd] => 2025-04-07 10:51:05 [RateCDR] => 1 ) [2025-04-07 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 07:51:05' and `end` < '2025-04-07 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 10:51:19] Production.INFO: count ==4555 [2025-04-07 10:51:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:51:05 - End Time 2025-04-07 10:51:05 [2025-04-07 10:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854367', 'tblTempUsageDetail_20' ) start [2025-04-07 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854367', 'tblTempUsageDetail_20' ) end [2025-04-07 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854367', 'tblTempVendorCDR_20' ) start [2025-04-07 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854367', 'tblTempVendorCDR_20' ) end [2025-04-07 10:51:21] Production.INFO: ProcessCDR(1,14854367,1,1,2) [2025-04-07 10:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854367', 'tblTempUsageDetail_20' ) start [2025-04-07 10:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854367', 'tblTempUsageDetail_20' ) end [2025-04-07 10:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:51:26] Production.INFO: ==7001== Releasing lock... [2025-04-07 10:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:51:26] Production.INFO: 62 MB #Memory Used# [2025-04-07 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:52:05 [end_date_ymd] => 2025-04-07 10:52:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:52:05' and `end` < '2025-04-07 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-04-07 10:52:19] Production.INFO: count ==4567 [2025-04-07 10:52:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:52:05 - End Time 2025-04-07 10:52:05 [2025-04-07 10:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854372', 'tblTempUsageDetail_20' ) start [2025-04-07 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854372', 'tblTempUsageDetail_20' ) end [2025-04-07 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854372', 'tblTempVendorCDR_20' ) start [2025-04-07 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854372', 'tblTempVendorCDR_20' ) end [2025-04-07 10:52:21] Production.INFO: ProcessCDR(1,14854372,1,1,2) [2025-04-07 10:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854372', 'tblTempUsageDetail_20' ) start [2025-04-07 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854372', 'tblTempUsageDetail_20' ) end [2025-04-07 10:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:52:26] Production.INFO: ==7075== Releasing lock... [2025-04-07 10:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:52:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-07 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:53:05 [end_date_ymd] => 2025-04-07 10:53:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:53:05' and `end` < '2025-04-07 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-04-07 10:53:19] Production.INFO: count ==4570 [2025-04-07 10:53:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:53:05 - End Time 2025-04-07 10:53:05 [2025-04-07 10:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854377', 'tblTempUsageDetail_20' ) start [2025-04-07 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854377', 'tblTempUsageDetail_20' ) end [2025-04-07 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854377', 'tblTempVendorCDR_20' ) start [2025-04-07 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854377', 'tblTempVendorCDR_20' ) end [2025-04-07 10:53:21] Production.INFO: ProcessCDR(1,14854377,1,1,2) [2025-04-07 10:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854377', 'tblTempUsageDetail_20' ) start [2025-04-07 10:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854377', 'tblTempUsageDetail_20' ) end [2025-04-07 10:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:53:26] Production.INFO: ==7149== Releasing lock... [2025-04-07 10:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:53:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-07 10:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:54:06 [end_date_ymd] => 2025-04-07 10:54:06 [RateCDR] => 1 ) [2025-04-07 10: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-04-07 07:54:06' and `end` < '2025-04-07 10: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-04-07 10:54:19] Production.INFO: count ==4577 [2025-04-07 10:54:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:54:06 - End Time 2025-04-07 10:54:06 [2025-04-07 10:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854382', 'tblTempUsageDetail_20' ) start [2025-04-07 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854382', 'tblTempUsageDetail_20' ) end [2025-04-07 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854382', 'tblTempVendorCDR_20' ) start [2025-04-07 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854382', 'tblTempVendorCDR_20' ) end [2025-04-07 10:54:22] Production.INFO: ProcessCDR(1,14854382,1,1,2) [2025-04-07 10:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854382', 'tblTempUsageDetail_20' ) start [2025-04-07 10:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854382', 'tblTempUsageDetail_20' ) end [2025-04-07 10:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:54:27] Production.INFO: ==7219== Releasing lock... [2025-04-07 10:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:54:27] Production.INFO: 62.25 MB #Memory Used# [2025-04-07 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:55:05 [end_date_ymd] => 2025-04-07 10:55:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:55:05' and `end` < '2025-04-07 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-04-07 10:55:19] Production.INFO: count ==4592 [2025-04-07 10:55:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:55:05 - End Time 2025-04-07 10:55:05 [2025-04-07 10:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854387', 'tblTempUsageDetail_20' ) start [2025-04-07 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854387', 'tblTempUsageDetail_20' ) end [2025-04-07 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854387', 'tblTempVendorCDR_20' ) start [2025-04-07 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854387', 'tblTempVendorCDR_20' ) end [2025-04-07 10:55:21] Production.INFO: ProcessCDR(1,14854387,1,1,2) [2025-04-07 10:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854387', 'tblTempUsageDetail_20' ) start [2025-04-07 10:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854387', 'tblTempUsageDetail_20' ) end [2025-04-07 10:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:55:26] Production.INFO: ==7293== Releasing lock... [2025-04-07 10:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:55:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-07 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:56:06 [end_date_ymd] => 2025-04-07 10:56:06 [RateCDR] => 1 ) [2025-04-07 10:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 07:56:06' and `end` < '2025-04-07 10:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 10:56:19] Production.INFO: count ==4604 [2025-04-07 10:56:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:56:06 - End Time 2025-04-07 10:56:06 [2025-04-07 10:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854392', 'tblTempUsageDetail_20' ) start [2025-04-07 10:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854392', 'tblTempUsageDetail_20' ) end [2025-04-07 10:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854392', 'tblTempVendorCDR_20' ) start [2025-04-07 10:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854392', 'tblTempVendorCDR_20' ) end [2025-04-07 10:56:22] Production.INFO: ProcessCDR(1,14854392,1,1,2) [2025-04-07 10:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854392', 'tblTempUsageDetail_20' ) start [2025-04-07 10:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854392', 'tblTempUsageDetail_20' ) end [2025-04-07 10:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:56:27] Production.INFO: ==7368== Releasing lock... [2025-04-07 10:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:56:27] Production.INFO: 62.5 MB #Memory Used# [2025-04-07 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:57:05 [end_date_ymd] => 2025-04-07 10:57:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:57:05' and `end` < '2025-04-07 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-04-07 10:57:18] Production.INFO: count ==4608 [2025-04-07 10:57:20] Production.ERROR: pbx CDR StartTime 2025-04-07 07:57:05 - End Time 2025-04-07 10:57:05 [2025-04-07 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854397', 'tblTempUsageDetail_20' ) start [2025-04-07 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854397', 'tblTempUsageDetail_20' ) end [2025-04-07 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854397', 'tblTempVendorCDR_20' ) start [2025-04-07 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854397', 'tblTempVendorCDR_20' ) end [2025-04-07 10:57:20] Production.INFO: ProcessCDR(1,14854397,1,1,2) [2025-04-07 10:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854397', 'tblTempUsageDetail_20' ) start [2025-04-07 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854397', 'tblTempUsageDetail_20' ) end [2025-04-07 10:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:57:25] Production.INFO: ==7444== Releasing lock... [2025-04-07 10:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:57:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-07 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:58:05 [end_date_ymd] => 2025-04-07 10:58:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:58:05' and `end` < '2025-04-07 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-04-07 10:58:19] Production.INFO: count ==4622 [2025-04-07 10:58:21] Production.ERROR: pbx CDR StartTime 2025-04-07 07:58:05 - End Time 2025-04-07 10:58:05 [2025-04-07 10:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854402', 'tblTempUsageDetail_20' ) start [2025-04-07 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854402', 'tblTempUsageDetail_20' ) end [2025-04-07 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854402', 'tblTempVendorCDR_20' ) start [2025-04-07 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854402', 'tblTempVendorCDR_20' ) end [2025-04-07 10:58:21] Production.INFO: ProcessCDR(1,14854402,1,1,2) [2025-04-07 10:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854402', 'tblTempUsageDetail_20' ) start [2025-04-07 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854402', 'tblTempUsageDetail_20' ) end [2025-04-07 10:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:58:26] Production.INFO: ==7514== Releasing lock... [2025-04-07 10:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:58:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-07 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 07:59:05 [end_date_ymd] => 2025-04-07 10:59:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 07:59:05' and `end` < '2025-04-07 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-04-07 10:59:18] Production.INFO: count ==4634 [2025-04-07 10:59:20] Production.ERROR: pbx CDR StartTime 2025-04-07 07:59:05 - End Time 2025-04-07 10:59:05 [2025-04-07 10:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854407', 'tblTempUsageDetail_20' ) start [2025-04-07 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854407', 'tblTempUsageDetail_20' ) end [2025-04-07 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854407', 'tblTempVendorCDR_20' ) start [2025-04-07 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854407', 'tblTempVendorCDR_20' ) end [2025-04-07 10:59:21] Production.INFO: ProcessCDR(1,14854407,1,1,2) [2025-04-07 10:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 10:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854407', 'tblTempUsageDetail_20' ) start [2025-04-07 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854407', 'tblTempUsageDetail_20' ) end [2025-04-07 10:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 10:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 10:59:25] Production.INFO: ==7626== Releasing lock... [2025-04-07 10:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 10:59:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-07 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:00:06 [end_date_ymd] => 2025-04-07 11:00:06 [RateCDR] => 1 ) [2025-04-07 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 08:00:06' and `end` < '2025-04-07 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 11:00:20] Production.INFO: count ==4656 [2025-04-07 11:00:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:00:06 - End Time 2025-04-07 11:00:06 [2025-04-07 11:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854412', 'tblTempUsageDetail_20' ) start [2025-04-07 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854412', 'tblTempUsageDetail_20' ) end [2025-04-07 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854412', 'tblTempVendorCDR_20' ) start [2025-04-07 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854412', 'tblTempVendorCDR_20' ) end [2025-04-07 11:00:22] Production.INFO: ProcessCDR(1,14854412,1,1,2) [2025-04-07 11:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854412', 'tblTempUsageDetail_20' ) start [2025-04-07 11:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854412', 'tblTempUsageDetail_20' ) end [2025-04-07 11:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:00:27] Production.INFO: ==7705== Releasing lock... [2025-04-07 11:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:00:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-07 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:01:05 [end_date_ymd] => 2025-04-07 11:01:05 [RateCDR] => 1 ) [2025-04-07 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 08:01:05' and `end` < '2025-04-07 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 11:01:19] Production.INFO: count ==4768 [2025-04-07 11:01:21] Production.ERROR: pbx CDR StartTime 2025-04-07 08:01:05 - End Time 2025-04-07 11:01:05 [2025-04-07 11:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854418', 'tblTempUsageDetail_20' ) start [2025-04-07 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854418', 'tblTempUsageDetail_20' ) end [2025-04-07 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854418', 'tblTempVendorCDR_20' ) start [2025-04-07 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854418', 'tblTempVendorCDR_20' ) end [2025-04-07 11:01:21] Production.INFO: ProcessCDR(1,14854418,1,1,2) [2025-04-07 11:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854418', 'tblTempUsageDetail_20' ) start [2025-04-07 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854418', 'tblTempUsageDetail_20' ) end [2025-04-07 11:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:01:26] Production.INFO: ==7873== Releasing lock... [2025-04-07 11:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:01:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-07 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:02:06 [end_date_ymd] => 2025-04-07 11:02:06 [RateCDR] => 1 ) [2025-04-07 11: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-04-07 08:02:06' and `end` < '2025-04-07 11: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-04-07 11:02:19] Production.INFO: count ==4786 [2025-04-07 11:02:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:02:06 - End Time 2025-04-07 11:02:06 [2025-04-07 11:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854423', 'tblTempUsageDetail_20' ) start [2025-04-07 11:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854423', 'tblTempUsageDetail_20' ) end [2025-04-07 11:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854423', 'tblTempVendorCDR_20' ) start [2025-04-07 11:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854423', 'tblTempVendorCDR_20' ) end [2025-04-07 11:02:22] Production.INFO: ProcessCDR(1,14854423,1,1,2) [2025-04-07 11:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854423', 'tblTempUsageDetail_20' ) start [2025-04-07 11:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854423', 'tblTempUsageDetail_20' ) end [2025-04-07 11:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:02:27] Production.INFO: ==7945== Releasing lock... [2025-04-07 11:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:02:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-07 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:03:05 [end_date_ymd] => 2025-04-07 11:03:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:03:05' and `end` < '2025-04-07 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-04-07 11:03:19] Production.INFO: count ==4798 [2025-04-07 11:03:21] Production.ERROR: pbx CDR StartTime 2025-04-07 08:03:05 - End Time 2025-04-07 11:03:05 [2025-04-07 11:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854428', 'tblTempUsageDetail_20' ) start [2025-04-07 11:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854428', 'tblTempUsageDetail_20' ) end [2025-04-07 11:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854428', 'tblTempVendorCDR_20' ) start [2025-04-07 11:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854428', 'tblTempVendorCDR_20' ) end [2025-04-07 11:03:22] Production.INFO: ProcessCDR(1,14854428,1,1,2) [2025-04-07 11:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854428', 'tblTempUsageDetail_20' ) start [2025-04-07 11:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854428', 'tblTempUsageDetail_20' ) end [2025-04-07 11:03:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:03:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:03:28] Production.INFO: ==8020== Releasing lock... [2025-04-07 11:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:03:28] Production.INFO: 64 MB #Memory Used# [2025-04-07 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:04:06 [end_date_ymd] => 2025-04-07 11:04:06 [RateCDR] => 1 ) [2025-04-07 11: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-04-07 08:04:06' and `end` < '2025-04-07 11: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-04-07 11:04:20] Production.INFO: count ==4801 [2025-04-07 11:04:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:04:06 - End Time 2025-04-07 11:04:06 [2025-04-07 11:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854433', 'tblTempUsageDetail_20' ) start [2025-04-07 11:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854433', 'tblTempUsageDetail_20' ) end [2025-04-07 11:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854433', 'tblTempVendorCDR_20' ) start [2025-04-07 11:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854433', 'tblTempVendorCDR_20' ) end [2025-04-07 11:04:22] Production.INFO: ProcessCDR(1,14854433,1,1,2) [2025-04-07 11:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854433', 'tblTempUsageDetail_20' ) start [2025-04-07 11:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854433', 'tblTempUsageDetail_20' ) end [2025-04-07 11:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:04:27] Production.INFO: ==8094== Releasing lock... [2025-04-07 11:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:04:27] Production.INFO: 64 MB #Memory Used# [2025-04-07 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:05:05 [end_date_ymd] => 2025-04-07 11:05:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:05:05' and `end` < '2025-04-07 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-04-07 11:05:19] Production.INFO: count ==4811 [2025-04-07 11:05:21] Production.ERROR: pbx CDR StartTime 2025-04-07 08:05:05 - End Time 2025-04-07 11:05:05 [2025-04-07 11:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854438', 'tblTempUsageDetail_20' ) start [2025-04-07 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854438', 'tblTempUsageDetail_20' ) end [2025-04-07 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854438', 'tblTempVendorCDR_20' ) start [2025-04-07 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854438', 'tblTempVendorCDR_20' ) end [2025-04-07 11:05:21] Production.INFO: ProcessCDR(1,14854438,1,1,2) [2025-04-07 11:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854438', 'tblTempUsageDetail_20' ) start [2025-04-07 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854438', 'tblTempUsageDetail_20' ) end [2025-04-07 11:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:05:26] Production.INFO: ==8243== Releasing lock... [2025-04-07 11:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:05:26] Production.INFO: 64 MB #Memory Used# [2025-04-07 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:06:06 [end_date_ymd] => 2025-04-07 11:06:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:06:06' and `end` < '2025-04-07 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-04-07 11:06:19] Production.INFO: count ==4809 [2025-04-07 11:06:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:06:06 - End Time 2025-04-07 11:06:06 [2025-04-07 11:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854443', 'tblTempUsageDetail_20' ) start [2025-04-07 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854443', 'tblTempUsageDetail_20' ) end [2025-04-07 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854443', 'tblTempVendorCDR_20' ) start [2025-04-07 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854443', 'tblTempVendorCDR_20' ) end [2025-04-07 11:06:22] Production.INFO: ProcessCDR(1,14854443,1,1,2) [2025-04-07 11:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854443', 'tblTempUsageDetail_20' ) start [2025-04-07 11:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854443', 'tblTempUsageDetail_20' ) end [2025-04-07 11:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:06:27] Production.INFO: ==8317== Releasing lock... [2025-04-07 11:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:06:27] Production.INFO: 64 MB #Memory Used# [2025-04-07 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:07:05 [end_date_ymd] => 2025-04-07 11:07:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:07:05' and `end` < '2025-04-07 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-04-07 11:07:19] Production.INFO: count ==4814 [2025-04-07 11:07:21] Production.ERROR: pbx CDR StartTime 2025-04-07 08:07:05 - End Time 2025-04-07 11:07:05 [2025-04-07 11:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854448', 'tblTempUsageDetail_20' ) start [2025-04-07 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854448', 'tblTempUsageDetail_20' ) end [2025-04-07 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854448', 'tblTempVendorCDR_20' ) start [2025-04-07 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854448', 'tblTempVendorCDR_20' ) end [2025-04-07 11:07:21] Production.INFO: ProcessCDR(1,14854448,1,1,2) [2025-04-07 11:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854448', 'tblTempUsageDetail_20' ) start [2025-04-07 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854448', 'tblTempUsageDetail_20' ) end [2025-04-07 11:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:07:26] Production.INFO: ==8397== Releasing lock... [2025-04-07 11:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:07:26] Production.INFO: 64 MB #Memory Used# [2025-04-07 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:08:05 [end_date_ymd] => 2025-04-07 11:08:05 [RateCDR] => 1 ) [2025-04-07 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 08:08:05' and `end` < '2025-04-07 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 11:08:19] Production.INFO: count ==4809 [2025-04-07 11:08:21] Production.ERROR: pbx CDR StartTime 2025-04-07 08:08:05 - End Time 2025-04-07 11:08:05 [2025-04-07 11:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854453', 'tblTempUsageDetail_20' ) start [2025-04-07 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854453', 'tblTempUsageDetail_20' ) end [2025-04-07 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854453', 'tblTempVendorCDR_20' ) start [2025-04-07 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854453', 'tblTempVendorCDR_20' ) end [2025-04-07 11:08:22] Production.INFO: ProcessCDR(1,14854453,1,1,2) [2025-04-07 11:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854453', 'tblTempUsageDetail_20' ) start [2025-04-07 11:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854453', 'tblTempUsageDetail_20' ) end [2025-04-07 11:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:08:27] Production.INFO: ==8550== Releasing lock... [2025-04-07 11:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:08:27] Production.INFO: 64 MB #Memory Used# [2025-04-07 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:09:05 [end_date_ymd] => 2025-04-07 11:09:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:09:05' and `end` < '2025-04-07 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-04-07 11:09:19] Production.INFO: count ==4828 [2025-04-07 11:09:21] Production.ERROR: pbx CDR StartTime 2025-04-07 08:09:05 - End Time 2025-04-07 11:09:05 [2025-04-07 11:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854458', 'tblTempUsageDetail_20' ) start [2025-04-07 11:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854458', 'tblTempUsageDetail_20' ) end [2025-04-07 11:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854458', 'tblTempVendorCDR_20' ) start [2025-04-07 11:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854458', 'tblTempVendorCDR_20' ) end [2025-04-07 11:09:22] Production.INFO: ProcessCDR(1,14854458,1,1,2) [2025-04-07 11:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854458', 'tblTempUsageDetail_20' ) start [2025-04-07 11:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854458', 'tblTempUsageDetail_20' ) end [2025-04-07 11:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:09:27] Production.INFO: ==8620== Releasing lock... [2025-04-07 11:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:09:27] Production.INFO: 64 MB #Memory Used# [2025-04-07 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:10:06 [end_date_ymd] => 2025-04-07 11:10:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:10:06' and `end` < '2025-04-07 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-04-07 11:10:20] Production.INFO: count ==4843 [2025-04-07 11:10:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:10:06 - End Time 2025-04-07 11:10:06 [2025-04-07 11:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854464', 'tblTempUsageDetail_20' ) start [2025-04-07 11:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854464', 'tblTempUsageDetail_20' ) end [2025-04-07 11:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854464', 'tblTempVendorCDR_20' ) start [2025-04-07 11:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854464', 'tblTempVendorCDR_20' ) end [2025-04-07 11:10:23] Production.INFO: ProcessCDR(1,14854464,1,1,2) [2025-04-07 11:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854464', 'tblTempUsageDetail_20' ) start [2025-04-07 11:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854464', 'tblTempUsageDetail_20' ) end [2025-04-07 11:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:10:29] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:10:29] Production.INFO: ==8694== Releasing lock... [2025-04-07 11:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:10:29] Production.INFO: 64.25 MB #Memory Used# [2025-04-07 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:11:05 [end_date_ymd] => 2025-04-07 11:11:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:11:05' and `end` < '2025-04-07 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-04-07 11:11:19] Production.INFO: count ==4959 [2025-04-07 11:11:21] Production.ERROR: pbx CDR StartTime 2025-04-07 08:11:05 - End Time 2025-04-07 11:11:05 [2025-04-07 11:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854469', 'tblTempUsageDetail_20' ) start [2025-04-07 11:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854469', 'tblTempUsageDetail_20' ) end [2025-04-07 11:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854469', 'tblTempVendorCDR_20' ) start [2025-04-07 11:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854469', 'tblTempVendorCDR_20' ) end [2025-04-07 11:11:22] Production.INFO: ProcessCDR(1,14854469,1,1,2) [2025-04-07 11:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854469', 'tblTempUsageDetail_20' ) start [2025-04-07 11:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854469', 'tblTempUsageDetail_20' ) end [2025-04-07 11:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:11:27] Production.INFO: ==8769== Releasing lock... [2025-04-07 11:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:11:27] Production.INFO: 65 MB #Memory Used# [2025-04-07 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:12:06 [end_date_ymd] => 2025-04-07 11:12:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:12:06' and `end` < '2025-04-07 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-04-07 11:12:20] Production.INFO: count ==4974 [2025-04-07 11:12:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:12:06 - End Time 2025-04-07 11:12:06 [2025-04-07 11:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854474', 'tblTempUsageDetail_20' ) start [2025-04-07 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854474', 'tblTempUsageDetail_20' ) end [2025-04-07 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854474', 'tblTempVendorCDR_20' ) start [2025-04-07 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854474', 'tblTempVendorCDR_20' ) end [2025-04-07 11:12:22] Production.INFO: ProcessCDR(1,14854474,1,1,2) [2025-04-07 11:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854474', 'tblTempUsageDetail_20' ) start [2025-04-07 11:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854474', 'tblTempUsageDetail_20' ) end [2025-04-07 11:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:12:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:12:28] Production.INFO: ==8921== Releasing lock... [2025-04-07 11:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:12:28] Production.INFO: 65.25 MB #Memory Used# [2025-04-07 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:13:05 [end_date_ymd] => 2025-04-07 11:13:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:13:05' and `end` < '2025-04-07 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-04-07 11:13:19] Production.INFO: count ==5001 [2025-04-07 11:13:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:13:05 - End Time 2025-04-07 11:13:05 [2025-04-07 11:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854479', 'tblTempUsageDetail_20' ) start [2025-04-07 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854479', 'tblTempUsageDetail_20' ) end [2025-04-07 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854479', 'tblTempVendorCDR_20' ) start [2025-04-07 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854479', 'tblTempVendorCDR_20' ) end [2025-04-07 11:13:22] Production.INFO: ProcessCDR(1,14854479,1,1,2) [2025-04-07 11:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854479', 'tblTempUsageDetail_20' ) start [2025-04-07 11:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854479', 'tblTempUsageDetail_20' ) end [2025-04-07 11:13:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:13:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:13:28] Production.INFO: ==8995== Releasing lock... [2025-04-07 11:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:13:28] Production.INFO: 65.5 MB #Memory Used# [2025-04-07 11:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:14:06 [end_date_ymd] => 2025-04-07 11:14:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:14:06' and `end` < '2025-04-07 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-04-07 11:14:20] Production.INFO: count ==5031 [2025-04-07 11:14:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:14:06 - End Time 2025-04-07 11:14:06 [2025-04-07 11:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854484', 'tblTempUsageDetail_20' ) start [2025-04-07 11:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854484', 'tblTempUsageDetail_20' ) end [2025-04-07 11:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854484', 'tblTempVendorCDR_20' ) start [2025-04-07 11:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854484', 'tblTempVendorCDR_20' ) end [2025-04-07 11:14:22] Production.INFO: ProcessCDR(1,14854484,1,1,2) [2025-04-07 11:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854484', 'tblTempUsageDetail_20' ) start [2025-04-07 11:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854484', 'tblTempUsageDetail_20' ) end [2025-04-07 11:14:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:14:29] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:14:29] Production.INFO: ==9107== Releasing lock... [2025-04-07 11:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:14:29] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 11:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:15:04 [end_date_ymd] => 2025-04-07 11:15:04 [RateCDR] => 1 ) [2025-04-07 11: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-04-07 08:15:04' and `end` < '2025-04-07 11: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-04-07 11:15:18] Production.INFO: count ==5039 [2025-04-07 11:15:21] Production.ERROR: pbx CDR StartTime 2025-04-07 08:15:04 - End Time 2025-04-07 11:15:04 [2025-04-07 11:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854489', 'tblTempUsageDetail_20' ) start [2025-04-07 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854489', 'tblTempUsageDetail_20' ) end [2025-04-07 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854489', 'tblTempVendorCDR_20' ) start [2025-04-07 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854489', 'tblTempVendorCDR_20' ) end [2025-04-07 11:15:21] Production.INFO: ProcessCDR(1,14854489,1,1,2) [2025-04-07 11:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854489', 'tblTempUsageDetail_20' ) start [2025-04-07 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854489', 'tblTempUsageDetail_20' ) end [2025-04-07 11:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:15:26] Production.INFO: ==9262== Releasing lock... [2025-04-07 11:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:15:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:16:05 [end_date_ymd] => 2025-04-07 11:16:05 [RateCDR] => 1 ) [2025-04-07 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 08:16:05' and `end` < '2025-04-07 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 11:16:19] Production.INFO: count ==5050 [2025-04-07 11:16:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:16:05 - End Time 2025-04-07 11:16:05 [2025-04-07 11:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854494', 'tblTempUsageDetail_20' ) start [2025-04-07 11:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854494', 'tblTempUsageDetail_20' ) end [2025-04-07 11:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854494', 'tblTempVendorCDR_20' ) start [2025-04-07 11:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854494', 'tblTempVendorCDR_20' ) end [2025-04-07 11:16:22] Production.INFO: ProcessCDR(1,14854494,1,1,2) [2025-04-07 11:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854494', 'tblTempUsageDetail_20' ) start [2025-04-07 11:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854494', 'tblTempUsageDetail_20' ) end [2025-04-07 11:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:16:27] Production.INFO: ==9338== Releasing lock... [2025-04-07 11:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:16:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:17:05 [end_date_ymd] => 2025-04-07 11:17:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:17:05' and `end` < '2025-04-07 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-04-07 11:17:19] Production.INFO: count ==5063 [2025-04-07 11:17:21] Production.ERROR: pbx CDR StartTime 2025-04-07 08:17:05 - End Time 2025-04-07 11:17:05 [2025-04-07 11:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854499', 'tblTempUsageDetail_20' ) start [2025-04-07 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854499', 'tblTempUsageDetail_20' ) end [2025-04-07 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854499', 'tblTempVendorCDR_20' ) start [2025-04-07 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854499', 'tblTempVendorCDR_20' ) end [2025-04-07 11:17:21] Production.INFO: ProcessCDR(1,14854499,1,1,2) [2025-04-07 11:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854499', 'tblTempUsageDetail_20' ) start [2025-04-07 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854499', 'tblTempUsageDetail_20' ) end [2025-04-07 11:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:17:26] Production.INFO: ==9412== Releasing lock... [2025-04-07 11:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:17:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:18:05 [end_date_ymd] => 2025-04-07 11:18:05 [RateCDR] => 1 ) [2025-04-07 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 08:18:05' and `end` < '2025-04-07 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 11:18:20] Production.INFO: count ==5076 [2025-04-07 11:18:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:18:05 - End Time 2025-04-07 11:18:05 [2025-04-07 11:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854504', 'tblTempUsageDetail_20' ) start [2025-04-07 11:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854504', 'tblTempUsageDetail_20' ) end [2025-04-07 11:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854504', 'tblTempVendorCDR_20' ) start [2025-04-07 11:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854504', 'tblTempVendorCDR_20' ) end [2025-04-07 11:18:22] Production.INFO: ProcessCDR(1,14854504,1,1,2) [2025-04-07 11:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854504', 'tblTempUsageDetail_20' ) start [2025-04-07 11:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854504', 'tblTempUsageDetail_20' ) end [2025-04-07 11:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:18:27] Production.INFO: ==9484== Releasing lock... [2025-04-07 11:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:18:27] Production.INFO: 66 MB #Memory Used# [2025-04-07 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:19:05 [end_date_ymd] => 2025-04-07 11:19:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:19:05' and `end` < '2025-04-07 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-04-07 11:19:19] Production.INFO: count ==5090 [2025-04-07 11:19:21] Production.ERROR: pbx CDR StartTime 2025-04-07 08:19:05 - End Time 2025-04-07 11:19:05 [2025-04-07 11:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854509', 'tblTempUsageDetail_20' ) start [2025-04-07 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854509', 'tblTempUsageDetail_20' ) end [2025-04-07 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854509', 'tblTempVendorCDR_20' ) start [2025-04-07 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854509', 'tblTempVendorCDR_20' ) end [2025-04-07 11:19:21] Production.INFO: ProcessCDR(1,14854509,1,1,2) [2025-04-07 11:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854509', 'tblTempUsageDetail_20' ) start [2025-04-07 11:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854509', 'tblTempUsageDetail_20' ) end [2025-04-07 11:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:19:27] Production.INFO: ==9557== Releasing lock... [2025-04-07 11:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:19:27] Production.INFO: 66 MB #Memory Used# [2025-04-07 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:20:06 [end_date_ymd] => 2025-04-07 11:20:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:20:06' and `end` < '2025-04-07 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-04-07 11:20:20] Production.INFO: count ==5100 [2025-04-07 11:20:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:20:06 - End Time 2025-04-07 11:20:06 [2025-04-07 11:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854515', 'tblTempUsageDetail_20' ) start [2025-04-07 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854515', 'tblTempUsageDetail_20' ) end [2025-04-07 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854515', 'tblTempVendorCDR_20' ) start [2025-04-07 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854515', 'tblTempVendorCDR_20' ) end [2025-04-07 11:20:22] Production.INFO: ProcessCDR(1,14854515,1,1,2) [2025-04-07 11:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854515', 'tblTempUsageDetail_20' ) start [2025-04-07 11:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854515', 'tblTempUsageDetail_20' ) end [2025-04-07 11:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:20:27] Production.INFO: ==9629== Releasing lock... [2025-04-07 11:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:20:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-07 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:21:05 [end_date_ymd] => 2025-04-07 11:21:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:21:05' and `end` < '2025-04-07 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-04-07 11:21:19] Production.INFO: count ==5147 [2025-04-07 11:21:21] Production.ERROR: pbx CDR StartTime 2025-04-07 08:21:05 - End Time 2025-04-07 11:21:05 [2025-04-07 11:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854520', 'tblTempUsageDetail_20' ) start [2025-04-07 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854520', 'tblTempUsageDetail_20' ) end [2025-04-07 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854520', 'tblTempVendorCDR_20' ) start [2025-04-07 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854520', 'tblTempVendorCDR_20' ) end [2025-04-07 11:21:22] Production.INFO: ProcessCDR(1,14854520,1,1,2) [2025-04-07 11:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854520', 'tblTempUsageDetail_20' ) start [2025-04-07 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854520', 'tblTempUsageDetail_20' ) end [2025-04-07 11:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:21:27] Production.INFO: ==9706== Releasing lock... [2025-04-07 11:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:21:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-07 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:22:06 [end_date_ymd] => 2025-04-07 11:22:06 [RateCDR] => 1 ) [2025-04-07 11: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-04-07 08:22:06' and `end` < '2025-04-07 11: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-04-07 11:22:20] Production.INFO: count ==5156 [2025-04-07 11:22:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:22:06 - End Time 2025-04-07 11:22:06 [2025-04-07 11:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854525', 'tblTempUsageDetail_20' ) start [2025-04-07 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854525', 'tblTempUsageDetail_20' ) end [2025-04-07 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854525', 'tblTempVendorCDR_20' ) start [2025-04-07 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854525', 'tblTempVendorCDR_20' ) end [2025-04-07 11:22:22] Production.INFO: ProcessCDR(1,14854525,1,1,2) [2025-04-07 11:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854525', 'tblTempUsageDetail_20' ) start [2025-04-07 11:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854525', 'tblTempUsageDetail_20' ) end [2025-04-07 11:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:22:27] Production.INFO: ==9779== Releasing lock... [2025-04-07 11:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:22:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-07 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:23:05 [end_date_ymd] => 2025-04-07 11:23:05 [RateCDR] => 1 ) [2025-04-07 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 08:23:05' and `end` < '2025-04-07 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-04-07 11:23:19] Production.INFO: count ==5164 [2025-04-07 11:23:21] Production.ERROR: pbx CDR StartTime 2025-04-07 08:23:05 - End Time 2025-04-07 11:23:05 [2025-04-07 11:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854530', 'tblTempUsageDetail_20' ) start [2025-04-07 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854530', 'tblTempUsageDetail_20' ) end [2025-04-07 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854530', 'tblTempVendorCDR_20' ) start [2025-04-07 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854530', 'tblTempVendorCDR_20' ) end [2025-04-07 11:23:21] Production.INFO: ProcessCDR(1,14854530,1,1,2) [2025-04-07 11:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854530', 'tblTempUsageDetail_20' ) start [2025-04-07 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854530', 'tblTempUsageDetail_20' ) end [2025-04-07 11:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:23:26] Production.INFO: ==9852== Releasing lock... [2025-04-07 11:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:23:26] Production.INFO: 66.75 MB #Memory Used# [2025-04-07 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:24:06 [end_date_ymd] => 2025-04-07 11:24:06 [RateCDR] => 1 ) [2025-04-07 11: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-04-07 08:24:06' and `end` < '2025-04-07 11: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-04-07 11:24:20] Production.INFO: count ==5191 [2025-04-07 11:24:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:24:06 - End Time 2025-04-07 11:24:06 [2025-04-07 11:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854535', 'tblTempUsageDetail_20' ) start [2025-04-07 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854535', 'tblTempUsageDetail_20' ) end [2025-04-07 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854535', 'tblTempVendorCDR_20' ) start [2025-04-07 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854535', 'tblTempVendorCDR_20' ) end [2025-04-07 11:24:22] Production.INFO: ProcessCDR(1,14854535,1,1,2) [2025-04-07 11:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854535', 'tblTempUsageDetail_20' ) start [2025-04-07 11:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854535', 'tblTempUsageDetail_20' ) end [2025-04-07 11:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:24:27] Production.INFO: ==9925== Releasing lock... [2025-04-07 11:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:24:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-07 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:25:05 [end_date_ymd] => 2025-04-07 11:25:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:25:05' and `end` < '2025-04-07 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-04-07 11:25:19] Production.INFO: count ==5215 [2025-04-07 11:25:21] Production.ERROR: pbx CDR StartTime 2025-04-07 08:25:05 - End Time 2025-04-07 11:25:05 [2025-04-07 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854540', 'tblTempUsageDetail_20' ) start [2025-04-07 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854540', 'tblTempUsageDetail_20' ) end [2025-04-07 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854540', 'tblTempVendorCDR_20' ) start [2025-04-07 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854540', 'tblTempVendorCDR_20' ) end [2025-04-07 11:25:21] Production.INFO: ProcessCDR(1,14854540,1,1,2) [2025-04-07 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854540', 'tblTempUsageDetail_20' ) start [2025-04-07 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854540', 'tblTempUsageDetail_20' ) end [2025-04-07 11:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:25:27] Production.INFO: ==10001== Releasing lock... [2025-04-07 11:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:25:27] Production.INFO: 67 MB #Memory Used# [2025-04-07 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:26:05 [end_date_ymd] => 2025-04-07 11:26:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:26:05' and `end` < '2025-04-07 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-04-07 11:26:19] Production.INFO: count ==5228 [2025-04-07 11:26:21] Production.ERROR: pbx CDR StartTime 2025-04-07 08:26:05 - End Time 2025-04-07 11:26:05 [2025-04-07 11:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854545', 'tblTempUsageDetail_20' ) start [2025-04-07 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854545', 'tblTempUsageDetail_20' ) end [2025-04-07 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854545', 'tblTempVendorCDR_20' ) start [2025-04-07 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854545', 'tblTempVendorCDR_20' ) end [2025-04-07 11:26:22] Production.INFO: ProcessCDR(1,14854545,1,1,2) [2025-04-07 11:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854545', 'tblTempUsageDetail_20' ) start [2025-04-07 11:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854545', 'tblTempUsageDetail_20' ) end [2025-04-07 11:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:26:27] Production.INFO: ==10073== Releasing lock... [2025-04-07 11:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:26:27] Production.INFO: 67 MB #Memory Used# [2025-04-07 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:27:05 [end_date_ymd] => 2025-04-07 11:27:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:27:05' and `end` < '2025-04-07 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-04-07 11:27:19] Production.INFO: count ==5208 [2025-04-07 11:27:21] Production.ERROR: pbx CDR StartTime 2025-04-07 08:27:05 - End Time 2025-04-07 11:27:05 [2025-04-07 11:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854550', 'tblTempUsageDetail_20' ) start [2025-04-07 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854550', 'tblTempUsageDetail_20' ) end [2025-04-07 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854550', 'tblTempVendorCDR_20' ) start [2025-04-07 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854550', 'tblTempVendorCDR_20' ) end [2025-04-07 11:27:21] Production.INFO: ProcessCDR(1,14854550,1,1,2) [2025-04-07 11:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854550', 'tblTempUsageDetail_20' ) start [2025-04-07 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854550', 'tblTempUsageDetail_20' ) end [2025-04-07 11:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:27:26] Production.INFO: ==10143== Releasing lock... [2025-04-07 11:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:27:26] Production.INFO: 67 MB #Memory Used# [2025-04-07 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:28:05 [end_date_ymd] => 2025-04-07 11:28:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:28:05' and `end` < '2025-04-07 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-04-07 11:28:19] Production.INFO: count ==5213 [2025-04-07 11:28:21] Production.ERROR: pbx CDR StartTime 2025-04-07 08:28:05 - End Time 2025-04-07 11:28:05 [2025-04-07 11:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854555', 'tblTempUsageDetail_20' ) start [2025-04-07 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854555', 'tblTempUsageDetail_20' ) end [2025-04-07 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854555', 'tblTempVendorCDR_20' ) start [2025-04-07 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854555', 'tblTempVendorCDR_20' ) end [2025-04-07 11:28:22] Production.INFO: ProcessCDR(1,14854555,1,1,2) [2025-04-07 11:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854555', 'tblTempUsageDetail_20' ) start [2025-04-07 11:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854555', 'tblTempUsageDetail_20' ) end [2025-04-07 11:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:28:27] Production.INFO: ==10218== Releasing lock... [2025-04-07 11:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:28:27] Production.INFO: 67 MB #Memory Used# [2025-04-07 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:29:05 [end_date_ymd] => 2025-04-07 11:29:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:29:05' and `end` < '2025-04-07 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-04-07 11:29:19] Production.INFO: count ==5230 [2025-04-07 11:29:21] Production.ERROR: pbx CDR StartTime 2025-04-07 08:29:05 - End Time 2025-04-07 11:29:05 [2025-04-07 11:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854560', 'tblTempUsageDetail_20' ) start [2025-04-07 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854560', 'tblTempUsageDetail_20' ) end [2025-04-07 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854560', 'tblTempVendorCDR_20' ) start [2025-04-07 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854560', 'tblTempVendorCDR_20' ) end [2025-04-07 11:29:21] Production.INFO: ProcessCDR(1,14854560,1,1,2) [2025-04-07 11:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854560', 'tblTempUsageDetail_20' ) start [2025-04-07 11:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854560', 'tblTempUsageDetail_20' ) end [2025-04-07 11:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:29:27] Production.INFO: ==10292== Releasing lock... [2025-04-07 11:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:29:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-07 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:30:06 [end_date_ymd] => 2025-04-07 11:30:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:30:06' and `end` < '2025-04-07 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-04-07 11:30:20] Production.INFO: count ==5254 [2025-04-07 11:30:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:30:06 - End Time 2025-04-07 11:30:06 [2025-04-07 11:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854566', 'tblTempUsageDetail_20' ) start [2025-04-07 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854566', 'tblTempUsageDetail_20' ) end [2025-04-07 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854566', 'tblTempVendorCDR_20' ) start [2025-04-07 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854566', 'tblTempVendorCDR_20' ) end [2025-04-07 11:30:22] Production.INFO: ProcessCDR(1,14854566,1,1,2) [2025-04-07 11:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854566', 'tblTempUsageDetail_20' ) start [2025-04-07 11:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854566', 'tblTempUsageDetail_20' ) end [2025-04-07 11:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:30:28] Production.INFO: ==10405== Releasing lock... [2025-04-07 11:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:30:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-07 11:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:31:06 [end_date_ymd] => 2025-04-07 11:31:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:31:06' and `end` < '2025-04-07 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-04-07 11:31:20] Production.INFO: count ==5333 [2025-04-07 11:31:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:31:06 - End Time 2025-04-07 11:31:06 [2025-04-07 11:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854571', 'tblTempUsageDetail_20' ) start [2025-04-07 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854571', 'tblTempUsageDetail_20' ) end [2025-04-07 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854571', 'tblTempVendorCDR_20' ) start [2025-04-07 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854571', 'tblTempVendorCDR_20' ) end [2025-04-07 11:31:22] Production.INFO: ProcessCDR(1,14854571,1,1,2) [2025-04-07 11:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854571', 'tblTempUsageDetail_20' ) start [2025-04-07 11:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854571', 'tblTempUsageDetail_20' ) end [2025-04-07 11:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:31:27] Production.INFO: ==10479== Releasing lock... [2025-04-07 11:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:31:27] Production.INFO: 68 MB #Memory Used# [2025-04-07 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:32:05 [end_date_ymd] => 2025-04-07 11:32:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:32:05' and `end` < '2025-04-07 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-04-07 11:32:19] Production.INFO: count ==5392 [2025-04-07 11:32:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:32:05 - End Time 2025-04-07 11:32:05 [2025-04-07 11:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854576', 'tblTempUsageDetail_20' ) start [2025-04-07 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854576', 'tblTempUsageDetail_20' ) end [2025-04-07 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854576', 'tblTempVendorCDR_20' ) start [2025-04-07 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854576', 'tblTempVendorCDR_20' ) end [2025-04-07 11:32:22] Production.INFO: ProcessCDR(1,14854576,1,1,2) [2025-04-07 11:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854576', 'tblTempUsageDetail_20' ) start [2025-04-07 11:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854576', 'tblTempUsageDetail_20' ) end [2025-04-07 11:32:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:32:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:32:28] Production.INFO: ==10551== Releasing lock... [2025-04-07 11:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:32:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-07 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:33:05 [end_date_ymd] => 2025-04-07 11:33:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:33:05' and `end` < '2025-04-07 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-04-07 11:33:19] Production.INFO: count ==5437 [2025-04-07 11:33:21] Production.ERROR: pbx CDR StartTime 2025-04-07 08:33:05 - End Time 2025-04-07 11:33:05 [2025-04-07 11:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854581', 'tblTempUsageDetail_20' ) start [2025-04-07 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854581', 'tblTempUsageDetail_20' ) end [2025-04-07 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854581', 'tblTempVendorCDR_20' ) start [2025-04-07 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854581', 'tblTempVendorCDR_20' ) end [2025-04-07 11:33:22] Production.INFO: ProcessCDR(1,14854581,1,1,2) [2025-04-07 11:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854581', 'tblTempUsageDetail_20' ) start [2025-04-07 11:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854581', 'tblTempUsageDetail_20' ) end [2025-04-07 11:33:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:33:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:33:28] Production.INFO: ==10622== Releasing lock... [2025-04-07 11:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:33:28] Production.INFO: 68.75 MB #Memory Used# [2025-04-07 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:34:05 [end_date_ymd] => 2025-04-07 11:34:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:34:05' and `end` < '2025-04-07 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-04-07 11:34:19] Production.INFO: count ==5482 [2025-04-07 11:34:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:34:05 - End Time 2025-04-07 11:34:05 [2025-04-07 11:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854586', 'tblTempUsageDetail_20' ) start [2025-04-07 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854586', 'tblTempUsageDetail_20' ) end [2025-04-07 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854586', 'tblTempVendorCDR_20' ) start [2025-04-07 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854586', 'tblTempVendorCDR_20' ) end [2025-04-07 11:34:22] Production.INFO: ProcessCDR(1,14854586,1,1,2) [2025-04-07 11:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854586', 'tblTempUsageDetail_20' ) start [2025-04-07 11:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854586', 'tblTempUsageDetail_20' ) end [2025-04-07 11:34:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:34:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:34:28] Production.INFO: ==10693== Releasing lock... [2025-04-07 11:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:34:28] Production.INFO: 69 MB #Memory Used# [2025-04-07 11:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:35:06 [end_date_ymd] => 2025-04-07 11:35:06 [RateCDR] => 1 ) [2025-04-07 11: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-04-07 08:35:06' and `end` < '2025-04-07 11: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-04-07 11:35:19] Production.INFO: count ==5506 [2025-04-07 11:35:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:35:06 - End Time 2025-04-07 11:35:06 [2025-04-07 11:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854591', 'tblTempUsageDetail_20' ) start [2025-04-07 11:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854591', 'tblTempUsageDetail_20' ) end [2025-04-07 11:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854591', 'tblTempVendorCDR_20' ) start [2025-04-07 11:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854591', 'tblTempVendorCDR_20' ) end [2025-04-07 11:35:23] Production.INFO: ProcessCDR(1,14854591,1,1,2) [2025-04-07 11:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854591', 'tblTempUsageDetail_20' ) start [2025-04-07 11:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854591', 'tblTempUsageDetail_20' ) end [2025-04-07 11:35:29] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:35:29] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:35:29] Production.INFO: ==10770== Releasing lock... [2025-04-07 11:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:35:29] Production.INFO: 69.25 MB #Memory Used# [2025-04-07 11:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:36:06 [end_date_ymd] => 2025-04-07 11:36:06 [RateCDR] => 1 ) [2025-04-07 11: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-04-07 08:36:06' and `end` < '2025-04-07 11: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-04-07 11:36:19] Production.INFO: count ==5530 [2025-04-07 11:36:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:36:06 - End Time 2025-04-07 11:36:06 [2025-04-07 11:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854596', 'tblTempUsageDetail_20' ) start [2025-04-07 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854596', 'tblTempUsageDetail_20' ) end [2025-04-07 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854596', 'tblTempVendorCDR_20' ) start [2025-04-07 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854596', 'tblTempVendorCDR_20' ) end [2025-04-07 11:36:22] Production.INFO: ProcessCDR(1,14854596,1,1,2) [2025-04-07 11:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854596', 'tblTempUsageDetail_20' ) start [2025-04-07 11:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854596', 'tblTempUsageDetail_20' ) end [2025-04-07 11:36:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:36:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:36:28] Production.INFO: ==10850== Releasing lock... [2025-04-07 11:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:36:28] Production.INFO: 69.5 MB #Memory Used# [2025-04-07 11:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:37:06 [end_date_ymd] => 2025-04-07 11:37:06 [RateCDR] => 1 ) [2025-04-07 11: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-04-07 08:37:06' and `end` < '2025-04-07 11: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-04-07 11:37:20] Production.INFO: count ==5540 [2025-04-07 11:37:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:37:06 - End Time 2025-04-07 11:37:06 [2025-04-07 11:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854601', 'tblTempUsageDetail_20' ) start [2025-04-07 11:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854601', 'tblTempUsageDetail_20' ) end [2025-04-07 11:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854601', 'tblTempVendorCDR_20' ) start [2025-04-07 11:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854601', 'tblTempVendorCDR_20' ) end [2025-04-07 11:37:23] Production.INFO: ProcessCDR(1,14854601,1,1,2) [2025-04-07 11:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854601', 'tblTempUsageDetail_20' ) start [2025-04-07 11:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854601', 'tblTempUsageDetail_20' ) end [2025-04-07 11:37:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:37:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:37:28] Production.INFO: ==10920== Releasing lock... [2025-04-07 11:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:37:28] Production.INFO: 69.5 MB #Memory Used# [2025-04-07 11:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:38:06 [end_date_ymd] => 2025-04-07 11:38:06 [RateCDR] => 1 ) [2025-04-07 11: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-04-07 08:38:06' and `end` < '2025-04-07 11: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-04-07 11:38:20] Production.INFO: count ==5541 [2025-04-07 11:38:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:38:06 - End Time 2025-04-07 11:38:06 [2025-04-07 11:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854606', 'tblTempUsageDetail_20' ) start [2025-04-07 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854606', 'tblTempUsageDetail_20' ) end [2025-04-07 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854606', 'tblTempVendorCDR_20' ) start [2025-04-07 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854606', 'tblTempVendorCDR_20' ) end [2025-04-07 11:38:22] Production.INFO: ProcessCDR(1,14854606,1,1,2) [2025-04-07 11:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854606', 'tblTempUsageDetail_20' ) start [2025-04-07 11:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854606', 'tblTempUsageDetail_20' ) end [2025-04-07 11:38:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:38:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:38:28] Production.INFO: ==10993== Releasing lock... [2025-04-07 11:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:38:28] Production.INFO: 69.5 MB #Memory Used# [2025-04-07 11:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:39:06 [end_date_ymd] => 2025-04-07 11:39:06 [RateCDR] => 1 ) [2025-04-07 11: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-04-07 08:39:06' and `end` < '2025-04-07 11: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-04-07 11:39:20] Production.INFO: count ==5551 [2025-04-07 11:39:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:39:06 - End Time 2025-04-07 11:39:06 [2025-04-07 11:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854611', 'tblTempUsageDetail_20' ) start [2025-04-07 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854611', 'tblTempUsageDetail_20' ) end [2025-04-07 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854611', 'tblTempVendorCDR_20' ) start [2025-04-07 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854611', 'tblTempVendorCDR_20' ) end [2025-04-07 11:39:22] Production.INFO: ProcessCDR(1,14854611,1,1,2) [2025-04-07 11:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854611', 'tblTempUsageDetail_20' ) start [2025-04-07 11:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854611', 'tblTempUsageDetail_20' ) end [2025-04-07 11:39:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:39:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:39:28] Production.INFO: ==11066== Releasing lock... [2025-04-07 11:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:39:28] Production.INFO: 69.5 MB #Memory Used# [2025-04-07 11:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:40:05 [end_date_ymd] => 2025-04-07 11:40:05 [RateCDR] => 1 ) [2025-04-07 11:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 08:40:05' and `end` < '2025-04-07 11:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 11:40:19] Production.INFO: count ==5580 [2025-04-07 11:40:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:40:05 - End Time 2025-04-07 11:40:05 [2025-04-07 11:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854616', 'tblTempUsageDetail_20' ) start [2025-04-07 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854616', 'tblTempUsageDetail_20' ) end [2025-04-07 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854616', 'tblTempVendorCDR_20' ) start [2025-04-07 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854616', 'tblTempVendorCDR_20' ) end [2025-04-07 11:40:22] Production.INFO: ProcessCDR(1,14854616,1,1,2) [2025-04-07 11:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854616', 'tblTempUsageDetail_20' ) start [2025-04-07 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854616', 'tblTempUsageDetail_20' ) end [2025-04-07 11:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:40:27] Production.INFO: ==11141== Releasing lock... [2025-04-07 11:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:40:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-07 11:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:41:06 [end_date_ymd] => 2025-04-07 11:41:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:41:06' and `end` < '2025-04-07 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-04-07 11:41:20] Production.INFO: count ==5640 [2025-04-07 11:41:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:41:06 - End Time 2025-04-07 11:41:06 [2025-04-07 11:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854622', 'tblTempUsageDetail_20' ) start [2025-04-07 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854622', 'tblTempUsageDetail_20' ) end [2025-04-07 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854622', 'tblTempVendorCDR_20' ) start [2025-04-07 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854622', 'tblTempVendorCDR_20' ) end [2025-04-07 11:41:22] Production.INFO: ProcessCDR(1,14854622,1,1,2) [2025-04-07 11:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854622', 'tblTempUsageDetail_20' ) start [2025-04-07 11:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854622', 'tblTempUsageDetail_20' ) end [2025-04-07 11:41:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:41:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:41:28] Production.INFO: ==11216== Releasing lock... [2025-04-07 11:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:41:28] Production.INFO: 70.25 MB #Memory Used# [2025-04-07 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:42:05 [end_date_ymd] => 2025-04-07 11:42:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:42:05' and `end` < '2025-04-07 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-04-07 11:42:19] Production.INFO: count ==5636 [2025-04-07 11:42:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:42:05 - End Time 2025-04-07 11:42:05 [2025-04-07 11:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854627', 'tblTempUsageDetail_20' ) start [2025-04-07 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854627', 'tblTempUsageDetail_20' ) end [2025-04-07 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854627', 'tblTempVendorCDR_20' ) start [2025-04-07 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854627', 'tblTempVendorCDR_20' ) end [2025-04-07 11:42:22] Production.INFO: ProcessCDR(1,14854627,1,1,2) [2025-04-07 11:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854627', 'tblTempUsageDetail_20' ) start [2025-04-07 11:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854627', 'tblTempUsageDetail_20' ) end [2025-04-07 11:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:42:27] Production.INFO: ==11290== Releasing lock... [2025-04-07 11:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:42:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-07 11:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:43:06 [end_date_ymd] => 2025-04-07 11:43:06 [RateCDR] => 1 ) [2025-04-07 11: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-04-07 08:43:06' and `end` < '2025-04-07 11: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-04-07 11:43:19] Production.INFO: count ==5637 [2025-04-07 11:43:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:43:06 - End Time 2025-04-07 11:43:06 [2025-04-07 11:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854632', 'tblTempUsageDetail_20' ) start [2025-04-07 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854632', 'tblTempUsageDetail_20' ) end [2025-04-07 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854632', 'tblTempVendorCDR_20' ) start [2025-04-07 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854632', 'tblTempVendorCDR_20' ) end [2025-04-07 11:43:22] Production.INFO: ProcessCDR(1,14854632,1,1,2) [2025-04-07 11:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854632', 'tblTempUsageDetail_20' ) start [2025-04-07 11:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854632', 'tblTempUsageDetail_20' ) end [2025-04-07 11:43:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:43:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:43:28] Production.INFO: ==11362== Releasing lock... [2025-04-07 11:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:43:28] Production.INFO: 70.25 MB #Memory Used# [2025-04-07 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:44:05 [end_date_ymd] => 2025-04-07 11:44:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:44:05' and `end` < '2025-04-07 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-04-07 11:44:19] Production.INFO: count ==5634 [2025-04-07 11:44:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:44:05 - End Time 2025-04-07 11:44:05 [2025-04-07 11:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854637', 'tblTempUsageDetail_20' ) start [2025-04-07 11:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854637', 'tblTempUsageDetail_20' ) end [2025-04-07 11:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854637', 'tblTempVendorCDR_20' ) start [2025-04-07 11:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854637', 'tblTempVendorCDR_20' ) end [2025-04-07 11:44:22] Production.INFO: ProcessCDR(1,14854637,1,1,2) [2025-04-07 11:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854637', 'tblTempUsageDetail_20' ) start [2025-04-07 11:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854637', 'tblTempUsageDetail_20' ) end [2025-04-07 11:44:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:44:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:44:28] Production.INFO: ==11436== Releasing lock... [2025-04-07 11:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:44:28] Production.INFO: 70.25 MB #Memory Used# [2025-04-07 11:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:45:06 [end_date_ymd] => 2025-04-07 11:45:06 [RateCDR] => 1 ) [2025-04-07 11: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-04-07 08:45:06' and `end` < '2025-04-07 11: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-04-07 11:45:21] Production.INFO: count ==5640 [2025-04-07 11:45:23] Production.ERROR: pbx CDR StartTime 2025-04-07 08:45:06 - End Time 2025-04-07 11:45:06 [2025-04-07 11:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854642', 'tblTempUsageDetail_20' ) start [2025-04-07 11:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854642', 'tblTempUsageDetail_20' ) end [2025-04-07 11:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854642', 'tblTempVendorCDR_20' ) start [2025-04-07 11:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854642', 'tblTempVendorCDR_20' ) end [2025-04-07 11:45:23] Production.INFO: ProcessCDR(1,14854642,1,1,2) [2025-04-07 11:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:45:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854642', 'tblTempUsageDetail_20' ) start [2025-04-07 11:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854642', 'tblTempUsageDetail_20' ) end [2025-04-07 11:45:29] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:45:29] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:45:29] Production.INFO: ==11550== Releasing lock... [2025-04-07 11:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:45:29] Production.INFO: 70.25 MB #Memory Used# [2025-04-07 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:46:05 [end_date_ymd] => 2025-04-07 11:46:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:46:05' and `end` < '2025-04-07 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-04-07 11:46:19] Production.INFO: count ==5645 [2025-04-07 11:46:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:46:05 - End Time 2025-04-07 11:46:05 [2025-04-07 11:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854647', 'tblTempUsageDetail_20' ) start [2025-04-07 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854647', 'tblTempUsageDetail_20' ) end [2025-04-07 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854647', 'tblTempVendorCDR_20' ) start [2025-04-07 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854647', 'tblTempVendorCDR_20' ) end [2025-04-07 11:46:22] Production.INFO: ProcessCDR(1,14854647,1,1,2) [2025-04-07 11:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854647', 'tblTempUsageDetail_20' ) start [2025-04-07 11:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854647', 'tblTempUsageDetail_20' ) end [2025-04-07 11:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:46:27] Production.INFO: ==11619== Releasing lock... [2025-04-07 11:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:46:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-07 11:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:47:06 [end_date_ymd] => 2025-04-07 11:47:06 [RateCDR] => 1 ) [2025-04-07 11: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-04-07 08:47:06' and `end` < '2025-04-07 11: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-04-07 11:47:19] Production.INFO: count ==5678 [2025-04-07 11:47:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:47:06 - End Time 2025-04-07 11:47:06 [2025-04-07 11:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854652', 'tblTempUsageDetail_20' ) start [2025-04-07 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854652', 'tblTempUsageDetail_20' ) end [2025-04-07 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854652', 'tblTempVendorCDR_20' ) start [2025-04-07 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854652', 'tblTempVendorCDR_20' ) end [2025-04-07 11:47:22] Production.INFO: ProcessCDR(1,14854652,1,1,2) [2025-04-07 11:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854652', 'tblTempUsageDetail_20' ) start [2025-04-07 11:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854652', 'tblTempUsageDetail_20' ) end [2025-04-07 11:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:47:27] Production.INFO: ==11691== Releasing lock... [2025-04-07 11:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:47:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-07 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:48:05 [end_date_ymd] => 2025-04-07 11:48:05 [RateCDR] => 1 ) [2025-04-07 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 08:48:05' and `end` < '2025-04-07 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 11:48:19] Production.INFO: count ==5692 [2025-04-07 11:48:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:48:05 - End Time 2025-04-07 11:48:05 [2025-04-07 11:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854657', 'tblTempUsageDetail_20' ) start [2025-04-07 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854657', 'tblTempUsageDetail_20' ) end [2025-04-07 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854657', 'tblTempVendorCDR_20' ) start [2025-04-07 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854657', 'tblTempVendorCDR_20' ) end [2025-04-07 11:48:22] Production.INFO: ProcessCDR(1,14854657,1,1,2) [2025-04-07 11:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854657', 'tblTempUsageDetail_20' ) start [2025-04-07 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854657', 'tblTempUsageDetail_20' ) end [2025-04-07 11:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:48:27] Production.INFO: ==11764== Releasing lock... [2025-04-07 11:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:48:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-07 11:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:49:06 [end_date_ymd] => 2025-04-07 11:49:06 [RateCDR] => 1 ) [2025-04-07 11: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-04-07 08:49:06' and `end` < '2025-04-07 11: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-04-07 11:49:20] Production.INFO: count ==5708 [2025-04-07 11:49:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:49:06 - End Time 2025-04-07 11:49:06 [2025-04-07 11:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854662', 'tblTempUsageDetail_20' ) start [2025-04-07 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854662', 'tblTempUsageDetail_20' ) end [2025-04-07 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854662', 'tblTempVendorCDR_20' ) start [2025-04-07 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854662', 'tblTempVendorCDR_20' ) end [2025-04-07 11:49:22] Production.INFO: ProcessCDR(1,14854662,1,1,2) [2025-04-07 11:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854662', 'tblTempUsageDetail_20' ) start [2025-04-07 11:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854662', 'tblTempUsageDetail_20' ) end [2025-04-07 11:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:49:27] Production.INFO: ==11838== Releasing lock... [2025-04-07 11:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:49:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-07 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:50:06 [end_date_ymd] => 2025-04-07 11:50:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:50:06' and `end` < '2025-04-07 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-04-07 11:50:20] Production.INFO: count ==5712 [2025-04-07 11:50:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:50:06 - End Time 2025-04-07 11:50:06 [2025-04-07 11:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854668', 'tblTempUsageDetail_20' ) start [2025-04-07 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854668', 'tblTempUsageDetail_20' ) end [2025-04-07 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854668', 'tblTempVendorCDR_20' ) start [2025-04-07 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854668', 'tblTempVendorCDR_20' ) end [2025-04-07 11:50:23] Production.INFO: ProcessCDR(1,14854668,1,1,2) [2025-04-07 11:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854668', 'tblTempUsageDetail_20' ) start [2025-04-07 11:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854668', 'tblTempUsageDetail_20' ) end [2025-04-07 11:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:50:28] Production.INFO: ==11911== Releasing lock... [2025-04-07 11:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:50:28] Production.INFO: 70.75 MB #Memory Used# [2025-04-07 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:51:05 [end_date_ymd] => 2025-04-07 11:51:05 [RateCDR] => 1 ) [2025-04-07 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 08:51:05' and `end` < '2025-04-07 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 11:51:19] Production.INFO: count ==5786 [2025-04-07 11:51:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:51:05 - End Time 2025-04-07 11:51:05 [2025-04-07 11:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854673', 'tblTempUsageDetail_20' ) start [2025-04-07 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854673', 'tblTempUsageDetail_20' ) end [2025-04-07 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854673', 'tblTempVendorCDR_20' ) start [2025-04-07 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854673', 'tblTempVendorCDR_20' ) end [2025-04-07 11:51:22] Production.INFO: ProcessCDR(1,14854673,1,1,2) [2025-04-07 11:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854673', 'tblTempUsageDetail_20' ) start [2025-04-07 11:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854673', 'tblTempUsageDetail_20' ) end [2025-04-07 11:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:51:27] Production.INFO: ==11988== Releasing lock... [2025-04-07 11:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:51:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-07 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:52:05 [end_date_ymd] => 2025-04-07 11:52:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:52:05' and `end` < '2025-04-07 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-04-07 11:52:19] Production.INFO: count ==5783 [2025-04-07 11:52:21] Production.ERROR: pbx CDR StartTime 2025-04-07 08:52:05 - End Time 2025-04-07 11:52:05 [2025-04-07 11:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854678', 'tblTempUsageDetail_20' ) start [2025-04-07 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854678', 'tblTempUsageDetail_20' ) end [2025-04-07 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854678', 'tblTempVendorCDR_20' ) start [2025-04-07 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854678', 'tblTempVendorCDR_20' ) end [2025-04-07 11:52:21] Production.INFO: ProcessCDR(1,14854678,1,1,2) [2025-04-07 11:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854678', 'tblTempUsageDetail_20' ) start [2025-04-07 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854678', 'tblTempUsageDetail_20' ) end [2025-04-07 11:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:52:27] Production.INFO: ==12059== Releasing lock... [2025-04-07 11:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:52:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-07 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:53:05 [end_date_ymd] => 2025-04-07 11:53:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:53:05' and `end` < '2025-04-07 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-04-07 11:53:19] Production.INFO: count ==5787 [2025-04-07 11:53:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:53:05 - End Time 2025-04-07 11:53:05 [2025-04-07 11:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854683', 'tblTempUsageDetail_20' ) start [2025-04-07 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854683', 'tblTempUsageDetail_20' ) end [2025-04-07 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854683', 'tblTempVendorCDR_20' ) start [2025-04-07 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854683', 'tblTempVendorCDR_20' ) end [2025-04-07 11:53:22] Production.INFO: ProcessCDR(1,14854683,1,1,2) [2025-04-07 11:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854683', 'tblTempUsageDetail_20' ) start [2025-04-07 11:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854683', 'tblTempUsageDetail_20' ) end [2025-04-07 11:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:53:27] Production.INFO: ==12135== Releasing lock... [2025-04-07 11:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:53:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-07 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:54:06 [end_date_ymd] => 2025-04-07 11:54:06 [RateCDR] => 1 ) [2025-04-07 11: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-04-07 08:54:06' and `end` < '2025-04-07 11: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-04-07 11:54:20] Production.INFO: count ==5808 [2025-04-07 11:54:23] Production.ERROR: pbx CDR StartTime 2025-04-07 08:54:06 - End Time 2025-04-07 11:54:06 [2025-04-07 11:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854688', 'tblTempUsageDetail_20' ) start [2025-04-07 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854688', 'tblTempUsageDetail_20' ) end [2025-04-07 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854688', 'tblTempVendorCDR_20' ) start [2025-04-07 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854688', 'tblTempVendorCDR_20' ) end [2025-04-07 11:54:23] Production.INFO: ProcessCDR(1,14854688,1,1,2) [2025-04-07 11:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854688', 'tblTempUsageDetail_20' ) start [2025-04-07 11:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854688', 'tblTempUsageDetail_20' ) end [2025-04-07 11:54:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:54:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:54:28] Production.INFO: ==12206== Releasing lock... [2025-04-07 11:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:54:28] Production.INFO: 71.5 MB #Memory Used# [2025-04-07 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:55:05 [end_date_ymd] => 2025-04-07 11:55:05 [RateCDR] => 1 ) [2025-04-07 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 08:55:05' and `end` < '2025-04-07 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 11:55:19] Production.INFO: count ==5845 [2025-04-07 11:55:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:55:05 - End Time 2025-04-07 11:55:05 [2025-04-07 11:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854693', 'tblTempUsageDetail_20' ) start [2025-04-07 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854693', 'tblTempUsageDetail_20' ) end [2025-04-07 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854693', 'tblTempVendorCDR_20' ) start [2025-04-07 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854693', 'tblTempVendorCDR_20' ) end [2025-04-07 11:55:22] Production.INFO: ProcessCDR(1,14854693,1,1,2) [2025-04-07 11:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854693', 'tblTempUsageDetail_20' ) start [2025-04-07 11:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854693', 'tblTempUsageDetail_20' ) end [2025-04-07 11:55:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:55:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:55:28] Production.INFO: ==12281== Releasing lock... [2025-04-07 11:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:55:28] Production.INFO: 71.75 MB #Memory Used# [2025-04-07 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:56:05 [end_date_ymd] => 2025-04-07 11:56:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:56:05' and `end` < '2025-04-07 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-04-07 11:56:19] Production.INFO: count ==5871 [2025-04-07 11:56:21] Production.ERROR: pbx CDR StartTime 2025-04-07 08:56:05 - End Time 2025-04-07 11:56:05 [2025-04-07 11:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854698', 'tblTempUsageDetail_20' ) start [2025-04-07 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854698', 'tblTempUsageDetail_20' ) end [2025-04-07 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854698', 'tblTempVendorCDR_20' ) start [2025-04-07 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854698', 'tblTempVendorCDR_20' ) end [2025-04-07 11:56:21] Production.INFO: ProcessCDR(1,14854698,1,1,2) [2025-04-07 11:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854698', 'tblTempUsageDetail_20' ) start [2025-04-07 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854698', 'tblTempUsageDetail_20' ) end [2025-04-07 11:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:56:27] Production.INFO: ==12359== Releasing lock... [2025-04-07 11:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:56:27] Production.INFO: 72 MB #Memory Used# [2025-04-07 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:57:05 [end_date_ymd] => 2025-04-07 11:57:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 08:57:05' and `end` < '2025-04-07 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-04-07 11:57:19] Production.INFO: count ==5868 [2025-04-07 11:57:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:57:05 - End Time 2025-04-07 11:57:05 [2025-04-07 11:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854703', 'tblTempUsageDetail_20' ) start [2025-04-07 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854703', 'tblTempUsageDetail_20' ) end [2025-04-07 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854703', 'tblTempVendorCDR_20' ) start [2025-04-07 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854703', 'tblTempVendorCDR_20' ) end [2025-04-07 11:57:22] Production.INFO: ProcessCDR(1,14854703,1,1,2) [2025-04-07 11:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854703', 'tblTempUsageDetail_20' ) start [2025-04-07 11:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854703', 'tblTempUsageDetail_20' ) end [2025-04-07 11:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:57:27] Production.INFO: ==12465== Releasing lock... [2025-04-07 11:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:57:27] Production.INFO: 72 MB #Memory Used# [2025-04-07 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:58:06 [end_date_ymd] => 2025-04-07 11:58:06 [RateCDR] => 1 ) [2025-04-07 11: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-04-07 08:58:06' and `end` < '2025-04-07 11: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-04-07 11:58:20] Production.INFO: count ==5870 [2025-04-07 11:58:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:58:06 - End Time 2025-04-07 11:58:06 [2025-04-07 11:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854708', 'tblTempUsageDetail_20' ) start [2025-04-07 11:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854708', 'tblTempUsageDetail_20' ) end [2025-04-07 11:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854708', 'tblTempVendorCDR_20' ) start [2025-04-07 11:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854708', 'tblTempVendorCDR_20' ) end [2025-04-07 11:58:23] Production.INFO: ProcessCDR(1,14854708,1,1,2) [2025-04-07 11:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854708', 'tblTempUsageDetail_20' ) start [2025-04-07 11:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854708', 'tblTempUsageDetail_20' ) end [2025-04-07 11:58:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:58:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:58:28] Production.INFO: ==12573== Releasing lock... [2025-04-07 11:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:58:28] Production.INFO: 72 MB #Memory Used# [2025-04-07 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 08:59:05 [end_date_ymd] => 2025-04-07 11:59:05 [RateCDR] => 1 ) [2025-04-07 11:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 08:59:05' and `end` < '2025-04-07 11:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 11:59:19] Production.INFO: count ==5855 [2025-04-07 11:59:22] Production.ERROR: pbx CDR StartTime 2025-04-07 08:59:05 - End Time 2025-04-07 11:59:05 [2025-04-07 11:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854713', 'tblTempUsageDetail_20' ) start [2025-04-07 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854713', 'tblTempUsageDetail_20' ) end [2025-04-07 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854713', 'tblTempVendorCDR_20' ) start [2025-04-07 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854713', 'tblTempVendorCDR_20' ) end [2025-04-07 11:59:22] Production.INFO: ProcessCDR(1,14854713,1,1,2) [2025-04-07 11:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 11:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 11:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854713', 'tblTempUsageDetail_20' ) start [2025-04-07 11:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854713', 'tblTempUsageDetail_20' ) end [2025-04-07 11:59:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 11:59:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 11:59:28] Production.INFO: ==12677== Releasing lock... [2025-04-07 11:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 11:59:28] Production.INFO: 71.75 MB #Memory Used# [2025-04-07 12:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:00:07 [end_date_ymd] => 2025-04-07 12:00:07 [RateCDR] => 1 ) [2025-04-07 12:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 09:00:07' and `end` < '2025-04-07 12: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-04-07 12:00:21] Production.INFO: count ==5858 [2025-04-07 12:00:24] Production.ERROR: pbx CDR StartTime 2025-04-07 09:00:07 - End Time 2025-04-07 12:00:07 [2025-04-07 12:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854719', 'tblTempUsageDetail_20' ) start [2025-04-07 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854719', 'tblTempUsageDetail_20' ) end [2025-04-07 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854719', 'tblTempVendorCDR_20' ) start [2025-04-07 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854719', 'tblTempVendorCDR_20' ) end [2025-04-07 12:00:25] Production.INFO: ProcessCDR(1,14854719,1,1,2) [2025-04-07 12:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854719', 'tblTempUsageDetail_20' ) start [2025-04-07 12:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854719', 'tblTempUsageDetail_20' ) end [2025-04-07 12:00:31] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:00:31] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:00:31] Production.INFO: ==12826== Releasing lock... [2025-04-07 12:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:00:31] Production.INFO: 71.75 MB #Memory Used# [2025-04-07 12:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:01:06 [end_date_ymd] => 2025-04-07 12:01:06 [RateCDR] => 1 ) [2025-04-07 12: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-04-07 09:01:06' and `end` < '2025-04-07 12: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-04-07 12:01:20] Production.INFO: count ==5905 [2025-04-07 12:01:23] Production.ERROR: pbx CDR StartTime 2025-04-07 09:01:06 - End Time 2025-04-07 12:01:06 [2025-04-07 12:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854724', 'tblTempUsageDetail_20' ) start [2025-04-07 12:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854724', 'tblTempUsageDetail_20' ) end [2025-04-07 12:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854724', 'tblTempVendorCDR_20' ) start [2025-04-07 12:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854724', 'tblTempVendorCDR_20' ) end [2025-04-07 12:01:23] Production.INFO: ProcessCDR(1,14854724,1,1,2) [2025-04-07 12:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854724', 'tblTempUsageDetail_20' ) start [2025-04-07 12:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854724', 'tblTempUsageDetail_20' ) end [2025-04-07 12:01:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:01:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:01:28] Production.INFO: ==12942== Releasing lock... [2025-04-07 12:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:01:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-07 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:02:05 [end_date_ymd] => 2025-04-07 12:02:05 [RateCDR] => 1 ) [2025-04-07 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 09:02:05' and `end` < '2025-04-07 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-04-07 12:02:19] Production.INFO: count ==5911 [2025-04-07 12:02:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:02:05 - End Time 2025-04-07 12:02:05 [2025-04-07 12:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854729', 'tblTempUsageDetail_20' ) start [2025-04-07 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854729', 'tblTempUsageDetail_20' ) end [2025-04-07 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854729', 'tblTempVendorCDR_20' ) start [2025-04-07 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854729', 'tblTempVendorCDR_20' ) end [2025-04-07 12:02:22] Production.INFO: ProcessCDR(1,14854729,1,1,2) [2025-04-07 12:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854729', 'tblTempUsageDetail_20' ) start [2025-04-07 12:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854729', 'tblTempUsageDetail_20' ) end [2025-04-07 12:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:02:28] Production.INFO: ==13048== Releasing lock... [2025-04-07 12:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:02:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-07 12:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:03:06 [end_date_ymd] => 2025-04-07 12:03:06 [RateCDR] => 1 ) [2025-04-07 12:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 09:03:06' and `end` < '2025-04-07 12:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 12:03:19] Production.INFO: count ==5932 [2025-04-07 12:03:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:03:06 - End Time 2025-04-07 12:03:06 [2025-04-07 12:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854734', 'tblTempUsageDetail_20' ) start [2025-04-07 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854734', 'tblTempUsageDetail_20' ) end [2025-04-07 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854734', 'tblTempVendorCDR_20' ) start [2025-04-07 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854734', 'tblTempVendorCDR_20' ) end [2025-04-07 12:03:22] Production.INFO: ProcessCDR(1,14854734,1,1,2) [2025-04-07 12:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854734', 'tblTempUsageDetail_20' ) start [2025-04-07 12:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854734', 'tblTempUsageDetail_20' ) end [2025-04-07 12:03:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:03:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:03:28] Production.INFO: ==13155== Releasing lock... [2025-04-07 12:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:03:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-07 12:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:04:04 [end_date_ymd] => 2025-04-07 12:04:04 [RateCDR] => 1 ) [2025-04-07 12:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 09:04:04' and `end` < '2025-04-07 12:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 12:04:19] Production.INFO: count ==5947 [2025-04-07 12:04:21] Production.ERROR: pbx CDR StartTime 2025-04-07 09:04:04 - End Time 2025-04-07 12:04:04 [2025-04-07 12:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854739', 'tblTempUsageDetail_20' ) start [2025-04-07 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854739', 'tblTempUsageDetail_20' ) end [2025-04-07 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854739', 'tblTempVendorCDR_20' ) start [2025-04-07 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854739', 'tblTempVendorCDR_20' ) end [2025-04-07 12:04:22] Production.INFO: ProcessCDR(1,14854739,1,1,2) [2025-04-07 12:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854739', 'tblTempUsageDetail_20' ) start [2025-04-07 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854739', 'tblTempUsageDetail_20' ) end [2025-04-07 12:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:04:27] Production.INFO: ==13247== Releasing lock... [2025-04-07 12:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:04:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-07 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:05:05 [end_date_ymd] => 2025-04-07 12:05:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 09:05:05' and `end` < '2025-04-07 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-04-07 12:05:19] Production.INFO: count ==5939 [2025-04-07 12:05:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:05:05 - End Time 2025-04-07 12:05:05 [2025-04-07 12:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854744', 'tblTempUsageDetail_20' ) start [2025-04-07 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854744', 'tblTempUsageDetail_20' ) end [2025-04-07 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854744', 'tblTempVendorCDR_20' ) start [2025-04-07 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854744', 'tblTempVendorCDR_20' ) end [2025-04-07 12:05:22] Production.INFO: ProcessCDR(1,14854744,1,1,2) [2025-04-07 12:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854744', 'tblTempUsageDetail_20' ) start [2025-04-07 12:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854744', 'tblTempUsageDetail_20' ) end [2025-04-07 12:05:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:05:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:05:28] Production.INFO: ==13343== Releasing lock... [2025-04-07 12:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:05:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-07 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:06:06 [end_date_ymd] => 2025-04-07 12:06:06 [RateCDR] => 1 ) [2025-04-07 12: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-04-07 09:06:06' and `end` < '2025-04-07 12: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-04-07 12:06:19] Production.INFO: count ==5936 [2025-04-07 12:06:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:06:06 - End Time 2025-04-07 12:06:06 [2025-04-07 12:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854749', 'tblTempUsageDetail_20' ) start [2025-04-07 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854749', 'tblTempUsageDetail_20' ) end [2025-04-07 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854749', 'tblTempVendorCDR_20' ) start [2025-04-07 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854749', 'tblTempVendorCDR_20' ) end [2025-04-07 12:06:22] Production.INFO: ProcessCDR(1,14854749,1,1,2) [2025-04-07 12:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854749', 'tblTempUsageDetail_20' ) start [2025-04-07 12:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854749', 'tblTempUsageDetail_20' ) end [2025-04-07 12:06:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:06:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:06:28] Production.INFO: ==13443== Releasing lock... [2025-04-07 12:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:06:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-07 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:07:05 [end_date_ymd] => 2025-04-07 12:07:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 09:07:05' and `end` < '2025-04-07 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-04-07 12:07:19] Production.INFO: count ==5914 [2025-04-07 12:07:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:07:05 - End Time 2025-04-07 12:07:05 [2025-04-07 12:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854754', 'tblTempUsageDetail_20' ) start [2025-04-07 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854754', 'tblTempUsageDetail_20' ) end [2025-04-07 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854754', 'tblTempVendorCDR_20' ) start [2025-04-07 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854754', 'tblTempVendorCDR_20' ) end [2025-04-07 12:07:22] Production.INFO: ProcessCDR(1,14854754,1,1,2) [2025-04-07 12:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854754', 'tblTempUsageDetail_20' ) start [2025-04-07 12:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854754', 'tblTempUsageDetail_20' ) end [2025-04-07 12:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:07:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:07:28] Production.INFO: ==13546== Releasing lock... [2025-04-07 12:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:07:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-07 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:08:06 [end_date_ymd] => 2025-04-07 12:08:06 [RateCDR] => 1 ) [2025-04-07 12: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-04-07 09:08:06' and `end` < '2025-04-07 12: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-04-07 12:08:21] Production.INFO: count ==5900 [2025-04-07 12:08:23] Production.ERROR: pbx CDR StartTime 2025-04-07 09:08:06 - End Time 2025-04-07 12:08:06 [2025-04-07 12:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854759', 'tblTempUsageDetail_20' ) start [2025-04-07 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854759', 'tblTempUsageDetail_20' ) end [2025-04-07 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854759', 'tblTempVendorCDR_20' ) start [2025-04-07 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854759', 'tblTempVendorCDR_20' ) end [2025-04-07 12:08:23] Production.INFO: ProcessCDR(1,14854759,1,1,2) [2025-04-07 12:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854759', 'tblTempUsageDetail_20' ) start [2025-04-07 12:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854759', 'tblTempUsageDetail_20' ) end [2025-04-07 12:08:29] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:08:29] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:08:29] Production.INFO: ==13653== Releasing lock... [2025-04-07 12:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:08:29] Production.INFO: 72.25 MB #Memory Used# [2025-04-07 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:09:05 [end_date_ymd] => 2025-04-07 12:09:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 09:09:05' and `end` < '2025-04-07 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-04-07 12:09:19] Production.INFO: count ==5894 [2025-04-07 12:09:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:09:05 - End Time 2025-04-07 12:09:05 [2025-04-07 12:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854764', 'tblTempUsageDetail_20' ) start [2025-04-07 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854764', 'tblTempUsageDetail_20' ) end [2025-04-07 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854764', 'tblTempVendorCDR_20' ) start [2025-04-07 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854764', 'tblTempVendorCDR_20' ) end [2025-04-07 12:09:22] Production.INFO: ProcessCDR(1,14854764,1,1,2) [2025-04-07 12:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854764', 'tblTempUsageDetail_20' ) start [2025-04-07 12:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854764', 'tblTempUsageDetail_20' ) end [2025-04-07 12:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:09:27] Production.INFO: ==13755== Releasing lock... [2025-04-07 12:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:09:27] Production.INFO: 72 MB #Memory Used# [2025-04-07 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:10:06 [end_date_ymd] => 2025-04-07 12:10:06 [RateCDR] => 1 ) [2025-04-07 12:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 09:10:06' and `end` < '2025-04-07 12:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 12:10:20] Production.INFO: count ==5904 [2025-04-07 12:10:23] Production.ERROR: pbx CDR StartTime 2025-04-07 09:10:06 - End Time 2025-04-07 12:10:06 [2025-04-07 12:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854769', 'tblTempUsageDetail_20' ) start [2025-04-07 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854769', 'tblTempUsageDetail_20' ) end [2025-04-07 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854769', 'tblTempVendorCDR_20' ) start [2025-04-07 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854769', 'tblTempVendorCDR_20' ) end [2025-04-07 12:10:23] Production.INFO: ProcessCDR(1,14854769,1,1,2) [2025-04-07 12:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854769', 'tblTempUsageDetail_20' ) start [2025-04-07 12:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854769', 'tblTempUsageDetail_20' ) end [2025-04-07 12:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:10:28] Production.INFO: ==13832== Releasing lock... [2025-04-07 12:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:10:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-07 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:11:05 [end_date_ymd] => 2025-04-07 12:11:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 09:11:05' and `end` < '2025-04-07 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-04-07 12:11:20] Production.INFO: count ==5941 [2025-04-07 12:11:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:11:05 - End Time 2025-04-07 12:11:05 [2025-04-07 12:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854775', 'tblTempUsageDetail_20' ) start [2025-04-07 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854775', 'tblTempUsageDetail_20' ) end [2025-04-07 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854775', 'tblTempVendorCDR_20' ) start [2025-04-07 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854775', 'tblTempVendorCDR_20' ) end [2025-04-07 12:11:23] Production.INFO: ProcessCDR(1,14854775,1,1,2) [2025-04-07 12:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854775', 'tblTempUsageDetail_20' ) start [2025-04-07 12:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854775', 'tblTempUsageDetail_20' ) end [2025-04-07 12:11:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:11:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:11:28] Production.INFO: ==13910== Releasing lock... [2025-04-07 12:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:11:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-07 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:12:06 [end_date_ymd] => 2025-04-07 12:12:06 [RateCDR] => 1 ) [2025-04-07 12: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-04-07 09:12:06' and `end` < '2025-04-07 12: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-04-07 12:12:20] Production.INFO: count ==5926 [2025-04-07 12:12:23] Production.ERROR: pbx CDR StartTime 2025-04-07 09:12:06 - End Time 2025-04-07 12:12:06 [2025-04-07 12:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854780', 'tblTempUsageDetail_20' ) start [2025-04-07 12:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854780', 'tblTempUsageDetail_20' ) end [2025-04-07 12:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854780', 'tblTempVendorCDR_20' ) start [2025-04-07 12:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854780', 'tblTempVendorCDR_20' ) end [2025-04-07 12:12:23] Production.INFO: ProcessCDR(1,14854780,1,1,2) [2025-04-07 12:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854780', 'tblTempUsageDetail_20' ) start [2025-04-07 12:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854780', 'tblTempUsageDetail_20' ) end [2025-04-07 12:12:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:12:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:12:28] Production.INFO: ==13983== Releasing lock... [2025-04-07 12:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:12:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-07 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:13:05 [end_date_ymd] => 2025-04-07 12:13:05 [RateCDR] => 1 ) [2025-04-07 12:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 09:13:05' and `end` < '2025-04-07 12:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 12:13:19] Production.INFO: count ==5918 [2025-04-07 12:13:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:13:05 - End Time 2025-04-07 12:13:05 [2025-04-07 12:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854785', 'tblTempUsageDetail_20' ) start [2025-04-07 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854785', 'tblTempUsageDetail_20' ) end [2025-04-07 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854785', 'tblTempVendorCDR_20' ) start [2025-04-07 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854785', 'tblTempVendorCDR_20' ) end [2025-04-07 12:13:22] Production.INFO: ProcessCDR(1,14854785,1,1,2) [2025-04-07 12:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854785', 'tblTempUsageDetail_20' ) start [2025-04-07 12:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854785', 'tblTempUsageDetail_20' ) end [2025-04-07 12:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:13:28] Production.INFO: ==14053== Releasing lock... [2025-04-07 12:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:13:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-07 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:14:06 [end_date_ymd] => 2025-04-07 12:14:06 [RateCDR] => 1 ) [2025-04-07 12: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-04-07 09:14:06' and `end` < '2025-04-07 12: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-04-07 12:14:20] Production.INFO: count ==5913 [2025-04-07 12:14:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:14:06 - End Time 2025-04-07 12:14:06 [2025-04-07 12:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854790', 'tblTempUsageDetail_20' ) start [2025-04-07 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854790', 'tblTempUsageDetail_20' ) end [2025-04-07 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854790', 'tblTempVendorCDR_20' ) start [2025-04-07 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854790', 'tblTempVendorCDR_20' ) end [2025-04-07 12:14:23] Production.INFO: ProcessCDR(1,14854790,1,1,2) [2025-04-07 12:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854790', 'tblTempUsageDetail_20' ) start [2025-04-07 12:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854790', 'tblTempUsageDetail_20' ) end [2025-04-07 12:14:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:14:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:14:28] Production.INFO: ==14124== Releasing lock... [2025-04-07 12:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:14:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-07 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:15:05 [end_date_ymd] => 2025-04-07 12:15:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 09:15:05' and `end` < '2025-04-07 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-04-07 12:15:19] Production.INFO: count ==5921 [2025-04-07 12:15:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:15:05 - End Time 2025-04-07 12:15:05 [2025-04-07 12:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854795', 'tblTempUsageDetail_20' ) start [2025-04-07 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854795', 'tblTempUsageDetail_20' ) end [2025-04-07 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854795', 'tblTempVendorCDR_20' ) start [2025-04-07 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854795', 'tblTempVendorCDR_20' ) end [2025-04-07 12:15:22] Production.INFO: ProcessCDR(1,14854795,1,1,2) [2025-04-07 12:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854795', 'tblTempUsageDetail_20' ) start [2025-04-07 12:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854795', 'tblTempUsageDetail_20' ) end [2025-04-07 12:15:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:15:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:15:28] Production.INFO: ==14199== Releasing lock... [2025-04-07 12:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:15:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-07 12:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:16:06 [end_date_ymd] => 2025-04-07 12:16:06 [RateCDR] => 1 ) [2025-04-07 12: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-04-07 09:16:06' and `end` < '2025-04-07 12: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-04-07 12:16:20] Production.INFO: count ==5924 [2025-04-07 12:16:23] Production.ERROR: pbx CDR StartTime 2025-04-07 09:16:06 - End Time 2025-04-07 12:16:06 [2025-04-07 12:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854800', 'tblTempUsageDetail_20' ) start [2025-04-07 12:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854800', 'tblTempUsageDetail_20' ) end [2025-04-07 12:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854800', 'tblTempVendorCDR_20' ) start [2025-04-07 12:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854800', 'tblTempVendorCDR_20' ) end [2025-04-07 12:16:23] Production.INFO: ProcessCDR(1,14854800,1,1,2) [2025-04-07 12:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854800', 'tblTempUsageDetail_20' ) start [2025-04-07 12:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854800', 'tblTempUsageDetail_20' ) end [2025-04-07 12:16:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:16:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:16:28] Production.INFO: ==14308== Releasing lock... [2025-04-07 12:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:16:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-07 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:17:05 [end_date_ymd] => 2025-04-07 12:17:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 09:17:05' and `end` < '2025-04-07 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-04-07 12:17:19] Production.INFO: count ==5945 [2025-04-07 12:17:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:17:05 - End Time 2025-04-07 12:17:05 [2025-04-07 12:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854805', 'tblTempUsageDetail_20' ) start [2025-04-07 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854805', 'tblTempUsageDetail_20' ) end [2025-04-07 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854805', 'tblTempVendorCDR_20' ) start [2025-04-07 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854805', 'tblTempVendorCDR_20' ) end [2025-04-07 12:17:22] Production.INFO: ProcessCDR(1,14854805,1,1,2) [2025-04-07 12:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854805', 'tblTempUsageDetail_20' ) start [2025-04-07 12:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854805', 'tblTempUsageDetail_20' ) end [2025-04-07 12:17:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:17:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:17:28] Production.INFO: ==14379== Releasing lock... [2025-04-07 12:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:17:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-07 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:18:06 [end_date_ymd] => 2025-04-07 12:18:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 09:18:06' and `end` < '2025-04-07 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-04-07 12:18:20] Production.INFO: count ==5933 [2025-04-07 12:18:23] Production.ERROR: pbx CDR StartTime 2025-04-07 09:18:06 - End Time 2025-04-07 12:18:06 [2025-04-07 12:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854810', 'tblTempUsageDetail_20' ) start [2025-04-07 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854810', 'tblTempUsageDetail_20' ) end [2025-04-07 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854810', 'tblTempVendorCDR_20' ) start [2025-04-07 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854810', 'tblTempVendorCDR_20' ) end [2025-04-07 12:18:23] Production.INFO: ProcessCDR(1,14854810,1,1,2) [2025-04-07 12:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854810', 'tblTempUsageDetail_20' ) start [2025-04-07 12:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854810', 'tblTempUsageDetail_20' ) end [2025-04-07 12:18:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:18:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:18:28] Production.INFO: ==14450== Releasing lock... [2025-04-07 12:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:18:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-07 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:19:05 [end_date_ymd] => 2025-04-07 12:19:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 09:19:05' and `end` < '2025-04-07 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-04-07 12:19:19] Production.INFO: count ==5974 [2025-04-07 12:19:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:19:05 - End Time 2025-04-07 12:19:05 [2025-04-07 12:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854815', 'tblTempUsageDetail_20' ) start [2025-04-07 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854815', 'tblTempUsageDetail_20' ) end [2025-04-07 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854815', 'tblTempVendorCDR_20' ) start [2025-04-07 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854815', 'tblTempVendorCDR_20' ) end [2025-04-07 12:19:22] Production.INFO: ProcessCDR(1,14854815,1,1,2) [2025-04-07 12:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854815', 'tblTempUsageDetail_20' ) start [2025-04-07 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854815', 'tblTempUsageDetail_20' ) end [2025-04-07 12:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:19:27] Production.INFO: ==14520== Releasing lock... [2025-04-07 12:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:19:27] Production.INFO: 72.75 MB #Memory Used# [2025-04-07 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:20:06 [end_date_ymd] => 2025-04-07 12:20:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 09:20:06' and `end` < '2025-04-07 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-04-07 12:20:20] Production.INFO: count ==5956 [2025-04-07 12:20:23] Production.ERROR: pbx CDR StartTime 2025-04-07 09:20:06 - End Time 2025-04-07 12:20:06 [2025-04-07 12:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854821', 'tblTempUsageDetail_20' ) start [2025-04-07 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854821', 'tblTempUsageDetail_20' ) end [2025-04-07 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854821', 'tblTempVendorCDR_20' ) start [2025-04-07 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854821', 'tblTempVendorCDR_20' ) end [2025-04-07 12:20:23] Production.INFO: ProcessCDR(1,14854821,1,1,2) [2025-04-07 12:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854821', 'tblTempUsageDetail_20' ) start [2025-04-07 12:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854821', 'tblTempUsageDetail_20' ) end [2025-04-07 12:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:20:28] Production.INFO: ==14595== Releasing lock... [2025-04-07 12:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:20:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-07 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:21:05 [end_date_ymd] => 2025-04-07 12:21:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 09:21:05' and `end` < '2025-04-07 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-04-07 12:21:19] Production.INFO: count ==5921 [2025-04-07 12:21:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:21:05 - End Time 2025-04-07 12:21:05 [2025-04-07 12:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854826', 'tblTempUsageDetail_20' ) start [2025-04-07 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854826', 'tblTempUsageDetail_20' ) end [2025-04-07 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854826', 'tblTempVendorCDR_20' ) start [2025-04-07 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854826', 'tblTempVendorCDR_20' ) end [2025-04-07 12:21:22] Production.INFO: ProcessCDR(1,14854826,1,1,2) [2025-04-07 12:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854826', 'tblTempUsageDetail_20' ) start [2025-04-07 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854826', 'tblTempUsageDetail_20' ) end [2025-04-07 12:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:21:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:21:28] Production.INFO: ==14674== Releasing lock... [2025-04-07 12:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:21:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-07 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:22:05 [end_date_ymd] => 2025-04-07 12:22:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 09:22:05' and `end` < '2025-04-07 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-04-07 12:22:19] Production.INFO: count ==5906 [2025-04-07 12:22:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:22:05 - End Time 2025-04-07 12:22:05 [2025-04-07 12:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854831', 'tblTempUsageDetail_20' ) start [2025-04-07 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854831', 'tblTempUsageDetail_20' ) end [2025-04-07 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854831', 'tblTempVendorCDR_20' ) start [2025-04-07 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854831', 'tblTempVendorCDR_20' ) end [2025-04-07 12:22:22] Production.INFO: ProcessCDR(1,14854831,1,1,2) [2025-04-07 12:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854831', 'tblTempUsageDetail_20' ) start [2025-04-07 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854831', 'tblTempUsageDetail_20' ) end [2025-04-07 12:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:22:27] Production.INFO: ==14754== Releasing lock... [2025-04-07 12:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:22:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-07 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:23:05 [end_date_ymd] => 2025-04-07 12:23:05 [RateCDR] => 1 ) [2025-04-07 12:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 09:23:05' and `end` < '2025-04-07 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 12:23:19] Production.INFO: count ==5902 [2025-04-07 12:23:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:23:05 - End Time 2025-04-07 12:23:05 [2025-04-07 12:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854836', 'tblTempUsageDetail_20' ) start [2025-04-07 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854836', 'tblTempUsageDetail_20' ) end [2025-04-07 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854836', 'tblTempVendorCDR_20' ) start [2025-04-07 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854836', 'tblTempVendorCDR_20' ) end [2025-04-07 12:23:22] Production.INFO: ProcessCDR(1,14854836,1,1,2) [2025-04-07 12:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854836', 'tblTempUsageDetail_20' ) start [2025-04-07 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854836', 'tblTempUsageDetail_20' ) end [2025-04-07 12:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:23:27] Production.INFO: ==14836== Releasing lock... [2025-04-07 12:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:23:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-07 12:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:24:06 [end_date_ymd] => 2025-04-07 12:24:06 [RateCDR] => 1 ) [2025-04-07 12: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-04-07 09:24:06' and `end` < '2025-04-07 12: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-04-07 12:24:20] Production.INFO: count ==5914 [2025-04-07 12:24:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:24:06 - End Time 2025-04-07 12:24:06 [2025-04-07 12:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854841', 'tblTempUsageDetail_20' ) start [2025-04-07 12:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854841', 'tblTempUsageDetail_20' ) end [2025-04-07 12:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854841', 'tblTempVendorCDR_20' ) start [2025-04-07 12:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854841', 'tblTempVendorCDR_20' ) end [2025-04-07 12:24:23] Production.INFO: ProcessCDR(1,14854841,1,1,2) [2025-04-07 12:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854841', 'tblTempUsageDetail_20' ) start [2025-04-07 12:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854841', 'tblTempUsageDetail_20' ) end [2025-04-07 12:24:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:24:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:24:28] Production.INFO: ==14922== Releasing lock... [2025-04-07 12:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:24:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-07 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:25:05 [end_date_ymd] => 2025-04-07 12:25:05 [RateCDR] => 1 ) [2025-04-07 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 09:25:05' and `end` < '2025-04-07 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 12:25:19] Production.INFO: count ==5885 [2025-04-07 12:25:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:25:05 - End Time 2025-04-07 12:25:05 [2025-04-07 12:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854846', 'tblTempUsageDetail_20' ) start [2025-04-07 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854846', 'tblTempUsageDetail_20' ) end [2025-04-07 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854846', 'tblTempVendorCDR_20' ) start [2025-04-07 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854846', 'tblTempVendorCDR_20' ) end [2025-04-07 12:25:22] Production.INFO: ProcessCDR(1,14854846,1,1,2) [2025-04-07 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854846', 'tblTempUsageDetail_20' ) start [2025-04-07 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854846', 'tblTempUsageDetail_20' ) end [2025-04-07 12:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:25:27] Production.INFO: ==14993== Releasing lock... [2025-04-07 12:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:25:27] Production.INFO: 72 MB #Memory Used# [2025-04-07 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:26:05 [end_date_ymd] => 2025-04-07 12:26:05 [RateCDR] => 1 ) [2025-04-07 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 09:26:05' and `end` < '2025-04-07 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 12:26:19] Production.INFO: count ==5862 [2025-04-07 12:26:21] Production.ERROR: pbx CDR StartTime 2025-04-07 09:26:05 - End Time 2025-04-07 12:26:05 [2025-04-07 12:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854851', 'tblTempUsageDetail_20' ) start [2025-04-07 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854851', 'tblTempUsageDetail_20' ) end [2025-04-07 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854851', 'tblTempVendorCDR_20' ) start [2025-04-07 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854851', 'tblTempVendorCDR_20' ) end [2025-04-07 12:26:21] Production.INFO: ProcessCDR(1,14854851,1,1,2) [2025-04-07 12:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854851', 'tblTempUsageDetail_20' ) start [2025-04-07 12:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854851', 'tblTempUsageDetail_20' ) end [2025-04-07 12:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:26:25] Production.INFO: ==15065== Releasing lock... [2025-04-07 12:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:26:25] Production.INFO: 72 MB #Memory Used# [2025-04-07 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:27:05 [end_date_ymd] => 2025-04-07 12:27:05 [RateCDR] => 1 ) [2025-04-07 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 09:27:05' and `end` < '2025-04-07 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 12:27:19] Production.INFO: count ==5863 [2025-04-07 12:27:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:27:05 - End Time 2025-04-07 12:27:05 [2025-04-07 12:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854856', 'tblTempUsageDetail_20' ) start [2025-04-07 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854856', 'tblTempUsageDetail_20' ) end [2025-04-07 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854856', 'tblTempVendorCDR_20' ) start [2025-04-07 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854856', 'tblTempVendorCDR_20' ) end [2025-04-07 12:27:22] Production.INFO: ProcessCDR(1,14854856,1,1,2) [2025-04-07 12:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854856', 'tblTempUsageDetail_20' ) start [2025-04-07 12:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854856', 'tblTempUsageDetail_20' ) end [2025-04-07 12:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:27:27] Production.INFO: ==15138== Releasing lock... [2025-04-07 12:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:27:27] Production.INFO: 72 MB #Memory Used# [2025-04-07 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:28:05 [end_date_ymd] => 2025-04-07 12:28:05 [RateCDR] => 1 ) [2025-04-07 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 09:28:05' and `end` < '2025-04-07 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 12:28:19] Production.INFO: count ==5859 [2025-04-07 12:28:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:28:05 - End Time 2025-04-07 12:28:05 [2025-04-07 12:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854861', 'tblTempUsageDetail_20' ) start [2025-04-07 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854861', 'tblTempUsageDetail_20' ) end [2025-04-07 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854861', 'tblTempVendorCDR_20' ) start [2025-04-07 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854861', 'tblTempVendorCDR_20' ) end [2025-04-07 12:28:22] Production.INFO: ProcessCDR(1,14854861,1,1,2) [2025-04-07 12:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854861', 'tblTempUsageDetail_20' ) start [2025-04-07 12:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854861', 'tblTempUsageDetail_20' ) end [2025-04-07 12:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:28:27] Production.INFO: ==15208== Releasing lock... [2025-04-07 12:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:28:27] Production.INFO: 71.75 MB #Memory Used# [2025-04-07 12:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:29:06 [end_date_ymd] => 2025-04-07 12:29:06 [RateCDR] => 1 ) [2025-04-07 12: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-04-07 09:29:06' and `end` < '2025-04-07 12: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-04-07 12:29:20] Production.INFO: count ==5862 [2025-04-07 12:29:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:29:06 - End Time 2025-04-07 12:29:06 [2025-04-07 12:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854866', 'tblTempUsageDetail_20' ) start [2025-04-07 12:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854866', 'tblTempUsageDetail_20' ) end [2025-04-07 12:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854866', 'tblTempVendorCDR_20' ) start [2025-04-07 12:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854866', 'tblTempVendorCDR_20' ) end [2025-04-07 12:29:23] Production.INFO: ProcessCDR(1,14854866,1,1,2) [2025-04-07 12:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854866', 'tblTempUsageDetail_20' ) start [2025-04-07 12:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854866', 'tblTempUsageDetail_20' ) end [2025-04-07 12:29:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:29:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:29:28] Production.INFO: ==15279== Releasing lock... [2025-04-07 12:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:29:28] Production.INFO: 72 MB #Memory Used# [2025-04-07 12:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:30:07 [end_date_ymd] => 2025-04-07 12:30:07 [RateCDR] => 1 ) [2025-04-07 12:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 09:30:07' and `end` < '2025-04-07 12:30: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-04-07 12:30:20] Production.INFO: count ==5841 [2025-04-07 12:30:23] Production.ERROR: pbx CDR StartTime 2025-04-07 09:30:07 - End Time 2025-04-07 12:30:07 [2025-04-07 12:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854872', 'tblTempUsageDetail_20' ) start [2025-04-07 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854872', 'tblTempUsageDetail_20' ) end [2025-04-07 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854872', 'tblTempVendorCDR_20' ) start [2025-04-07 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854872', 'tblTempVendorCDR_20' ) end [2025-04-07 12:30:23] Production.INFO: ProcessCDR(1,14854872,1,1,2) [2025-04-07 12:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854872', 'tblTempUsageDetail_20' ) start [2025-04-07 12:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854872', 'tblTempUsageDetail_20' ) end [2025-04-07 12:30:29] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:30:29] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:30:29] Production.INFO: ==15352== Releasing lock... [2025-04-07 12:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:30:29] Production.INFO: 71.75 MB #Memory Used# [2025-04-07 12:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:31:06 [end_date_ymd] => 2025-04-07 12:31:06 [RateCDR] => 1 ) [2025-04-07 12: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-04-07 09:31:06' and `end` < '2025-04-07 12: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-04-07 12:31:20] Production.INFO: count ==5836 [2025-04-07 12:31:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:31:06 - End Time 2025-04-07 12:31:06 [2025-04-07 12:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854877', 'tblTempUsageDetail_20' ) start [2025-04-07 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854877', 'tblTempUsageDetail_20' ) end [2025-04-07 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854877', 'tblTempVendorCDR_20' ) start [2025-04-07 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854877', 'tblTempVendorCDR_20' ) end [2025-04-07 12:31:22] Production.INFO: ProcessCDR(1,14854877,1,1,2) [2025-04-07 12:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854877', 'tblTempUsageDetail_20' ) start [2025-04-07 12:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854877', 'tblTempUsageDetail_20' ) end [2025-04-07 12:31:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:31:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:31:28] Production.INFO: ==15467== Releasing lock... [2025-04-07 12:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:31:28] Production.INFO: 71.75 MB #Memory Used# [2025-04-07 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:32:05 [end_date_ymd] => 2025-04-07 12:32:05 [RateCDR] => 1 ) [2025-04-07 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 09:32:05' and `end` < '2025-04-07 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 12:32:19] Production.INFO: count ==5822 [2025-04-07 12:32:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:32:05 - End Time 2025-04-07 12:32:05 [2025-04-07 12:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854882', 'tblTempUsageDetail_20' ) start [2025-04-07 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854882', 'tblTempUsageDetail_20' ) end [2025-04-07 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854882', 'tblTempVendorCDR_20' ) start [2025-04-07 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854882', 'tblTempVendorCDR_20' ) end [2025-04-07 12:32:22] Production.INFO: ProcessCDR(1,14854882,1,1,2) [2025-04-07 12:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854882', 'tblTempUsageDetail_20' ) start [2025-04-07 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854882', 'tblTempUsageDetail_20' ) end [2025-04-07 12:32:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:32:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:32:28] Production.INFO: ==15537== Releasing lock... [2025-04-07 12:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:32:28] Production.INFO: 71.5 MB #Memory Used# [2025-04-07 12:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:33:06 [end_date_ymd] => 2025-04-07 12:33:06 [RateCDR] => 1 ) [2025-04-07 12:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 09:33:06' and `end` < '2025-04-07 12:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 12:33:20] Production.INFO: count ==5801 [2025-04-07 12:33:23] Production.ERROR: pbx CDR StartTime 2025-04-07 09:33:06 - End Time 2025-04-07 12:33:06 [2025-04-07 12:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854887', 'tblTempUsageDetail_20' ) start [2025-04-07 12:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854887', 'tblTempUsageDetail_20' ) end [2025-04-07 12:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854887', 'tblTempVendorCDR_20' ) start [2025-04-07 12:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854887', 'tblTempVendorCDR_20' ) end [2025-04-07 12:33:23] Production.INFO: ProcessCDR(1,14854887,1,1,2) [2025-04-07 12:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854887', 'tblTempUsageDetail_20' ) start [2025-04-07 12:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854887', 'tblTempUsageDetail_20' ) end [2025-04-07 12:33:30] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:33:30] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:33:30] Production.INFO: ==15608== Releasing lock... [2025-04-07 12:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:33:30] Production.INFO: 71.5 MB #Memory Used# [2025-04-07 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:34:06 [end_date_ymd] => 2025-04-07 12:34:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 09:34:06' and `end` < '2025-04-07 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-04-07 12:34:20] Production.INFO: count ==5793 [2025-04-07 12:34:23] Production.ERROR: pbx CDR StartTime 2025-04-07 09:34:06 - End Time 2025-04-07 12:34:06 [2025-04-07 12:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854892', 'tblTempUsageDetail_20' ) start [2025-04-07 12:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854892', 'tblTempUsageDetail_20' ) end [2025-04-07 12:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854892', 'tblTempVendorCDR_20' ) start [2025-04-07 12:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854892', 'tblTempVendorCDR_20' ) end [2025-04-07 12:34:23] Production.INFO: ProcessCDR(1,14854892,1,1,2) [2025-04-07 12:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854892', 'tblTempUsageDetail_20' ) start [2025-04-07 12:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854892', 'tblTempUsageDetail_20' ) end [2025-04-07 12:34:29] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:34:29] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:34:29] Production.INFO: ==15684== Releasing lock... [2025-04-07 12:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:34:29] Production.INFO: 71.25 MB #Memory Used# [2025-04-07 12:35:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:35:07 [end_date_ymd] => 2025-04-07 12:35:07 [RateCDR] => 1 ) [2025-04-07 12:35: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-04-07 09:35:07' and `end` < '2025-04-07 12:35: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-04-07 12:35:21] Production.INFO: count ==5773 [2025-04-07 12:35:24] Production.ERROR: pbx CDR StartTime 2025-04-07 09:35:07 - End Time 2025-04-07 12:35:07 [2025-04-07 12:35:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854897', 'tblTempUsageDetail_20' ) start [2025-04-07 12:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854897', 'tblTempUsageDetail_20' ) end [2025-04-07 12:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854897', 'tblTempVendorCDR_20' ) start [2025-04-07 12:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854897', 'tblTempVendorCDR_20' ) end [2025-04-07 12:35:24] Production.INFO: ProcessCDR(1,14854897,1,1,2) [2025-04-07 12:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:35:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:35:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:35:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854897', 'tblTempUsageDetail_20' ) start [2025-04-07 12:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854897', 'tblTempUsageDetail_20' ) end [2025-04-07 12:35:30] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:35:30] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:35:30] Production.INFO: ==15758== Releasing lock... [2025-04-07 12:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:35:30] Production.INFO: 71.25 MB #Memory Used# [2025-04-07 12:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:36:06 [end_date_ymd] => 2025-04-07 12:36:06 [RateCDR] => 1 ) [2025-04-07 12:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 09:36:06' and `end` < '2025-04-07 12:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 12:36:20] Production.INFO: count ==5755 [2025-04-07 12:36:23] Production.ERROR: pbx CDR StartTime 2025-04-07 09:36:06 - End Time 2025-04-07 12:36:06 [2025-04-07 12:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854902', 'tblTempUsageDetail_20' ) start [2025-04-07 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854902', 'tblTempUsageDetail_20' ) end [2025-04-07 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854902', 'tblTempVendorCDR_20' ) start [2025-04-07 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854902', 'tblTempVendorCDR_20' ) end [2025-04-07 12:36:23] Production.INFO: ProcessCDR(1,14854902,1,1,2) [2025-04-07 12:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854902', 'tblTempUsageDetail_20' ) start [2025-04-07 12:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854902', 'tblTempUsageDetail_20' ) end [2025-04-07 12:36:29] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:36:29] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:36:29] Production.INFO: ==15828== Releasing lock... [2025-04-07 12:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:36:29] Production.INFO: 71 MB #Memory Used# [2025-04-07 12:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:37:06 [end_date_ymd] => 2025-04-07 12:37:06 [RateCDR] => 1 ) [2025-04-07 12: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-04-07 09:37:06' and `end` < '2025-04-07 12: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-04-07 12:37:19] Production.INFO: count ==5730 [2025-04-07 12:37:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:37:06 - End Time 2025-04-07 12:37:06 [2025-04-07 12:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854907', 'tblTempUsageDetail_20' ) start [2025-04-07 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854907', 'tblTempUsageDetail_20' ) end [2025-04-07 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854907', 'tblTempVendorCDR_20' ) start [2025-04-07 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854907', 'tblTempVendorCDR_20' ) end [2025-04-07 12:37:22] Production.INFO: ProcessCDR(1,14854907,1,1,2) [2025-04-07 12:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854907', 'tblTempUsageDetail_20' ) start [2025-04-07 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854907', 'tblTempUsageDetail_20' ) end [2025-04-07 12:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:37:26] Production.INFO: ==15899== Releasing lock... [2025-04-07 12:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:37:26] Production.INFO: 71 MB #Memory Used# [2025-04-07 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:38:05 [end_date_ymd] => 2025-04-07 12:38:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 09:38:05' and `end` < '2025-04-07 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-04-07 12:38:19] Production.INFO: count ==5672 [2025-04-07 12:38:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:38:05 - End Time 2025-04-07 12:38:05 [2025-04-07 12:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854912', 'tblTempUsageDetail_20' ) start [2025-04-07 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854912', 'tblTempUsageDetail_20' ) end [2025-04-07 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854912', 'tblTempVendorCDR_20' ) start [2025-04-07 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854912', 'tblTempVendorCDR_20' ) end [2025-04-07 12:38:22] Production.INFO: ProcessCDR(1,14854912,1,1,2) [2025-04-07 12:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854912', 'tblTempUsageDetail_20' ) start [2025-04-07 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854912', 'tblTempUsageDetail_20' ) end [2025-04-07 12:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:38:27] Production.INFO: ==15970== Releasing lock... [2025-04-07 12:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:38:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-07 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:39:05 [end_date_ymd] => 2025-04-07 12:39:05 [RateCDR] => 1 ) [2025-04-07 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 09:39:05' and `end` < '2025-04-07 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 12:39:19] Production.INFO: count ==5638 [2025-04-07 12:39:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:39:05 - End Time 2025-04-07 12:39:05 [2025-04-07 12:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854917', 'tblTempUsageDetail_20' ) start [2025-04-07 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854917', 'tblTempUsageDetail_20' ) end [2025-04-07 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854917', 'tblTempVendorCDR_20' ) start [2025-04-07 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854917', 'tblTempVendorCDR_20' ) end [2025-04-07 12:39:22] Production.INFO: ProcessCDR(1,14854917,1,1,2) [2025-04-07 12:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854917', 'tblTempUsageDetail_20' ) start [2025-04-07 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854917', 'tblTempUsageDetail_20' ) end [2025-04-07 12:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:39:27] Production.INFO: ==16047== Releasing lock... [2025-04-07 12:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:39:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-07 12:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:40:07 [end_date_ymd] => 2025-04-07 12:40:07 [RateCDR] => 1 ) [2025-04-07 12: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-04-07 09:40:07' and `end` < '2025-04-07 12: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-04-07 12:40:21] Production.INFO: count ==5572 [2025-04-07 12:40:24] Production.ERROR: pbx CDR StartTime 2025-04-07 09:40:07 - End Time 2025-04-07 12:40:07 [2025-04-07 12:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854923', 'tblTempUsageDetail_20' ) start [2025-04-07 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854923', 'tblTempUsageDetail_20' ) end [2025-04-07 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854923', 'tblTempVendorCDR_20' ) start [2025-04-07 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854923', 'tblTempVendorCDR_20' ) end [2025-04-07 12:40:24] Production.INFO: ProcessCDR(1,14854923,1,1,2) [2025-04-07 12:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854923', 'tblTempUsageDetail_20' ) start [2025-04-07 12:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854923', 'tblTempUsageDetail_20' ) end [2025-04-07 12:40:30] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:40:30] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:40:30] Production.INFO: ==16118== Releasing lock... [2025-04-07 12:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:40:30] Production.INFO: 69.75 MB #Memory Used# [2025-04-07 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:41:05 [end_date_ymd] => 2025-04-07 12:41:05 [RateCDR] => 1 ) [2025-04-07 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 09:41:05' and `end` < '2025-04-07 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 12:41:19] Production.INFO: count ==5539 [2025-04-07 12:41:21] Production.ERROR: pbx CDR StartTime 2025-04-07 09:41:05 - End Time 2025-04-07 12:41:05 [2025-04-07 12:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854928', 'tblTempUsageDetail_20' ) start [2025-04-07 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854928', 'tblTempUsageDetail_20' ) end [2025-04-07 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854928', 'tblTempVendorCDR_20' ) start [2025-04-07 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854928', 'tblTempVendorCDR_20' ) end [2025-04-07 12:41:21] Production.INFO: ProcessCDR(1,14854928,1,1,2) [2025-04-07 12:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854928', 'tblTempUsageDetail_20' ) start [2025-04-07 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854928', 'tblTempUsageDetail_20' ) end [2025-04-07 12:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:41:26] Production.INFO: ==16193== Releasing lock... [2025-04-07 12:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:41:26] Production.INFO: 69.5 MB #Memory Used# [2025-04-07 12:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:42:06 [end_date_ymd] => 2025-04-07 12:42:06 [RateCDR] => 1 ) [2025-04-07 12:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 09:42:06' and `end` < '2025-04-07 12:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 12:42:20] Production.INFO: count ==5526 [2025-04-07 12:42:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:42:06 - End Time 2025-04-07 12:42:06 [2025-04-07 12:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854933', 'tblTempUsageDetail_20' ) start [2025-04-07 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854933', 'tblTempUsageDetail_20' ) end [2025-04-07 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854933', 'tblTempVendorCDR_20' ) start [2025-04-07 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854933', 'tblTempVendorCDR_20' ) end [2025-04-07 12:42:22] Production.INFO: ProcessCDR(1,14854933,1,1,2) [2025-04-07 12:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854933', 'tblTempUsageDetail_20' ) start [2025-04-07 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854933', 'tblTempUsageDetail_20' ) end [2025-04-07 12:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:42:27] Production.INFO: ==16266== Releasing lock... [2025-04-07 12:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:42:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-07 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:43:05 [end_date_ymd] => 2025-04-07 12:43:05 [RateCDR] => 1 ) [2025-04-07 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 09:43:05' and `end` < '2025-04-07 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 12:43:19] Production.INFO: count ==5522 [2025-04-07 12:43:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:43:05 - End Time 2025-04-07 12:43:05 [2025-04-07 12:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854938', 'tblTempUsageDetail_20' ) start [2025-04-07 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854938', 'tblTempUsageDetail_20' ) end [2025-04-07 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854938', 'tblTempVendorCDR_20' ) start [2025-04-07 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854938', 'tblTempVendorCDR_20' ) end [2025-04-07 12:43:22] Production.INFO: ProcessCDR(1,14854938,1,1,2) [2025-04-07 12:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854938', 'tblTempUsageDetail_20' ) start [2025-04-07 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854938', 'tblTempUsageDetail_20' ) end [2025-04-07 12:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:43:27] Production.INFO: ==16337== Releasing lock... [2025-04-07 12:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:43:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-07 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:44:05 [end_date_ymd] => 2025-04-07 12:44:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 09:44:05' and `end` < '2025-04-07 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-04-07 12:44:19] Production.INFO: count ==5493 [2025-04-07 12:44:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:44:05 - End Time 2025-04-07 12:44:05 [2025-04-07 12:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854943', 'tblTempUsageDetail_20' ) start [2025-04-07 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854943', 'tblTempUsageDetail_20' ) end [2025-04-07 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854943', 'tblTempVendorCDR_20' ) start [2025-04-07 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854943', 'tblTempVendorCDR_20' ) end [2025-04-07 12:44:22] Production.INFO: ProcessCDR(1,14854943,1,1,2) [2025-04-07 12:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854943', 'tblTempUsageDetail_20' ) start [2025-04-07 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854943', 'tblTempUsageDetail_20' ) end [2025-04-07 12:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:44:27] Production.INFO: ==16407== Releasing lock... [2025-04-07 12:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:44:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-07 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:45:05 [end_date_ymd] => 2025-04-07 12:45:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 09:45:05' and `end` < '2025-04-07 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-04-07 12:45:19] Production.INFO: count ==5447 [2025-04-07 12:45:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:45:05 - End Time 2025-04-07 12:45:05 [2025-04-07 12:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854948', 'tblTempUsageDetail_20' ) start [2025-04-07 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854948', 'tblTempUsageDetail_20' ) end [2025-04-07 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854948', 'tblTempVendorCDR_20' ) start [2025-04-07 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854948', 'tblTempVendorCDR_20' ) end [2025-04-07 12:45:22] Production.INFO: ProcessCDR(1,14854948,1,1,2) [2025-04-07 12:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854948', 'tblTempUsageDetail_20' ) start [2025-04-07 12:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854948', 'tblTempUsageDetail_20' ) end [2025-04-07 12:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:45:27] Production.INFO: ==16477== Releasing lock... [2025-04-07 12:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:45:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-07 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:46:05 [end_date_ymd] => 2025-04-07 12:46:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 09:46:05' and `end` < '2025-04-07 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-04-07 12:46:20] Production.INFO: count ==5421 [2025-04-07 12:46:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:46:05 - End Time 2025-04-07 12:46:05 [2025-04-07 12:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854953', 'tblTempUsageDetail_20' ) start [2025-04-07 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854953', 'tblTempUsageDetail_20' ) end [2025-04-07 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854953', 'tblTempVendorCDR_20' ) start [2025-04-07 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854953', 'tblTempVendorCDR_20' ) end [2025-04-07 12:46:22] Production.INFO: ProcessCDR(1,14854953,1,1,2) [2025-04-07 12:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854953', 'tblTempUsageDetail_20' ) start [2025-04-07 12:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854953', 'tblTempUsageDetail_20' ) end [2025-04-07 12:46:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:46:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:46:28] Production.INFO: ==16546== Releasing lock... [2025-04-07 12:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:46:28] Production.INFO: 68.5 MB #Memory Used# [2025-04-07 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:47:05 [end_date_ymd] => 2025-04-07 12:47:05 [RateCDR] => 1 ) [2025-04-07 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 09:47:05' and `end` < '2025-04-07 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 12:47:19] Production.INFO: count ==5390 [2025-04-07 12:47:21] Production.ERROR: pbx CDR StartTime 2025-04-07 09:47:05 - End Time 2025-04-07 12:47:05 [2025-04-07 12:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854958', 'tblTempUsageDetail_20' ) start [2025-04-07 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854958', 'tblTempUsageDetail_20' ) end [2025-04-07 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854958', 'tblTempVendorCDR_20' ) start [2025-04-07 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854958', 'tblTempVendorCDR_20' ) end [2025-04-07 12:47:21] Production.INFO: ProcessCDR(1,14854958,1,1,2) [2025-04-07 12:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854958', 'tblTempUsageDetail_20' ) start [2025-04-07 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854958', 'tblTempUsageDetail_20' ) end [2025-04-07 12:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:47:27] Production.INFO: ==16657== Releasing lock... [2025-04-07 12:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:47:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-07 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:48:06 [end_date_ymd] => 2025-04-07 12:48:06 [RateCDR] => 1 ) [2025-04-07 12:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 09:48:06' and `end` < '2025-04-07 12:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 12:48:20] Production.INFO: count ==5371 [2025-04-07 12:48:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:48:06 - End Time 2025-04-07 12:48:06 [2025-04-07 12:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854963', 'tblTempUsageDetail_20' ) start [2025-04-07 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854963', 'tblTempUsageDetail_20' ) end [2025-04-07 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854963', 'tblTempVendorCDR_20' ) start [2025-04-07 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854963', 'tblTempVendorCDR_20' ) end [2025-04-07 12:48:23] Production.INFO: ProcessCDR(1,14854963,1,1,2) [2025-04-07 12:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854963', 'tblTempUsageDetail_20' ) start [2025-04-07 12:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854963', 'tblTempUsageDetail_20' ) end [2025-04-07 12:48:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:48:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:48:28] Production.INFO: ==16727== Releasing lock... [2025-04-07 12:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:48:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-07 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:49:05 [end_date_ymd] => 2025-04-07 12:49:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 09:49:05' and `end` < '2025-04-07 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-04-07 12:49:19] Production.INFO: count ==5341 [2025-04-07 12:49:21] Production.ERROR: pbx CDR StartTime 2025-04-07 09:49:05 - End Time 2025-04-07 12:49:05 [2025-04-07 12:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854968', 'tblTempUsageDetail_20' ) start [2025-04-07 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854968', 'tblTempUsageDetail_20' ) end [2025-04-07 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854968', 'tblTempVendorCDR_20' ) start [2025-04-07 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854968', 'tblTempVendorCDR_20' ) end [2025-04-07 12:49:22] Production.INFO: ProcessCDR(1,14854968,1,1,2) [2025-04-07 12:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854968', 'tblTempUsageDetail_20' ) start [2025-04-07 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854968', 'tblTempUsageDetail_20' ) end [2025-04-07 12:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:49:27] Production.INFO: ==16799== Releasing lock... [2025-04-07 12:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:49:27] Production.INFO: 68 MB #Memory Used# [2025-04-07 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:50:06 [end_date_ymd] => 2025-04-07 12:50:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 09:50:06' and `end` < '2025-04-07 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-04-07 12:50:20] Production.INFO: count ==5339 [2025-04-07 12:50:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:50:06 - End Time 2025-04-07 12:50:06 [2025-04-07 12:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854974', 'tblTempUsageDetail_20' ) start [2025-04-07 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854974', 'tblTempUsageDetail_20' ) end [2025-04-07 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854974', 'tblTempVendorCDR_20' ) start [2025-04-07 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854974', 'tblTempVendorCDR_20' ) end [2025-04-07 12:50:23] Production.INFO: ProcessCDR(1,14854974,1,1,2) [2025-04-07 12:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854974', 'tblTempUsageDetail_20' ) start [2025-04-07 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854974', 'tblTempUsageDetail_20' ) end [2025-04-07 12:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:50:28] Production.INFO: ==16872== Releasing lock... [2025-04-07 12:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:50:28] Production.INFO: 68 MB #Memory Used# [2025-04-07 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:51:05 [end_date_ymd] => 2025-04-07 12:51:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 09:51:05' and `end` < '2025-04-07 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-04-07 12:51:19] Production.INFO: count ==5343 [2025-04-07 12:51:21] Production.ERROR: pbx CDR StartTime 2025-04-07 09:51:05 - End Time 2025-04-07 12:51:05 [2025-04-07 12:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854979', 'tblTempUsageDetail_20' ) start [2025-04-07 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854979', 'tblTempUsageDetail_20' ) end [2025-04-07 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854979', 'tblTempVendorCDR_20' ) start [2025-04-07 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854979', 'tblTempVendorCDR_20' ) end [2025-04-07 12:51:21] Production.INFO: ProcessCDR(1,14854979,1,1,2) [2025-04-07 12:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854979', 'tblTempUsageDetail_20' ) start [2025-04-07 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854979', 'tblTempUsageDetail_20' ) end [2025-04-07 12:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:51:27] Production.INFO: ==16945== Releasing lock... [2025-04-07 12:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:51:27] Production.INFO: 68 MB #Memory Used# [2025-04-07 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:52:06 [end_date_ymd] => 2025-04-07 12:52:06 [RateCDR] => 1 ) [2025-04-07 12:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 09:52:06' and `end` < '2025-04-07 12:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 12:52:20] Production.INFO: count ==5338 [2025-04-07 12:52:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:52:06 - End Time 2025-04-07 12:52:06 [2025-04-07 12:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854984', 'tblTempUsageDetail_20' ) start [2025-04-07 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854984', 'tblTempUsageDetail_20' ) end [2025-04-07 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854984', 'tblTempVendorCDR_20' ) start [2025-04-07 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854984', 'tblTempVendorCDR_20' ) end [2025-04-07 12:52:22] Production.INFO: ProcessCDR(1,14854984,1,1,2) [2025-04-07 12:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854984', 'tblTempUsageDetail_20' ) start [2025-04-07 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854984', 'tblTempUsageDetail_20' ) end [2025-04-07 12:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:52:27] Production.INFO: ==17015== Releasing lock... [2025-04-07 12:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:52:27] Production.INFO: 68 MB #Memory Used# [2025-04-07 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:53:05 [end_date_ymd] => 2025-04-07 12:53:05 [RateCDR] => 1 ) [2025-04-07 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 09:53:05' and `end` < '2025-04-07 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 12:53:19] Production.INFO: count ==5353 [2025-04-07 12:53:21] Production.ERROR: pbx CDR StartTime 2025-04-07 09:53:05 - End Time 2025-04-07 12:53:05 [2025-04-07 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854989', 'tblTempUsageDetail_20' ) start [2025-04-07 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854989', 'tblTempUsageDetail_20' ) end [2025-04-07 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854989', 'tblTempVendorCDR_20' ) start [2025-04-07 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854989', 'tblTempVendorCDR_20' ) end [2025-04-07 12:53:21] Production.INFO: ProcessCDR(1,14854989,1,1,2) [2025-04-07 12:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854989', 'tblTempUsageDetail_20' ) start [2025-04-07 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854989', 'tblTempUsageDetail_20' ) end [2025-04-07 12:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:53:27] Production.INFO: ==17097== Releasing lock... [2025-04-07 12:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:53:27] Production.INFO: 68 MB #Memory Used# [2025-04-07 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:54:05 [end_date_ymd] => 2025-04-07 12:54:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 09:54:05' and `end` < '2025-04-07 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-04-07 12:54:19] Production.INFO: count ==5349 [2025-04-07 12:54:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:54:05 - End Time 2025-04-07 12:54:05 [2025-04-07 12:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854994', 'tblTempUsageDetail_20' ) start [2025-04-07 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854994', 'tblTempUsageDetail_20' ) end [2025-04-07 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854994', 'tblTempVendorCDR_20' ) start [2025-04-07 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854994', 'tblTempVendorCDR_20' ) end [2025-04-07 12:54:22] Production.INFO: ProcessCDR(1,14854994,1,1,2) [2025-04-07 12:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854994', 'tblTempUsageDetail_20' ) start [2025-04-07 12:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854994', 'tblTempUsageDetail_20' ) end [2025-04-07 12:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:54:27] Production.INFO: ==17171== Releasing lock... [2025-04-07 12:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:54:27] Production.INFO: 68 MB #Memory Used# [2025-04-07 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:55:05 [end_date_ymd] => 2025-04-07 12:55:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 09:55:05' and `end` < '2025-04-07 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-04-07 12:55:19] Production.INFO: count ==5351 [2025-04-07 12:55:21] Production.ERROR: pbx CDR StartTime 2025-04-07 09:55:05 - End Time 2025-04-07 12:55:05 [2025-04-07 12:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854999', 'tblTempUsageDetail_20' ) start [2025-04-07 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14854999', 'tblTempUsageDetail_20' ) end [2025-04-07 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854999', 'tblTempVendorCDR_20' ) start [2025-04-07 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14854999', 'tblTempVendorCDR_20' ) end [2025-04-07 12:55:21] Production.INFO: ProcessCDR(1,14854999,1,1,2) [2025-04-07 12:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14854999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14854999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14854999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14854999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854999', 'tblTempUsageDetail_20' ) start [2025-04-07 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14854999', 'tblTempUsageDetail_20' ) end [2025-04-07 12:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:55:27] Production.INFO: ==17241== Releasing lock... [2025-04-07 12:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:55:27] Production.INFO: 68 MB #Memory Used# [2025-04-07 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:56:06 [end_date_ymd] => 2025-04-07 12:56:06 [RateCDR] => 1 ) [2025-04-07 12:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 09:56:06' and `end` < '2025-04-07 12:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 12:56:20] Production.INFO: count ==5374 [2025-04-07 12:56:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:56:06 - End Time 2025-04-07 12:56:06 [2025-04-07 12:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855004', 'tblTempUsageDetail_20' ) start [2025-04-07 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855004', 'tblTempUsageDetail_20' ) end [2025-04-07 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855004', 'tblTempVendorCDR_20' ) start [2025-04-07 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855004', 'tblTempVendorCDR_20' ) end [2025-04-07 12:56:22] Production.INFO: ProcessCDR(1,14855004,1,1,2) [2025-04-07 12:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855004', 'tblTempUsageDetail_20' ) start [2025-04-07 12:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855004', 'tblTempUsageDetail_20' ) end [2025-04-07 12:56:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:56:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:56:28] Production.INFO: ==17314== Releasing lock... [2025-04-07 12:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:56:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-07 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:57:05 [end_date_ymd] => 2025-04-07 12:57:05 [RateCDR] => 1 ) [2025-04-07 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 09:57:05' and `end` < '2025-04-07 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-04-07 12:57:19] Production.INFO: count ==5365 [2025-04-07 12:57:21] Production.ERROR: pbx CDR StartTime 2025-04-07 09:57:05 - End Time 2025-04-07 12:57:05 [2025-04-07 12:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855009', 'tblTempUsageDetail_20' ) start [2025-04-07 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855009', 'tblTempUsageDetail_20' ) end [2025-04-07 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855009', 'tblTempVendorCDR_20' ) start [2025-04-07 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855009', 'tblTempVendorCDR_20' ) end [2025-04-07 12:57:21] Production.INFO: ProcessCDR(1,14855009,1,1,2) [2025-04-07 12:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855009', 'tblTempUsageDetail_20' ) start [2025-04-07 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855009', 'tblTempUsageDetail_20' ) end [2025-04-07 12:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:57:26] Production.INFO: ==17385== Releasing lock... [2025-04-07 12:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:57:26] Production.INFO: 68.25 MB #Memory Used# [2025-04-07 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:58:05 [end_date_ymd] => 2025-04-07 12:58:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 09:58:05' and `end` < '2025-04-07 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-04-07 12:58:19] Production.INFO: count ==5363 [2025-04-07 12:58:22] Production.ERROR: pbx CDR StartTime 2025-04-07 09:58:05 - End Time 2025-04-07 12:58:05 [2025-04-07 12:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855014', 'tblTempUsageDetail_20' ) start [2025-04-07 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855014', 'tblTempUsageDetail_20' ) end [2025-04-07 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855014', 'tblTempVendorCDR_20' ) start [2025-04-07 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855014', 'tblTempVendorCDR_20' ) end [2025-04-07 12:58:22] Production.INFO: ProcessCDR(1,14855014,1,1,2) [2025-04-07 12:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855014', 'tblTempUsageDetail_20' ) start [2025-04-07 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855014', 'tblTempUsageDetail_20' ) end [2025-04-07 12:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:58:27] Production.INFO: ==17455== Releasing lock... [2025-04-07 12:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:58:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-07 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 09:59:05 [end_date_ymd] => 2025-04-07 12:59:05 [RateCDR] => 1 ) [2025-04-07 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 09:59:05' and `end` < '2025-04-07 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 12:59:18] Production.INFO: count ==5350 [2025-04-07 12:59:21] Production.ERROR: pbx CDR StartTime 2025-04-07 09:59:05 - End Time 2025-04-07 12:59:05 [2025-04-07 12:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855019', 'tblTempUsageDetail_20' ) start [2025-04-07 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855019', 'tblTempUsageDetail_20' ) end [2025-04-07 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855019', 'tblTempVendorCDR_20' ) start [2025-04-07 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855019', 'tblTempVendorCDR_20' ) end [2025-04-07 12:59:21] Production.INFO: ProcessCDR(1,14855019,1,1,2) [2025-04-07 12:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 12:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855019', 'tblTempUsageDetail_20' ) start [2025-04-07 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855019', 'tblTempUsageDetail_20' ) end [2025-04-07 12:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 12:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 12:59:26] Production.INFO: ==17526== Releasing lock... [2025-04-07 12:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 12:59:26] Production.INFO: 68 MB #Memory Used# [2025-04-07 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:00:06 [end_date_ymd] => 2025-04-07 13:00:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:00:06' and `end` < '2025-04-07 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-04-07 13:00:20] Production.INFO: count ==5353 [2025-04-07 13:00:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:00:06 - End Time 2025-04-07 13:00:06 [2025-04-07 13:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855025', 'tblTempUsageDetail_20' ) start [2025-04-07 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855025', 'tblTempUsageDetail_20' ) end [2025-04-07 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855025', 'tblTempVendorCDR_20' ) start [2025-04-07 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855025', 'tblTempVendorCDR_20' ) end [2025-04-07 13:00:23] Production.INFO: ProcessCDR(1,14855025,1,1,2) [2025-04-07 13:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855025', 'tblTempUsageDetail_20' ) start [2025-04-07 13:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855025', 'tblTempUsageDetail_20' ) end [2025-04-07 13:00:29] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:00:29] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:00:29] Production.INFO: ==17603== Releasing lock... [2025-04-07 13:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:00:29] Production.INFO: 68 MB #Memory Used# [2025-04-07 13:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:01:06 [end_date_ymd] => 2025-04-07 13:01:06 [RateCDR] => 1 ) [2025-04-07 13: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-04-07 10:01:06' and `end` < '2025-04-07 13: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-04-07 13:01:20] Production.INFO: count ==5317 [2025-04-07 13:01:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:01:06 - End Time 2025-04-07 13:01:06 [2025-04-07 13:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855030', 'tblTempUsageDetail_20' ) start [2025-04-07 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855030', 'tblTempUsageDetail_20' ) end [2025-04-07 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855030', 'tblTempVendorCDR_20' ) start [2025-04-07 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855030', 'tblTempVendorCDR_20' ) end [2025-04-07 13:01:22] Production.INFO: ProcessCDR(1,14855030,1,1,2) [2025-04-07 13:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855030', 'tblTempUsageDetail_20' ) start [2025-04-07 13:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855030', 'tblTempUsageDetail_20' ) end [2025-04-07 13:01:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:01:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:01:28] Production.INFO: ==17687== Releasing lock... [2025-04-07 13:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:01:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-07 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:02:06 [end_date_ymd] => 2025-04-07 13:02:06 [RateCDR] => 1 ) [2025-04-07 13:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 10:02:06' and `end` < '2025-04-07 13:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 13:02:20] Production.INFO: count ==5326 [2025-04-07 13:02:23] Production.ERROR: pbx CDR StartTime 2025-04-07 10:02:06 - End Time 2025-04-07 13:02:06 [2025-04-07 13:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855035', 'tblTempUsageDetail_20' ) start [2025-04-07 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855035', 'tblTempUsageDetail_20' ) end [2025-04-07 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855035', 'tblTempVendorCDR_20' ) start [2025-04-07 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855035', 'tblTempVendorCDR_20' ) end [2025-04-07 13:02:23] Production.INFO: ProcessCDR(1,14855035,1,1,2) [2025-04-07 13:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855035', 'tblTempUsageDetail_20' ) start [2025-04-07 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855035', 'tblTempUsageDetail_20' ) end [2025-04-07 13:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:02:28] Production.INFO: ==17798== Releasing lock... [2025-04-07 13:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:02:28] Production.INFO: 68 MB #Memory Used# [2025-04-07 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:03:05 [end_date_ymd] => 2025-04-07 13:03:05 [RateCDR] => 1 ) [2025-04-07 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 10:03:05' and `end` < '2025-04-07 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 13:03:19] Production.INFO: count ==5315 [2025-04-07 13:03:21] Production.ERROR: pbx CDR StartTime 2025-04-07 10:03:05 - End Time 2025-04-07 13:03:05 [2025-04-07 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855040', 'tblTempUsageDetail_20' ) start [2025-04-07 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855040', 'tblTempUsageDetail_20' ) end [2025-04-07 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855040', 'tblTempVendorCDR_20' ) start [2025-04-07 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855040', 'tblTempVendorCDR_20' ) end [2025-04-07 13:03:21] Production.INFO: ProcessCDR(1,14855040,1,1,2) [2025-04-07 13:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855040', 'tblTempUsageDetail_20' ) start [2025-04-07 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855040', 'tblTempUsageDetail_20' ) end [2025-04-07 13:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:03:27] Production.INFO: ==17870== Releasing lock... [2025-04-07 13:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:03:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-07 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:04:05 [end_date_ymd] => 2025-04-07 13:04:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:04:05' and `end` < '2025-04-07 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-04-07 13:04:19] Production.INFO: count ==5298 [2025-04-07 13:04:21] Production.ERROR: pbx CDR StartTime 2025-04-07 10:04:05 - End Time 2025-04-07 13:04:05 [2025-04-07 13:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855045', 'tblTempUsageDetail_20' ) start [2025-04-07 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855045', 'tblTempUsageDetail_20' ) end [2025-04-07 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855045', 'tblTempVendorCDR_20' ) start [2025-04-07 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855045', 'tblTempVendorCDR_20' ) end [2025-04-07 13:04:21] Production.INFO: ProcessCDR(1,14855045,1,1,2) [2025-04-07 13:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855045', 'tblTempUsageDetail_20' ) start [2025-04-07 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855045', 'tblTempUsageDetail_20' ) end [2025-04-07 13:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:04:27] Production.INFO: ==17943== Releasing lock... [2025-04-07 13:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:04:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-07 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:05:05 [end_date_ymd] => 2025-04-07 13:05:05 [RateCDR] => 1 ) [2025-04-07 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 10:05:05' and `end` < '2025-04-07 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 13:05:19] Production.INFO: count ==5286 [2025-04-07 13:05:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:05:05 - End Time 2025-04-07 13:05:05 [2025-04-07 13:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855050', 'tblTempUsageDetail_20' ) start [2025-04-07 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855050', 'tblTempUsageDetail_20' ) end [2025-04-07 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855050', 'tblTempVendorCDR_20' ) start [2025-04-07 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855050', 'tblTempVendorCDR_20' ) end [2025-04-07 13:05:22] Production.INFO: ProcessCDR(1,14855050,1,1,2) [2025-04-07 13:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855050', 'tblTempUsageDetail_20' ) start [2025-04-07 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855050', 'tblTempUsageDetail_20' ) end [2025-04-07 13:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:05:26] Production.INFO: ==18014== Releasing lock... [2025-04-07 13:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:05:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-07 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:06:05 [end_date_ymd] => 2025-04-07 13:06:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:06:05' and `end` < '2025-04-07 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-04-07 13:06:19] Production.INFO: count ==5306 [2025-04-07 13:06:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:06:05 - End Time 2025-04-07 13:06:05 [2025-04-07 13:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855055', 'tblTempUsageDetail_20' ) start [2025-04-07 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855055', 'tblTempUsageDetail_20' ) end [2025-04-07 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855055', 'tblTempVendorCDR_20' ) start [2025-04-07 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855055', 'tblTempVendorCDR_20' ) end [2025-04-07 13:06:22] Production.INFO: ProcessCDR(1,14855055,1,1,2) [2025-04-07 13:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855055', 'tblTempUsageDetail_20' ) start [2025-04-07 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855055', 'tblTempUsageDetail_20' ) end [2025-04-07 13:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:06:27] Production.INFO: ==18084== Releasing lock... [2025-04-07 13:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:06:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-07 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:07:05 [end_date_ymd] => 2025-04-07 13:07:05 [RateCDR] => 1 ) [2025-04-07 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 10:07:05' and `end` < '2025-04-07 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 13:07:18] Production.INFO: count ==5280 [2025-04-07 13:07:21] Production.ERROR: pbx CDR StartTime 2025-04-07 10:07:05 - End Time 2025-04-07 13:07:05 [2025-04-07 13:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855060', 'tblTempUsageDetail_20' ) start [2025-04-07 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855060', 'tblTempUsageDetail_20' ) end [2025-04-07 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855060', 'tblTempVendorCDR_20' ) start [2025-04-07 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855060', 'tblTempVendorCDR_20' ) end [2025-04-07 13:07:21] Production.INFO: ProcessCDR(1,14855060,1,1,2) [2025-04-07 13:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855060', 'tblTempUsageDetail_20' ) start [2025-04-07 13:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855060', 'tblTempUsageDetail_20' ) end [2025-04-07 13:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:07:24] Production.INFO: ==18155== Releasing lock... [2025-04-07 13:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:07:24] Production.INFO: 67.5 MB #Memory Used# [2025-04-07 13:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:08:06 [end_date_ymd] => 2025-04-07 13:08:06 [RateCDR] => 1 ) [2025-04-07 13: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-04-07 10:08:06' and `end` < '2025-04-07 13: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-04-07 13:08:20] Production.INFO: count ==5280 [2025-04-07 13:08:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:08:06 - End Time 2025-04-07 13:08:06 [2025-04-07 13:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855065', 'tblTempUsageDetail_20' ) start [2025-04-07 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855065', 'tblTempUsageDetail_20' ) end [2025-04-07 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855065', 'tblTempVendorCDR_20' ) start [2025-04-07 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855065', 'tblTempVendorCDR_20' ) end [2025-04-07 13:08:22] Production.INFO: ProcessCDR(1,14855065,1,1,2) [2025-04-07 13:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855065', 'tblTempUsageDetail_20' ) start [2025-04-07 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855065', 'tblTempUsageDetail_20' ) end [2025-04-07 13:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:08:27] Production.INFO: ==18228== Releasing lock... [2025-04-07 13:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:08:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-07 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:09:05 [end_date_ymd] => 2025-04-07 13:09:05 [RateCDR] => 1 ) [2025-04-07 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 10:09:05' and `end` < '2025-04-07 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 13:09:18] Production.INFO: count ==5292 [2025-04-07 13:09:20] Production.ERROR: pbx CDR StartTime 2025-04-07 10:09:05 - End Time 2025-04-07 13:09:05 [2025-04-07 13:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855070', 'tblTempUsageDetail_20' ) start [2025-04-07 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855070', 'tblTempUsageDetail_20' ) end [2025-04-07 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855070', 'tblTempVendorCDR_20' ) start [2025-04-07 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855070', 'tblTempVendorCDR_20' ) end [2025-04-07 13:09:21] Production.INFO: ProcessCDR(1,14855070,1,1,2) [2025-04-07 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855070', 'tblTempUsageDetail_20' ) start [2025-04-07 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855070', 'tblTempUsageDetail_20' ) end [2025-04-07 13:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:09:26] Production.INFO: ==18297== Releasing lock... [2025-04-07 13:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:09:26] Production.INFO: 67.75 MB #Memory Used# [2025-04-07 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:10:06 [end_date_ymd] => 2025-04-07 13:10:06 [RateCDR] => 1 ) [2025-04-07 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 10:10:06' and `end` < '2025-04-07 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 13:10:20] Production.INFO: count ==5275 [2025-04-07 13:10:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:10:06 - End Time 2025-04-07 13:10:06 [2025-04-07 13:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855075', 'tblTempUsageDetail_20' ) start [2025-04-07 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855075', 'tblTempUsageDetail_20' ) end [2025-04-07 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855075', 'tblTempVendorCDR_20' ) start [2025-04-07 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855075', 'tblTempVendorCDR_20' ) end [2025-04-07 13:10:22] Production.INFO: ProcessCDR(1,14855075,1,1,2) [2025-04-07 13:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855075', 'tblTempUsageDetail_20' ) start [2025-04-07 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855075', 'tblTempUsageDetail_20' ) end [2025-04-07 13:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:10:27] Production.INFO: ==18370== Releasing lock... [2025-04-07 13:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:10:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-07 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:11:05 [end_date_ymd] => 2025-04-07 13:11:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:11:05' and `end` < '2025-04-07 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-04-07 13:11:19] Production.INFO: count ==5316 [2025-04-07 13:11:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:11:05 - End Time 2025-04-07 13:11:05 [2025-04-07 13:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855081', 'tblTempUsageDetail_20' ) start [2025-04-07 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855081', 'tblTempUsageDetail_20' ) end [2025-04-07 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855081', 'tblTempVendorCDR_20' ) start [2025-04-07 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855081', 'tblTempVendorCDR_20' ) end [2025-04-07 13:11:22] Production.INFO: ProcessCDR(1,14855081,1,1,2) [2025-04-07 13:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855081', 'tblTempUsageDetail_20' ) start [2025-04-07 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855081', 'tblTempUsageDetail_20' ) end [2025-04-07 13:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:11:27] Production.INFO: ==18444== Releasing lock... [2025-04-07 13:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:11:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-07 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:12:05 [end_date_ymd] => 2025-04-07 13:12:05 [RateCDR] => 1 ) [2025-04-07 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 10:12:05' and `end` < '2025-04-07 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 13:12:19] Production.INFO: count ==5309 [2025-04-07 13:12:21] Production.ERROR: pbx CDR StartTime 2025-04-07 10:12:05 - End Time 2025-04-07 13:12:05 [2025-04-07 13:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855086', 'tblTempUsageDetail_20' ) start [2025-04-07 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855086', 'tblTempUsageDetail_20' ) end [2025-04-07 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855086', 'tblTempVendorCDR_20' ) start [2025-04-07 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855086', 'tblTempVendorCDR_20' ) end [2025-04-07 13:12:21] Production.INFO: ProcessCDR(1,14855086,1,1,2) [2025-04-07 13:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855086', 'tblTempUsageDetail_20' ) start [2025-04-07 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855086', 'tblTempUsageDetail_20' ) end [2025-04-07 13:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:12:27] Production.INFO: ==18517== Releasing lock... [2025-04-07 13:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:12:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-07 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:13:06 [end_date_ymd] => 2025-04-07 13:13:06 [RateCDR] => 1 ) [2025-04-07 13:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 10:13:06' and `end` < '2025-04-07 13:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 13:13:20] Production.INFO: count ==5291 [2025-04-07 13:13:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:13:06 - End Time 2025-04-07 13:13:06 [2025-04-07 13:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855091', 'tblTempUsageDetail_20' ) start [2025-04-07 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855091', 'tblTempUsageDetail_20' ) end [2025-04-07 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855091', 'tblTempVendorCDR_20' ) start [2025-04-07 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855091', 'tblTempVendorCDR_20' ) end [2025-04-07 13:13:22] Production.INFO: ProcessCDR(1,14855091,1,1,2) [2025-04-07 13:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855091', 'tblTempUsageDetail_20' ) start [2025-04-07 13:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855091', 'tblTempUsageDetail_20' ) end [2025-04-07 13:13:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:13:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:13:28] Production.INFO: ==18594== Releasing lock... [2025-04-07 13:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:13:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-07 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:14:05 [end_date_ymd] => 2025-04-07 13:14:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:14:05' and `end` < '2025-04-07 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-04-07 13:14:19] Production.INFO: count ==5261 [2025-04-07 13:14:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:14:05 - End Time 2025-04-07 13:14:05 [2025-04-07 13:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855096', 'tblTempUsageDetail_20' ) start [2025-04-07 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855096', 'tblTempUsageDetail_20' ) end [2025-04-07 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855096', 'tblTempVendorCDR_20' ) start [2025-04-07 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855096', 'tblTempVendorCDR_20' ) end [2025-04-07 13:14:22] Production.INFO: ProcessCDR(1,14855096,1,1,2) [2025-04-07 13:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855096', 'tblTempUsageDetail_20' ) start [2025-04-07 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855096', 'tblTempUsageDetail_20' ) end [2025-04-07 13:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:14:28] Production.INFO: ==18663== Releasing lock... [2025-04-07 13:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:14:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-07 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:15:06 [end_date_ymd] => 2025-04-07 13:15:06 [RateCDR] => 1 ) [2025-04-07 13: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-04-07 10:15:06' and `end` < '2025-04-07 13: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-04-07 13:15:20] Production.INFO: count ==5244 [2025-04-07 13:15:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:15:06 - End Time 2025-04-07 13:15:06 [2025-04-07 13:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855101', 'tblTempUsageDetail_20' ) start [2025-04-07 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855101', 'tblTempUsageDetail_20' ) end [2025-04-07 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855101', 'tblTempVendorCDR_20' ) start [2025-04-07 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855101', 'tblTempVendorCDR_20' ) end [2025-04-07 13:15:22] Production.INFO: ProcessCDR(1,14855101,1,1,2) [2025-04-07 13:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855101', 'tblTempUsageDetail_20' ) start [2025-04-07 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855101', 'tblTempUsageDetail_20' ) end [2025-04-07 13:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:15:27] Production.INFO: ==18735== Releasing lock... [2025-04-07 13:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:15:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-07 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:16:05 [end_date_ymd] => 2025-04-07 13:16:05 [RateCDR] => 1 ) [2025-04-07 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 10:16:05' and `end` < '2025-04-07 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 13:16:19] Production.INFO: count ==5258 [2025-04-07 13:16:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:16:05 - End Time 2025-04-07 13:16:05 [2025-04-07 13:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855106', 'tblTempUsageDetail_20' ) start [2025-04-07 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855106', 'tblTempUsageDetail_20' ) end [2025-04-07 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855106', 'tblTempVendorCDR_20' ) start [2025-04-07 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855106', 'tblTempVendorCDR_20' ) end [2025-04-07 13:16:22] Production.INFO: ProcessCDR(1,14855106,1,1,2) [2025-04-07 13:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855106', 'tblTempUsageDetail_20' ) start [2025-04-07 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855106', 'tblTempUsageDetail_20' ) end [2025-04-07 13:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:16:27] Production.INFO: ==18807== Releasing lock... [2025-04-07 13:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:16:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-07 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:17:05 [end_date_ymd] => 2025-04-07 13:17:05 [RateCDR] => 1 ) [2025-04-07 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 10:17:05' and `end` < '2025-04-07 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 13:17:19] Production.INFO: count ==5280 [2025-04-07 13:17:21] Production.ERROR: pbx CDR StartTime 2025-04-07 10:17:05 - End Time 2025-04-07 13:17:05 [2025-04-07 13:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855111', 'tblTempUsageDetail_20' ) start [2025-04-07 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855111', 'tblTempUsageDetail_20' ) end [2025-04-07 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855111', 'tblTempVendorCDR_20' ) start [2025-04-07 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855111', 'tblTempVendorCDR_20' ) end [2025-04-07 13:17:21] Production.INFO: ProcessCDR(1,14855111,1,1,2) [2025-04-07 13:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855111', 'tblTempUsageDetail_20' ) start [2025-04-07 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855111', 'tblTempUsageDetail_20' ) end [2025-04-07 13:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:17:27] Production.INFO: ==18878== Releasing lock... [2025-04-07 13:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:17:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-07 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:18:05 [end_date_ymd] => 2025-04-07 13:18:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:18:05' and `end` < '2025-04-07 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-04-07 13:18:19] Production.INFO: count ==5298 [2025-04-07 13:18:21] Production.ERROR: pbx CDR StartTime 2025-04-07 10:18:05 - End Time 2025-04-07 13:18:05 [2025-04-07 13:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855116', 'tblTempUsageDetail_20' ) start [2025-04-07 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855116', 'tblTempUsageDetail_20' ) end [2025-04-07 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855116', 'tblTempVendorCDR_20' ) start [2025-04-07 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855116', 'tblTempVendorCDR_20' ) end [2025-04-07 13:18:22] Production.INFO: ProcessCDR(1,14855116,1,1,2) [2025-04-07 13:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855116', 'tblTempUsageDetail_20' ) start [2025-04-07 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855116', 'tblTempUsageDetail_20' ) end [2025-04-07 13:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:18:27] Production.INFO: ==19000== Releasing lock... [2025-04-07 13:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:18:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-07 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:19:05 [end_date_ymd] => 2025-04-07 13:19:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:19:05' and `end` < '2025-04-07 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-04-07 13:19:19] Production.INFO: count ==5301 [2025-04-07 13:19:21] Production.ERROR: pbx CDR StartTime 2025-04-07 10:19:05 - End Time 2025-04-07 13:19:05 [2025-04-07 13:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855121', 'tblTempUsageDetail_20' ) start [2025-04-07 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855121', 'tblTempUsageDetail_20' ) end [2025-04-07 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855121', 'tblTempVendorCDR_20' ) start [2025-04-07 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855121', 'tblTempVendorCDR_20' ) end [2025-04-07 13:19:22] Production.INFO: ProcessCDR(1,14855121,1,1,2) [2025-04-07 13:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855121', 'tblTempUsageDetail_20' ) start [2025-04-07 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855121', 'tblTempUsageDetail_20' ) end [2025-04-07 13:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:19:27] Production.INFO: ==19073== Releasing lock... [2025-04-07 13:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:19:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-07 13:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:20:05 [end_date_ymd] => 2025-04-07 13:20:05 [RateCDR] => 1 ) [2025-04-07 13:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 10:20:05' and `end` < '2025-04-07 13:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 13:20:19] Production.INFO: count ==5316 [2025-04-07 13:20:21] Production.ERROR: pbx CDR StartTime 2025-04-07 10:20:05 - End Time 2025-04-07 13:20:05 [2025-04-07 13:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855126', 'tblTempUsageDetail_20' ) start [2025-04-07 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855126', 'tblTempUsageDetail_20' ) end [2025-04-07 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855126', 'tblTempVendorCDR_20' ) start [2025-04-07 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855126', 'tblTempVendorCDR_20' ) end [2025-04-07 13:20:21] Production.INFO: ProcessCDR(1,14855126,1,1,2) [2025-04-07 13:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855126', 'tblTempUsageDetail_20' ) start [2025-04-07 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855126', 'tblTempUsageDetail_20' ) end [2025-04-07 13:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:20:27] Production.INFO: ==19150== Releasing lock... [2025-04-07 13:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:20:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-07 13:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:21:06 [end_date_ymd] => 2025-04-07 13:21:06 [RateCDR] => 1 ) [2025-04-07 13:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 10:21:06' and `end` < '2025-04-07 13:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 13:21:20] Production.INFO: count ==5274 [2025-04-07 13:21:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:21:06 - End Time 2025-04-07 13:21:06 [2025-04-07 13:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855132', 'tblTempUsageDetail_20' ) start [2025-04-07 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855132', 'tblTempUsageDetail_20' ) end [2025-04-07 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855132', 'tblTempVendorCDR_20' ) start [2025-04-07 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855132', 'tblTempVendorCDR_20' ) end [2025-04-07 13:21:22] Production.INFO: ProcessCDR(1,14855132,1,1,2) [2025-04-07 13:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855132', 'tblTempUsageDetail_20' ) start [2025-04-07 13:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855132', 'tblTempUsageDetail_20' ) end [2025-04-07 13:21:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:21:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:21:28] Production.INFO: ==19224== Releasing lock... [2025-04-07 13:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:21:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-07 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:22:05 [end_date_ymd] => 2025-04-07 13:22:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:22:05' and `end` < '2025-04-07 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-04-07 13:22:19] Production.INFO: count ==5282 [2025-04-07 13:22:21] Production.ERROR: pbx CDR StartTime 2025-04-07 10:22:05 - End Time 2025-04-07 13:22:05 [2025-04-07 13:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855137', 'tblTempUsageDetail_20' ) start [2025-04-07 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855137', 'tblTempUsageDetail_20' ) end [2025-04-07 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855137', 'tblTempVendorCDR_20' ) start [2025-04-07 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855137', 'tblTempVendorCDR_20' ) end [2025-04-07 13:22:21] Production.INFO: ProcessCDR(1,14855137,1,1,2) [2025-04-07 13:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855137', 'tblTempUsageDetail_20' ) start [2025-04-07 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855137', 'tblTempUsageDetail_20' ) end [2025-04-07 13:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:22:27] Production.INFO: ==19293== Releasing lock... [2025-04-07 13:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:22:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-07 13:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:23:06 [end_date_ymd] => 2025-04-07 13:23:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:23:06' and `end` < '2025-04-07 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-04-07 13:23:19] Production.INFO: count ==5266 [2025-04-07 13:23:21] Production.ERROR: pbx CDR StartTime 2025-04-07 10:23:06 - End Time 2025-04-07 13:23:06 [2025-04-07 13:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855142', 'tblTempUsageDetail_20' ) start [2025-04-07 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855142', 'tblTempUsageDetail_20' ) end [2025-04-07 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855142', 'tblTempVendorCDR_20' ) start [2025-04-07 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855142', 'tblTempVendorCDR_20' ) end [2025-04-07 13:23:22] Production.INFO: ProcessCDR(1,14855142,1,1,2) [2025-04-07 13:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855142', 'tblTempUsageDetail_20' ) start [2025-04-07 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855142', 'tblTempUsageDetail_20' ) end [2025-04-07 13:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:23:27] Production.INFO: ==19364== Releasing lock... [2025-04-07 13:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:23:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-07 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:24:05 [end_date_ymd] => 2025-04-07 13:24:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:24:05' and `end` < '2025-04-07 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-04-07 13:24:18] Production.INFO: count ==5279 [2025-04-07 13:24:21] Production.ERROR: pbx CDR StartTime 2025-04-07 10:24:05 - End Time 2025-04-07 13:24:05 [2025-04-07 13:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855147', 'tblTempUsageDetail_20' ) start [2025-04-07 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855147', 'tblTempUsageDetail_20' ) end [2025-04-07 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855147', 'tblTempVendorCDR_20' ) start [2025-04-07 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855147', 'tblTempVendorCDR_20' ) end [2025-04-07 13:24:21] Production.INFO: ProcessCDR(1,14855147,1,1,2) [2025-04-07 13:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855147', 'tblTempUsageDetail_20' ) start [2025-04-07 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855147', 'tblTempUsageDetail_20' ) end [2025-04-07 13:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:24:26] Production.INFO: ==19433== Releasing lock... [2025-04-07 13:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:24:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-07 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:25:05 [end_date_ymd] => 2025-04-07 13:25:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:25:05' and `end` < '2025-04-07 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-04-07 13:25:18] Production.INFO: count ==5286 [2025-04-07 13:25:21] Production.ERROR: pbx CDR StartTime 2025-04-07 10:25:05 - End Time 2025-04-07 13:25:05 [2025-04-07 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855152', 'tblTempUsageDetail_20' ) start [2025-04-07 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855152', 'tblTempUsageDetail_20' ) end [2025-04-07 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855152', 'tblTempVendorCDR_20' ) start [2025-04-07 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855152', 'tblTempVendorCDR_20' ) end [2025-04-07 13:25:21] Production.INFO: ProcessCDR(1,14855152,1,1,2) [2025-04-07 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855152', 'tblTempUsageDetail_20' ) start [2025-04-07 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855152', 'tblTempUsageDetail_20' ) end [2025-04-07 13:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:25:26] Production.INFO: ==19504== Releasing lock... [2025-04-07 13:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:25:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-07 13:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:26:06 [end_date_ymd] => 2025-04-07 13:26:06 [RateCDR] => 1 ) [2025-04-07 13: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-04-07 10:26:06' and `end` < '2025-04-07 13: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-04-07 13:26:20] Production.INFO: count ==5288 [2025-04-07 13:26:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:26:06 - End Time 2025-04-07 13:26:06 [2025-04-07 13:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855157', 'tblTempUsageDetail_20' ) start [2025-04-07 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855157', 'tblTempUsageDetail_20' ) end [2025-04-07 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855157', 'tblTempVendorCDR_20' ) start [2025-04-07 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855157', 'tblTempVendorCDR_20' ) end [2025-04-07 13:26:22] Production.INFO: ProcessCDR(1,14855157,1,1,2) [2025-04-07 13:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855157', 'tblTempUsageDetail_20' ) start [2025-04-07 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855157', 'tblTempUsageDetail_20' ) end [2025-04-07 13:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:26:27] Production.INFO: ==19580== Releasing lock... [2025-04-07 13:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:26:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-07 13:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:27:06 [end_date_ymd] => 2025-04-07 13:27:06 [RateCDR] => 1 ) [2025-04-07 13:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 10:27:06' and `end` < '2025-04-07 13:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 13:27:19] Production.INFO: count ==5283 [2025-04-07 13:27:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:27:06 - End Time 2025-04-07 13:27:06 [2025-04-07 13:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855162', 'tblTempUsageDetail_20' ) start [2025-04-07 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855162', 'tblTempUsageDetail_20' ) end [2025-04-07 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855162', 'tblTempVendorCDR_20' ) start [2025-04-07 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855162', 'tblTempVendorCDR_20' ) end [2025-04-07 13:27:22] Production.INFO: ProcessCDR(1,14855162,1,1,2) [2025-04-07 13:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855162', 'tblTempUsageDetail_20' ) start [2025-04-07 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855162', 'tblTempUsageDetail_20' ) end [2025-04-07 13:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:27:27] Production.INFO: ==19653== Releasing lock... [2025-04-07 13:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:27:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-07 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:28:05 [end_date_ymd] => 2025-04-07 13:28:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:28:05' and `end` < '2025-04-07 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-04-07 13:28:18] Production.INFO: count ==5273 [2025-04-07 13:28:21] Production.ERROR: pbx CDR StartTime 2025-04-07 10:28:05 - End Time 2025-04-07 13:28:05 [2025-04-07 13:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855167', 'tblTempUsageDetail_20' ) start [2025-04-07 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855167', 'tblTempUsageDetail_20' ) end [2025-04-07 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855167', 'tblTempVendorCDR_20' ) start [2025-04-07 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855167', 'tblTempVendorCDR_20' ) end [2025-04-07 13:28:21] Production.INFO: ProcessCDR(1,14855167,1,1,2) [2025-04-07 13:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855167', 'tblTempUsageDetail_20' ) start [2025-04-07 13:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855167', 'tblTempUsageDetail_20' ) end [2025-04-07 13:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:28:24] Production.INFO: ==19722== Releasing lock... [2025-04-07 13:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:28:24] Production.INFO: 67.5 MB #Memory Used# [2025-04-07 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:29:05 [end_date_ymd] => 2025-04-07 13:29:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:29:05' and `end` < '2025-04-07 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-04-07 13:29:19] Production.INFO: count ==5273 [2025-04-07 13:29:21] Production.ERROR: pbx CDR StartTime 2025-04-07 10:29:05 - End Time 2025-04-07 13:29:05 [2025-04-07 13:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855172', 'tblTempUsageDetail_20' ) start [2025-04-07 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855172', 'tblTempUsageDetail_20' ) end [2025-04-07 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855172', 'tblTempVendorCDR_20' ) start [2025-04-07 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855172', 'tblTempVendorCDR_20' ) end [2025-04-07 13:29:21] Production.INFO: ProcessCDR(1,14855172,1,1,2) [2025-04-07 13:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855172', 'tblTempUsageDetail_20' ) start [2025-04-07 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855172', 'tblTempUsageDetail_20' ) end [2025-04-07 13:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:29:26] Production.INFO: ==19794== Releasing lock... [2025-04-07 13:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:29:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-07 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:30:06 [end_date_ymd] => 2025-04-07 13:30:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:30:06' and `end` < '2025-04-07 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-04-07 13:30:20] Production.INFO: count ==5277 [2025-04-07 13:30:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:30:06 - End Time 2025-04-07 13:30:06 [2025-04-07 13:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855178', 'tblTempUsageDetail_20' ) start [2025-04-07 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855178', 'tblTempUsageDetail_20' ) end [2025-04-07 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855178', 'tblTempVendorCDR_20' ) start [2025-04-07 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855178', 'tblTempVendorCDR_20' ) end [2025-04-07 13:30:22] Production.INFO: ProcessCDR(1,14855178,1,1,2) [2025-04-07 13:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855178', 'tblTempUsageDetail_20' ) start [2025-04-07 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855178', 'tblTempUsageDetail_20' ) end [2025-04-07 13:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:30:27] Production.INFO: ==19868== Releasing lock... [2025-04-07 13:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:30:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-07 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:31:05 [end_date_ymd] => 2025-04-07 13:31:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:31:05' and `end` < '2025-04-07 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-04-07 13:31:19] Production.INFO: count ==5262 [2025-04-07 13:31:21] Production.ERROR: pbx CDR StartTime 2025-04-07 10:31:05 - End Time 2025-04-07 13:31:05 [2025-04-07 13:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855183', 'tblTempUsageDetail_20' ) start [2025-04-07 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855183', 'tblTempUsageDetail_20' ) end [2025-04-07 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855183', 'tblTempVendorCDR_20' ) start [2025-04-07 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855183', 'tblTempVendorCDR_20' ) end [2025-04-07 13:31:21] Production.INFO: ProcessCDR(1,14855183,1,1,2) [2025-04-07 13:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855183', 'tblTempUsageDetail_20' ) start [2025-04-07 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855183', 'tblTempUsageDetail_20' ) end [2025-04-07 13:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:31:26] Production.INFO: ==19942== Releasing lock... [2025-04-07 13:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:31:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-07 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:32:06 [end_date_ymd] => 2025-04-07 13:32:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:32:06' and `end` < '2025-04-07 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-04-07 13:32:20] Production.INFO: count ==5265 [2025-04-07 13:32:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:32:06 - End Time 2025-04-07 13:32:06 [2025-04-07 13:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855188', 'tblTempUsageDetail_20' ) start [2025-04-07 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855188', 'tblTempUsageDetail_20' ) end [2025-04-07 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855188', 'tblTempVendorCDR_20' ) start [2025-04-07 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855188', 'tblTempVendorCDR_20' ) end [2025-04-07 13:32:22] Production.INFO: ProcessCDR(1,14855188,1,1,2) [2025-04-07 13:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855188', 'tblTempUsageDetail_20' ) start [2025-04-07 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855188', 'tblTempUsageDetail_20' ) end [2025-04-07 13:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:32:27] Production.INFO: ==20018== Releasing lock... [2025-04-07 13:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:32:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-07 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:33:05 [end_date_ymd] => 2025-04-07 13:33:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:33:05' and `end` < '2025-04-07 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-04-07 13:33:19] Production.INFO: count ==5273 [2025-04-07 13:33:21] Production.ERROR: pbx CDR StartTime 2025-04-07 10:33:05 - End Time 2025-04-07 13:33:05 [2025-04-07 13:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855193', 'tblTempUsageDetail_20' ) start [2025-04-07 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855193', 'tblTempUsageDetail_20' ) end [2025-04-07 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855193', 'tblTempVendorCDR_20' ) start [2025-04-07 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855193', 'tblTempVendorCDR_20' ) end [2025-04-07 13:33:21] Production.INFO: ProcessCDR(1,14855193,1,1,2) [2025-04-07 13:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855193', 'tblTempUsageDetail_20' ) start [2025-04-07 13:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855193', 'tblTempUsageDetail_20' ) end [2025-04-07 13:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:33:26] Production.INFO: ==20131== Releasing lock... [2025-04-07 13:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:33:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-07 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:34:05 [end_date_ymd] => 2025-04-07 13:34:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:34:05' and `end` < '2025-04-07 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-04-07 13:34:19] Production.INFO: count ==5254 [2025-04-07 13:34:21] Production.ERROR: pbx CDR StartTime 2025-04-07 10:34:05 - End Time 2025-04-07 13:34:05 [2025-04-07 13:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855198', 'tblTempUsageDetail_20' ) start [2025-04-07 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855198', 'tblTempUsageDetail_20' ) end [2025-04-07 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855198', 'tblTempVendorCDR_20' ) start [2025-04-07 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855198', 'tblTempVendorCDR_20' ) end [2025-04-07 13:34:22] Production.INFO: ProcessCDR(1,14855198,1,1,2) [2025-04-07 13:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855198', 'tblTempUsageDetail_20' ) start [2025-04-07 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855198', 'tblTempUsageDetail_20' ) end [2025-04-07 13:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:34:27] Production.INFO: ==20205== Releasing lock... [2025-04-07 13:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:34:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-07 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:35:05 [end_date_ymd] => 2025-04-07 13:35:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:35:05' and `end` < '2025-04-07 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-04-07 13:35:20] Production.INFO: count ==5236 [2025-04-07 13:35:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:35:05 - End Time 2025-04-07 13:35:05 [2025-04-07 13:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855203', 'tblTempUsageDetail_20' ) start [2025-04-07 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855203', 'tblTempUsageDetail_20' ) end [2025-04-07 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855203', 'tblTempVendorCDR_20' ) start [2025-04-07 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855203', 'tblTempVendorCDR_20' ) end [2025-04-07 13:35:22] Production.INFO: ProcessCDR(1,14855203,1,1,2) [2025-04-07 13:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855203', 'tblTempUsageDetail_20' ) start [2025-04-07 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855203', 'tblTempUsageDetail_20' ) end [2025-04-07 13:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:35:27] Production.INFO: ==20282== Releasing lock... [2025-04-07 13:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:35:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-07 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:36:06 [end_date_ymd] => 2025-04-07 13:36:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:36:06' and `end` < '2025-04-07 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-04-07 13:36:20] Production.INFO: count ==5251 [2025-04-07 13:36:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:36:06 - End Time 2025-04-07 13:36:06 [2025-04-07 13:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855208', 'tblTempUsageDetail_20' ) start [2025-04-07 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855208', 'tblTempUsageDetail_20' ) end [2025-04-07 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855208', 'tblTempVendorCDR_20' ) start [2025-04-07 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855208', 'tblTempVendorCDR_20' ) end [2025-04-07 13:36:22] Production.INFO: ProcessCDR(1,14855208,1,1,2) [2025-04-07 13:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855208', 'tblTempUsageDetail_20' ) start [2025-04-07 13:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855208', 'tblTempUsageDetail_20' ) end [2025-04-07 13:36:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:36:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:36:28] Production.INFO: ==20385== Releasing lock... [2025-04-07 13:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:36:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-07 13:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:37:06 [end_date_ymd] => 2025-04-07 13:37:06 [RateCDR] => 1 ) [2025-04-07 13: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-04-07 10:37:06' and `end` < '2025-04-07 13: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-04-07 13:37:20] Production.INFO: count ==5246 [2025-04-07 13:37:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:37:06 - End Time 2025-04-07 13:37:06 [2025-04-07 13:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855213', 'tblTempUsageDetail_20' ) start [2025-04-07 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855213', 'tblTempUsageDetail_20' ) end [2025-04-07 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855213', 'tblTempVendorCDR_20' ) start [2025-04-07 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855213', 'tblTempVendorCDR_20' ) end [2025-04-07 13:37:22] Production.INFO: ProcessCDR(1,14855213,1,1,2) [2025-04-07 13:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855213', 'tblTempUsageDetail_20' ) start [2025-04-07 13:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855213', 'tblTempUsageDetail_20' ) end [2025-04-07 13:37:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:37:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:37:28] Production.INFO: ==20497== Releasing lock... [2025-04-07 13:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:37:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-07 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:38:05 [end_date_ymd] => 2025-04-07 13:38:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:38:05' and `end` < '2025-04-07 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-04-07 13:38:19] Production.INFO: count ==5256 [2025-04-07 13:38:21] Production.ERROR: pbx CDR StartTime 2025-04-07 10:38:05 - End Time 2025-04-07 13:38:05 [2025-04-07 13:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855218', 'tblTempUsageDetail_20' ) start [2025-04-07 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855218', 'tblTempUsageDetail_20' ) end [2025-04-07 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855218', 'tblTempVendorCDR_20' ) start [2025-04-07 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855218', 'tblTempVendorCDR_20' ) end [2025-04-07 13:38:22] Production.INFO: ProcessCDR(1,14855218,1,1,2) [2025-04-07 13:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855218', 'tblTempUsageDetail_20' ) start [2025-04-07 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855218', 'tblTempUsageDetail_20' ) end [2025-04-07 13:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:38:27] Production.INFO: ==20603== Releasing lock... [2025-04-07 13:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:38:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-07 13:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:39:06 [end_date_ymd] => 2025-04-07 13:39:06 [RateCDR] => 1 ) [2025-04-07 13: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-04-07 10:39:06' and `end` < '2025-04-07 13: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-04-07 13:39:20] Production.INFO: count ==5245 [2025-04-07 13:39:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:39:06 - End Time 2025-04-07 13:39:06 [2025-04-07 13:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855223', 'tblTempUsageDetail_20' ) start [2025-04-07 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855223', 'tblTempUsageDetail_20' ) end [2025-04-07 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855223', 'tblTempVendorCDR_20' ) start [2025-04-07 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855223', 'tblTempVendorCDR_20' ) end [2025-04-07 13:39:22] Production.INFO: ProcessCDR(1,14855223,1,1,2) [2025-04-07 13:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855223', 'tblTempUsageDetail_20' ) start [2025-04-07 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855223', 'tblTempUsageDetail_20' ) end [2025-04-07 13:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:39:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:39:28] Production.INFO: ==20707== Releasing lock... [2025-04-07 13:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:39:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-07 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:40:06 [end_date_ymd] => 2025-04-07 13:40:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:40:06' and `end` < '2025-04-07 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-04-07 13:40:20] Production.INFO: count ==5248 [2025-04-07 13:40:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:40:06 - End Time 2025-04-07 13:40:06 [2025-04-07 13:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855229', 'tblTempUsageDetail_20' ) start [2025-04-07 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855229', 'tblTempUsageDetail_20' ) end [2025-04-07 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855229', 'tblTempVendorCDR_20' ) start [2025-04-07 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855229', 'tblTempVendorCDR_20' ) end [2025-04-07 13:40:22] Production.INFO: ProcessCDR(1,14855229,1,1,2) [2025-04-07 13:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855229', 'tblTempUsageDetail_20' ) start [2025-04-07 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855229', 'tblTempUsageDetail_20' ) end [2025-04-07 13:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:40:27] Production.INFO: ==20812== Releasing lock... [2025-04-07 13:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:40:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-07 13:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:41:06 [end_date_ymd] => 2025-04-07 13:41:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:41:06' and `end` < '2025-04-07 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-04-07 13:41:20] Production.INFO: count ==5210 [2025-04-07 13:41:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:41:06 - End Time 2025-04-07 13:41:06 [2025-04-07 13:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855234', 'tblTempUsageDetail_20' ) start [2025-04-07 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855234', 'tblTempUsageDetail_20' ) end [2025-04-07 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855234', 'tblTempVendorCDR_20' ) start [2025-04-07 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855234', 'tblTempVendorCDR_20' ) end [2025-04-07 13:41:22] Production.INFO: ProcessCDR(1,14855234,1,1,2) [2025-04-07 13:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855234', 'tblTempUsageDetail_20' ) start [2025-04-07 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855234', 'tblTempUsageDetail_20' ) end [2025-04-07 13:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:41:28] Production.INFO: ==20924== Releasing lock... [2025-04-07 13:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:41:28] Production.INFO: 67 MB #Memory Used# [2025-04-07 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:42:05 [end_date_ymd] => 2025-04-07 13:42:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:42:05' and `end` < '2025-04-07 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-04-07 13:42:19] Production.INFO: count ==5224 [2025-04-07 13:42:21] Production.ERROR: pbx CDR StartTime 2025-04-07 10:42:05 - End Time 2025-04-07 13:42:05 [2025-04-07 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855239', 'tblTempUsageDetail_20' ) start [2025-04-07 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855239', 'tblTempUsageDetail_20' ) end [2025-04-07 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855239', 'tblTempVendorCDR_20' ) start [2025-04-07 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855239', 'tblTempVendorCDR_20' ) end [2025-04-07 13:42:22] Production.INFO: ProcessCDR(1,14855239,1,1,2) [2025-04-07 13:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855239', 'tblTempUsageDetail_20' ) start [2025-04-07 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855239', 'tblTempUsageDetail_20' ) end [2025-04-07 13:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:42:27] Production.INFO: ==21030== Releasing lock... [2025-04-07 13:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:42:27] Production.INFO: 67 MB #Memory Used# [2025-04-07 13:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:43:06 [end_date_ymd] => 2025-04-07 13:43:06 [RateCDR] => 1 ) [2025-04-07 13: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-04-07 10:43:06' and `end` < '2025-04-07 13: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-04-07 13:43:20] Production.INFO: count ==5247 [2025-04-07 13:43:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:43:06 - End Time 2025-04-07 13:43:06 [2025-04-07 13:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855244', 'tblTempUsageDetail_20' ) start [2025-04-07 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855244', 'tblTempUsageDetail_20' ) end [2025-04-07 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855244', 'tblTempVendorCDR_20' ) start [2025-04-07 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855244', 'tblTempVendorCDR_20' ) end [2025-04-07 13:43:22] Production.INFO: ProcessCDR(1,14855244,1,1,2) [2025-04-07 13:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855244', 'tblTempUsageDetail_20' ) start [2025-04-07 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855244', 'tblTempUsageDetail_20' ) end [2025-04-07 13:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:43:28] Production.INFO: ==21135== Releasing lock... [2025-04-07 13:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:43:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-07 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:44:05 [end_date_ymd] => 2025-04-07 13:44:05 [RateCDR] => 1 ) [2025-04-07 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 10:44:05' and `end` < '2025-04-07 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 13:44:19] Production.INFO: count ==5243 [2025-04-07 13:44:21] Production.ERROR: pbx CDR StartTime 2025-04-07 10:44:05 - End Time 2025-04-07 13:44:05 [2025-04-07 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855249', 'tblTempUsageDetail_20' ) start [2025-04-07 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855249', 'tblTempUsageDetail_20' ) end [2025-04-07 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855249', 'tblTempVendorCDR_20' ) start [2025-04-07 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855249', 'tblTempVendorCDR_20' ) end [2025-04-07 13:44:21] Production.INFO: ProcessCDR(1,14855249,1,1,2) [2025-04-07 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855249', 'tblTempUsageDetail_20' ) start [2025-04-07 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855249', 'tblTempUsageDetail_20' ) end [2025-04-07 13:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:44:27] Production.INFO: ==21239== Releasing lock... [2025-04-07 13:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:44:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-07 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:45:06 [end_date_ymd] => 2025-04-07 13:45:06 [RateCDR] => 1 ) [2025-04-07 13: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-04-07 10:45:06' and `end` < '2025-04-07 13: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-04-07 13:45:19] Production.INFO: count ==5226 [2025-04-07 13:45:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:45:06 - End Time 2025-04-07 13:45:06 [2025-04-07 13:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855254', 'tblTempUsageDetail_20' ) start [2025-04-07 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855254', 'tblTempUsageDetail_20' ) end [2025-04-07 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855254', 'tblTempVendorCDR_20' ) start [2025-04-07 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855254', 'tblTempVendorCDR_20' ) end [2025-04-07 13:45:22] Production.INFO: ProcessCDR(1,14855254,1,1,2) [2025-04-07 13:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855254', 'tblTempUsageDetail_20' ) start [2025-04-07 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855254', 'tblTempUsageDetail_20' ) end [2025-04-07 13:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:45:27] Production.INFO: ==21342== Releasing lock... [2025-04-07 13:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:45:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-07 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:46:05 [end_date_ymd] => 2025-04-07 13:46:05 [RateCDR] => 1 ) [2025-04-07 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 10:46:05' and `end` < '2025-04-07 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 13:46:19] Production.INFO: count ==5230 [2025-04-07 13:46:21] Production.ERROR: pbx CDR StartTime 2025-04-07 10:46:05 - End Time 2025-04-07 13:46:05 [2025-04-07 13:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855259', 'tblTempUsageDetail_20' ) start [2025-04-07 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855259', 'tblTempUsageDetail_20' ) end [2025-04-07 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855259', 'tblTempVendorCDR_20' ) start [2025-04-07 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855259', 'tblTempVendorCDR_20' ) end [2025-04-07 13:46:22] Production.INFO: ProcessCDR(1,14855259,1,1,2) [2025-04-07 13:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855259', 'tblTempUsageDetail_20' ) start [2025-04-07 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855259', 'tblTempUsageDetail_20' ) end [2025-04-07 13:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:46:27] Production.INFO: ==21451== Releasing lock... [2025-04-07 13:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:46:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-07 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:47:05 [end_date_ymd] => 2025-04-07 13:47:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:47:05' and `end` < '2025-04-07 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-04-07 13:47:19] Production.INFO: count ==5230 [2025-04-07 13:47:21] Production.ERROR: pbx CDR StartTime 2025-04-07 10:47:05 - End Time 2025-04-07 13:47:05 [2025-04-07 13:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855264', 'tblTempUsageDetail_20' ) start [2025-04-07 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855264', 'tblTempUsageDetail_20' ) end [2025-04-07 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855264', 'tblTempVendorCDR_20' ) start [2025-04-07 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855264', 'tblTempVendorCDR_20' ) end [2025-04-07 13:47:21] Production.INFO: ProcessCDR(1,14855264,1,1,2) [2025-04-07 13:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855264', 'tblTempUsageDetail_20' ) start [2025-04-07 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855264', 'tblTempUsageDetail_20' ) end [2025-04-07 13:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:47:26] Production.INFO: ==21558== Releasing lock... [2025-04-07 13:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:47:26] Production.INFO: 67.25 MB #Memory Used# [2025-04-07 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:48:05 [end_date_ymd] => 2025-04-07 13:48:05 [RateCDR] => 1 ) [2025-04-07 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 10:48:05' and `end` < '2025-04-07 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 13:48:19] Production.INFO: count ==5233 [2025-04-07 13:48:21] Production.ERROR: pbx CDR StartTime 2025-04-07 10:48:05 - End Time 2025-04-07 13:48:05 [2025-04-07 13:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855269', 'tblTempUsageDetail_20' ) start [2025-04-07 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855269', 'tblTempUsageDetail_20' ) end [2025-04-07 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855269', 'tblTempVendorCDR_20' ) start [2025-04-07 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855269', 'tblTempVendorCDR_20' ) end [2025-04-07 13:48:21] Production.INFO: ProcessCDR(1,14855269,1,1,2) [2025-04-07 13:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855269', 'tblTempUsageDetail_20' ) start [2025-04-07 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855269', 'tblTempUsageDetail_20' ) end [2025-04-07 13:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:48:27] Production.INFO: ==21665== Releasing lock... [2025-04-07 13:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:48:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-07 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:49:05 [end_date_ymd] => 2025-04-07 13:49:05 [RateCDR] => 1 ) [2025-04-07 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 10:49:05' and `end` < '2025-04-07 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 13:49:19] Production.INFO: count ==5234 [2025-04-07 13:49:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:49:05 - End Time 2025-04-07 13:49:05 [2025-04-07 13:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855274', 'tblTempUsageDetail_20' ) start [2025-04-07 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855274', 'tblTempUsageDetail_20' ) end [2025-04-07 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855274', 'tblTempVendorCDR_20' ) start [2025-04-07 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855274', 'tblTempVendorCDR_20' ) end [2025-04-07 13:49:22] Production.INFO: ProcessCDR(1,14855274,1,1,2) [2025-04-07 13:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855274', 'tblTempUsageDetail_20' ) start [2025-04-07 13:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855274', 'tblTempUsageDetail_20' ) end [2025-04-07 13:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:49:27] Production.INFO: ==21815== Releasing lock... [2025-04-07 13:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:49:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-07 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:50:06 [end_date_ymd] => 2025-04-07 13:50:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:50:06' and `end` < '2025-04-07 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-04-07 13:50:20] Production.INFO: count ==5240 [2025-04-07 13:50:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:50:06 - End Time 2025-04-07 13:50:06 [2025-04-07 13:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855279', 'tblTempUsageDetail_20' ) start [2025-04-07 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855279', 'tblTempUsageDetail_20' ) end [2025-04-07 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855279', 'tblTempVendorCDR_20' ) start [2025-04-07 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855279', 'tblTempVendorCDR_20' ) end [2025-04-07 13:50:22] Production.INFO: ProcessCDR(1,14855279,1,1,2) [2025-04-07 13:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855279', 'tblTempUsageDetail_20' ) start [2025-04-07 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855279', 'tblTempUsageDetail_20' ) end [2025-04-07 13:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:50:28] Production.INFO: ==21923== Releasing lock... [2025-04-07 13:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:50:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-07 13:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:51:06 [end_date_ymd] => 2025-04-07 13:51:06 [RateCDR] => 1 ) [2025-04-07 13: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-04-07 10:51:06' and `end` < '2025-04-07 13: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-04-07 13:51:20] Production.INFO: count ==5238 [2025-04-07 13:51:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:51:06 - End Time 2025-04-07 13:51:06 [2025-04-07 13:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855285', 'tblTempUsageDetail_20' ) start [2025-04-07 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855285', 'tblTempUsageDetail_20' ) end [2025-04-07 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855285', 'tblTempVendorCDR_20' ) start [2025-04-07 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855285', 'tblTempVendorCDR_20' ) end [2025-04-07 13:51:22] Production.INFO: ProcessCDR(1,14855285,1,1,2) [2025-04-07 13:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855285', 'tblTempUsageDetail_20' ) start [2025-04-07 13:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855285', 'tblTempUsageDetail_20' ) end [2025-04-07 13:51:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:51:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:51:28] Production.INFO: ==22022== Releasing lock... [2025-04-07 13:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:51:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-07 13:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:52:05 [end_date_ymd] => 2025-04-07 13:52:05 [RateCDR] => 1 ) [2025-04-07 13: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-04-07 10:52:05' and `end` < '2025-04-07 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-04-07 13:52:19] Production.INFO: count ==5244 [2025-04-07 13:52:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:52:05 - End Time 2025-04-07 13:52:05 [2025-04-07 13:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855290', 'tblTempUsageDetail_20' ) start [2025-04-07 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855290', 'tblTempUsageDetail_20' ) end [2025-04-07 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855290', 'tblTempVendorCDR_20' ) start [2025-04-07 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855290', 'tblTempVendorCDR_20' ) end [2025-04-07 13:52:22] Production.INFO: ProcessCDR(1,14855290,1,1,2) [2025-04-07 13:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855290', 'tblTempUsageDetail_20' ) start [2025-04-07 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855290', 'tblTempUsageDetail_20' ) end [2025-04-07 13:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:52:27] Production.INFO: ==22099== Releasing lock... [2025-04-07 13:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:52:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-07 13:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:53:06 [end_date_ymd] => 2025-04-07 13:53:06 [RateCDR] => 1 ) [2025-04-07 13: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-04-07 10:53:06' and `end` < '2025-04-07 13: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-04-07 13:53:20] Production.INFO: count ==5236 [2025-04-07 13:53:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:53:06 - End Time 2025-04-07 13:53:06 [2025-04-07 13:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855295', 'tblTempUsageDetail_20' ) start [2025-04-07 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855295', 'tblTempUsageDetail_20' ) end [2025-04-07 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855295', 'tblTempVendorCDR_20' ) start [2025-04-07 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855295', 'tblTempVendorCDR_20' ) end [2025-04-07 13:53:22] Production.INFO: ProcessCDR(1,14855295,1,1,2) [2025-04-07 13:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855295', 'tblTempUsageDetail_20' ) start [2025-04-07 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855295', 'tblTempUsageDetail_20' ) end [2025-04-07 13:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:53:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:53:28] Production.INFO: ==22174== Releasing lock... [2025-04-07 13:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:53:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-07 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:54:05 [end_date_ymd] => 2025-04-07 13:54:05 [RateCDR] => 1 ) [2025-04-07 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 10:54:05' and `end` < '2025-04-07 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 13:54:19] Production.INFO: count ==5246 [2025-04-07 13:54:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:54:05 - End Time 2025-04-07 13:54:05 [2025-04-07 13:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855300', 'tblTempUsageDetail_20' ) start [2025-04-07 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855300', 'tblTempUsageDetail_20' ) end [2025-04-07 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855300', 'tblTempVendorCDR_20' ) start [2025-04-07 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855300', 'tblTempVendorCDR_20' ) end [2025-04-07 13:54:22] Production.INFO: ProcessCDR(1,14855300,1,1,2) [2025-04-07 13:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855300', 'tblTempUsageDetail_20' ) start [2025-04-07 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855300', 'tblTempUsageDetail_20' ) end [2025-04-07 13:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:54:27] Production.INFO: ==22250== Releasing lock... [2025-04-07 13:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:54:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-07 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:55:05 [end_date_ymd] => 2025-04-07 13:55:05 [RateCDR] => 1 ) [2025-04-07 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 10:55:05' and `end` < '2025-04-07 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 13:55:19] Production.INFO: count ==5249 [2025-04-07 13:55:21] Production.ERROR: pbx CDR StartTime 2025-04-07 10:55:05 - End Time 2025-04-07 13:55:05 [2025-04-07 13:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855305', 'tblTempUsageDetail_20' ) start [2025-04-07 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855305', 'tblTempUsageDetail_20' ) end [2025-04-07 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855305', 'tblTempVendorCDR_20' ) start [2025-04-07 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855305', 'tblTempVendorCDR_20' ) end [2025-04-07 13:55:22] Production.INFO: ProcessCDR(1,14855305,1,1,2) [2025-04-07 13:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855305', 'tblTempUsageDetail_20' ) start [2025-04-07 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855305', 'tblTempUsageDetail_20' ) end [2025-04-07 13:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:55:27] Production.INFO: ==22331== Releasing lock... [2025-04-07 13:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:55:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-07 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:56:05 [end_date_ymd] => 2025-04-07 13:56:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:56:05' and `end` < '2025-04-07 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-04-07 13:56:19] Production.INFO: count ==5250 [2025-04-07 13:56:21] Production.ERROR: pbx CDR StartTime 2025-04-07 10:56:05 - End Time 2025-04-07 13:56:05 [2025-04-07 13:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855310', 'tblTempUsageDetail_20' ) start [2025-04-07 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855310', 'tblTempUsageDetail_20' ) end [2025-04-07 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855310', 'tblTempVendorCDR_20' ) start [2025-04-07 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855310', 'tblTempVendorCDR_20' ) end [2025-04-07 13:56:22] Production.INFO: ProcessCDR(1,14855310,1,1,2) [2025-04-07 13:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855310', 'tblTempUsageDetail_20' ) start [2025-04-07 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855310', 'tblTempUsageDetail_20' ) end [2025-04-07 13:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:56:27] Production.INFO: ==22408== Releasing lock... [2025-04-07 13:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:56:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-07 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:57:05 [end_date_ymd] => 2025-04-07 13:57:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:57:05' and `end` < '2025-04-07 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-04-07 13:57:19] Production.INFO: count ==5254 [2025-04-07 13:57:21] Production.ERROR: pbx CDR StartTime 2025-04-07 10:57:05 - End Time 2025-04-07 13:57:05 [2025-04-07 13:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855315', 'tblTempUsageDetail_20' ) start [2025-04-07 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855315', 'tblTempUsageDetail_20' ) end [2025-04-07 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855315', 'tblTempVendorCDR_20' ) start [2025-04-07 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855315', 'tblTempVendorCDR_20' ) end [2025-04-07 13:57:22] Production.INFO: ProcessCDR(1,14855315,1,1,2) [2025-04-07 13:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855315', 'tblTempUsageDetail_20' ) start [2025-04-07 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855315', 'tblTempUsageDetail_20' ) end [2025-04-07 13:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:57:27] Production.INFO: ==22483== Releasing lock... [2025-04-07 13:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:57:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-07 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:58:05 [end_date_ymd] => 2025-04-07 13:58:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:58:05' and `end` < '2025-04-07 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-04-07 13:58:19] Production.INFO: count ==5262 [2025-04-07 13:58:22] Production.ERROR: pbx CDR StartTime 2025-04-07 10:58:05 - End Time 2025-04-07 13:58:05 [2025-04-07 13:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855318', 'tblTempUsageDetail_20' ) start [2025-04-07 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855318', 'tblTempUsageDetail_20' ) end [2025-04-07 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855318', 'tblTempVendorCDR_20' ) start [2025-04-07 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855318', 'tblTempVendorCDR_20' ) end [2025-04-07 13:58:22] Production.INFO: ProcessCDR(1,14855318,1,1,2) [2025-04-07 13:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855318', 'tblTempUsageDetail_20' ) start [2025-04-07 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855318', 'tblTempUsageDetail_20' ) end [2025-04-07 13:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:58:27] Production.INFO: ==22559== Releasing lock... [2025-04-07 13:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:58:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-07 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 10:59:05 [end_date_ymd] => 2025-04-07 13:59:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 10:59:05' and `end` < '2025-04-07 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-04-07 13:59:19] Production.INFO: count ==5276 [2025-04-07 13:59:21] Production.ERROR: pbx CDR StartTime 2025-04-07 10:59:05 - End Time 2025-04-07 13:59:05 [2025-04-07 13:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855325', 'tblTempUsageDetail_20' ) start [2025-04-07 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855325', 'tblTempUsageDetail_20' ) end [2025-04-07 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855325', 'tblTempVendorCDR_20' ) start [2025-04-07 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855325', 'tblTempVendorCDR_20' ) end [2025-04-07 13:59:21] Production.INFO: ProcessCDR(1,14855325,1,1,2) [2025-04-07 13:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 13:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855325', 'tblTempUsageDetail_20' ) start [2025-04-07 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855325', 'tblTempUsageDetail_20' ) end [2025-04-07 13:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 13:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 13:59:27] Production.INFO: ==22636== Releasing lock... [2025-04-07 13:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 13:59:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-07 14:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:00:07 [end_date_ymd] => 2025-04-07 14:00:07 [RateCDR] => 1 ) [2025-04-07 14: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-04-07 11:00:07' and `end` < '2025-04-07 14: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-04-07 14:00:21] Production.INFO: count ==5267 [2025-04-07 14:00:23] Production.ERROR: pbx CDR StartTime 2025-04-07 11:00:07 - End Time 2025-04-07 14:00:07 [2025-04-07 14:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855331', 'tblTempUsageDetail_20' ) start [2025-04-07 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855331', 'tblTempUsageDetail_20' ) end [2025-04-07 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855331', 'tblTempVendorCDR_20' ) start [2025-04-07 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855331', 'tblTempVendorCDR_20' ) end [2025-04-07 14:00:24] Production.INFO: ProcessCDR(1,14855331,1,1,2) [2025-04-07 14:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855331', 'tblTempUsageDetail_20' ) start [2025-04-07 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855331', 'tblTempUsageDetail_20' ) end [2025-04-07 14:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:00:28] Production.INFO: ==22714== Releasing lock... [2025-04-07 14:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:00:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-07 14:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:01:06 [end_date_ymd] => 2025-04-07 14:01:06 [RateCDR] => 1 ) [2025-04-07 14: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-04-07 11:01:06' and `end` < '2025-04-07 14: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-04-07 14:01:20] Production.INFO: count ==5278 [2025-04-07 14:01:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:01:06 - End Time 2025-04-07 14:01:06 [2025-04-07 14:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855336', 'tblTempUsageDetail_20' ) start [2025-04-07 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855336', 'tblTempUsageDetail_20' ) end [2025-04-07 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855336', 'tblTempVendorCDR_20' ) start [2025-04-07 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855336', 'tblTempVendorCDR_20' ) end [2025-04-07 14:01:22] Production.INFO: ProcessCDR(1,14855336,1,1,2) [2025-04-07 14:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855336', 'tblTempUsageDetail_20' ) start [2025-04-07 14:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855336', 'tblTempUsageDetail_20' ) end [2025-04-07 14:01:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:01:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:01:28] Production.INFO: ==22809== Releasing lock... [2025-04-07 14:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:01:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-07 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:02:06 [end_date_ymd] => 2025-04-07 14:02:06 [RateCDR] => 1 ) [2025-04-07 14:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 11:02:06' and `end` < '2025-04-07 14:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 14:02:20] Production.INFO: count ==5284 [2025-04-07 14:02:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:02:06 - End Time 2025-04-07 14:02:06 [2025-04-07 14:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855341', 'tblTempUsageDetail_20' ) start [2025-04-07 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855341', 'tblTempUsageDetail_20' ) end [2025-04-07 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855341', 'tblTempVendorCDR_20' ) start [2025-04-07 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855341', 'tblTempVendorCDR_20' ) end [2025-04-07 14:02:22] Production.INFO: ProcessCDR(1,14855341,1,1,2) [2025-04-07 14:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855341', 'tblTempUsageDetail_20' ) start [2025-04-07 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855341', 'tblTempUsageDetail_20' ) end [2025-04-07 14:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:02:28] Production.INFO: ==22881== Releasing lock... [2025-04-07 14:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:02:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-07 14:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:03:06 [end_date_ymd] => 2025-04-07 14:03:06 [RateCDR] => 1 ) [2025-04-07 14: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-04-07 11:03:06' and `end` < '2025-04-07 14: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-04-07 14:03:20] Production.INFO: count ==5265 [2025-04-07 14:03:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:03:06 - End Time 2025-04-07 14:03:06 [2025-04-07 14:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855346', 'tblTempUsageDetail_20' ) start [2025-04-07 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855346', 'tblTempUsageDetail_20' ) end [2025-04-07 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855346', 'tblTempVendorCDR_20' ) start [2025-04-07 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855346', 'tblTempVendorCDR_20' ) end [2025-04-07 14:03:22] Production.INFO: ProcessCDR(1,14855346,1,1,2) [2025-04-07 14:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855346', 'tblTempUsageDetail_20' ) start [2025-04-07 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855346', 'tblTempUsageDetail_20' ) end [2025-04-07 14:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:03:27] Production.INFO: ==22957== Releasing lock... [2025-04-07 14:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:03:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-07 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:04:06 [end_date_ymd] => 2025-04-07 14:04:06 [RateCDR] => 1 ) [2025-04-07 14: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-04-07 11:04:06' and `end` < '2025-04-07 14: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-04-07 14:04:20] Production.INFO: count ==5281 [2025-04-07 14:04:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:04:06 - End Time 2025-04-07 14:04:06 [2025-04-07 14:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855351', 'tblTempUsageDetail_20' ) start [2025-04-07 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855351', 'tblTempUsageDetail_20' ) end [2025-04-07 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855351', 'tblTempVendorCDR_20' ) start [2025-04-07 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855351', 'tblTempVendorCDR_20' ) end [2025-04-07 14:04:23] Production.INFO: ProcessCDR(1,14855351,1,1,2) [2025-04-07 14:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855351', 'tblTempUsageDetail_20' ) start [2025-04-07 14:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855351', 'tblTempUsageDetail_20' ) end [2025-04-07 14:04:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:04:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:04:28] Production.INFO: ==23073== Releasing lock... [2025-04-07 14:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:04:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-07 14:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:05:06 [end_date_ymd] => 2025-04-07 14:05:06 [RateCDR] => 1 ) [2025-04-07 14: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-04-07 11:05:06' and `end` < '2025-04-07 14: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-04-07 14:05:20] Production.INFO: count ==5297 [2025-04-07 14:05:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:05:06 - End Time 2025-04-07 14:05:06 [2025-04-07 14:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855356', 'tblTempUsageDetail_20' ) start [2025-04-07 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855356', 'tblTempUsageDetail_20' ) end [2025-04-07 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855356', 'tblTempVendorCDR_20' ) start [2025-04-07 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855356', 'tblTempVendorCDR_20' ) end [2025-04-07 14:05:23] Production.INFO: ProcessCDR(1,14855356,1,1,2) [2025-04-07 14:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855356', 'tblTempUsageDetail_20' ) start [2025-04-07 14:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855356', 'tblTempUsageDetail_20' ) end [2025-04-07 14:05:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:05:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:05:28] Production.INFO: ==23144== Releasing lock... [2025-04-07 14:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:05:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-07 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:06:06 [end_date_ymd] => 2025-04-07 14:06:06 [RateCDR] => 1 ) [2025-04-07 14: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-04-07 11:06:06' and `end` < '2025-04-07 14: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-04-07 14:06:20] Production.INFO: count ==5306 [2025-04-07 14:06:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:06:06 - End Time 2025-04-07 14:06:06 [2025-04-07 14:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855361', 'tblTempUsageDetail_20' ) start [2025-04-07 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855361', 'tblTempUsageDetail_20' ) end [2025-04-07 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855361', 'tblTempVendorCDR_20' ) start [2025-04-07 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855361', 'tblTempVendorCDR_20' ) end [2025-04-07 14:06:23] Production.INFO: ProcessCDR(1,14855361,1,1,2) [2025-04-07 14:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855361', 'tblTempUsageDetail_20' ) start [2025-04-07 14:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855361', 'tblTempUsageDetail_20' ) end [2025-04-07 14:06:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:06:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:06:28] Production.INFO: ==23214== Releasing lock... [2025-04-07 14:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:06:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-07 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:07:05 [end_date_ymd] => 2025-04-07 14:07:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:07:05' and `end` < '2025-04-07 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-04-07 14:07:19] Production.INFO: count ==5301 [2025-04-07 14:07:21] Production.ERROR: pbx CDR StartTime 2025-04-07 11:07:05 - End Time 2025-04-07 14:07:05 [2025-04-07 14:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855366', 'tblTempUsageDetail_20' ) start [2025-04-07 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855366', 'tblTempUsageDetail_20' ) end [2025-04-07 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855366', 'tblTempVendorCDR_20' ) start [2025-04-07 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855366', 'tblTempVendorCDR_20' ) end [2025-04-07 14:07:21] Production.INFO: ProcessCDR(1,14855366,1,1,2) [2025-04-07 14:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855366', 'tblTempUsageDetail_20' ) start [2025-04-07 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855366', 'tblTempUsageDetail_20' ) end [2025-04-07 14:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:07:27] Production.INFO: ==23288== Releasing lock... [2025-04-07 14:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:07:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-07 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:08:06 [end_date_ymd] => 2025-04-07 14:08:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:08:06' and `end` < '2025-04-07 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-04-07 14:08:20] Production.INFO: count ==5316 [2025-04-07 14:08:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:08:06 - End Time 2025-04-07 14:08:06 [2025-04-07 14:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855371', 'tblTempUsageDetail_20' ) start [2025-04-07 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855371', 'tblTempUsageDetail_20' ) end [2025-04-07 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855371', 'tblTempVendorCDR_20' ) start [2025-04-07 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855371', 'tblTempVendorCDR_20' ) end [2025-04-07 14:08:22] Production.INFO: ProcessCDR(1,14855371,1,1,2) [2025-04-07 14:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855371', 'tblTempUsageDetail_20' ) start [2025-04-07 14:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855371', 'tblTempUsageDetail_20' ) end [2025-04-07 14:08:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:08:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:08:28] Production.INFO: ==23362== Releasing lock... [2025-04-07 14:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:08:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-07 14:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:09:06 [end_date_ymd] => 2025-04-07 14:09:06 [RateCDR] => 1 ) [2025-04-07 14: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-04-07 11:09:06' and `end` < '2025-04-07 14: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-04-07 14:09:20] Production.INFO: count ==5307 [2025-04-07 14:09:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:09:06 - End Time 2025-04-07 14:09:06 [2025-04-07 14:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855376', 'tblTempUsageDetail_20' ) start [2025-04-07 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855376', 'tblTempUsageDetail_20' ) end [2025-04-07 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855376', 'tblTempVendorCDR_20' ) start [2025-04-07 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855376', 'tblTempVendorCDR_20' ) end [2025-04-07 14:09:22] Production.INFO: ProcessCDR(1,14855376,1,1,2) [2025-04-07 14:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855376', 'tblTempUsageDetail_20' ) start [2025-04-07 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855376', 'tblTempUsageDetail_20' ) end [2025-04-07 14:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:09:27] Production.INFO: ==23434== Releasing lock... [2025-04-07 14:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:09:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-07 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:10:06 [end_date_ymd] => 2025-04-07 14:10:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:10:06' and `end` < '2025-04-07 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-04-07 14:10:21] Production.INFO: count ==5301 [2025-04-07 14:10:23] Production.ERROR: pbx CDR StartTime 2025-04-07 11:10:06 - End Time 2025-04-07 14:10:06 [2025-04-07 14:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855382', 'tblTempUsageDetail_20' ) start [2025-04-07 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855382', 'tblTempUsageDetail_20' ) end [2025-04-07 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855382', 'tblTempVendorCDR_20' ) start [2025-04-07 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855382', 'tblTempVendorCDR_20' ) end [2025-04-07 14:10:23] Production.INFO: ProcessCDR(1,14855382,1,1,2) [2025-04-07 14:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855382', 'tblTempUsageDetail_20' ) start [2025-04-07 14:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855382', 'tblTempUsageDetail_20' ) end [2025-04-07 14:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:10:28] Production.INFO: ==23511== Releasing lock... [2025-04-07 14:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:10:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-07 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:11:05 [end_date_ymd] => 2025-04-07 14:11:05 [RateCDR] => 1 ) [2025-04-07 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 11:11:05' and `end` < '2025-04-07 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 14:11:19] Production.INFO: count ==5302 [2025-04-07 14:11:21] Production.ERROR: pbx CDR StartTime 2025-04-07 11:11:05 - End Time 2025-04-07 14:11:05 [2025-04-07 14:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855387', 'tblTempUsageDetail_20' ) start [2025-04-07 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855387', 'tblTempUsageDetail_20' ) end [2025-04-07 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855387', 'tblTempVendorCDR_20' ) start [2025-04-07 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855387', 'tblTempVendorCDR_20' ) end [2025-04-07 14:11:22] Production.INFO: ProcessCDR(1,14855387,1,1,2) [2025-04-07 14:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855387', 'tblTempUsageDetail_20' ) start [2025-04-07 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855387', 'tblTempUsageDetail_20' ) end [2025-04-07 14:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:11:27] Production.INFO: ==23592== Releasing lock... [2025-04-07 14:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:11:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-07 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:12:05 [end_date_ymd] => 2025-04-07 14:12:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:12:05' and `end` < '2025-04-07 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-04-07 14:12:19] Production.INFO: count ==5321 [2025-04-07 14:12:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:12:05 - End Time 2025-04-07 14:12:05 [2025-04-07 14:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855392', 'tblTempUsageDetail_20' ) start [2025-04-07 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855392', 'tblTempUsageDetail_20' ) end [2025-04-07 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855392', 'tblTempVendorCDR_20' ) start [2025-04-07 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855392', 'tblTempVendorCDR_20' ) end [2025-04-07 14:12:22] Production.INFO: ProcessCDR(1,14855392,1,1,2) [2025-04-07 14:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855392', 'tblTempUsageDetail_20' ) start [2025-04-07 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855392', 'tblTempUsageDetail_20' ) end [2025-04-07 14:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:12:27] Production.INFO: ==23666== Releasing lock... [2025-04-07 14:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:12:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-07 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:13:05 [end_date_ymd] => 2025-04-07 14:13:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:13:05' and `end` < '2025-04-07 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-04-07 14:13:19] Production.INFO: count ==5325 [2025-04-07 14:13:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:13:05 - End Time 2025-04-07 14:13:05 [2025-04-07 14:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855397', 'tblTempUsageDetail_20' ) start [2025-04-07 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855397', 'tblTempUsageDetail_20' ) end [2025-04-07 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855397', 'tblTempVendorCDR_20' ) start [2025-04-07 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855397', 'tblTempVendorCDR_20' ) end [2025-04-07 14:13:22] Production.INFO: ProcessCDR(1,14855397,1,1,2) [2025-04-07 14:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855397', 'tblTempUsageDetail_20' ) start [2025-04-07 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855397', 'tblTempUsageDetail_20' ) end [2025-04-07 14:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:13:28] Production.INFO: ==23738== Releasing lock... [2025-04-07 14:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:13:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-07 14:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:14:06 [end_date_ymd] => 2025-04-07 14:14:06 [RateCDR] => 1 ) [2025-04-07 14:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 11:14:06' and `end` < '2025-04-07 14:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 14:14:20] Production.INFO: count ==5315 [2025-04-07 14:14:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:14:06 - End Time 2025-04-07 14:14:06 [2025-04-07 14:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855402', 'tblTempUsageDetail_20' ) start [2025-04-07 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855402', 'tblTempUsageDetail_20' ) end [2025-04-07 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855402', 'tblTempVendorCDR_20' ) start [2025-04-07 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855402', 'tblTempVendorCDR_20' ) end [2025-04-07 14:14:23] Production.INFO: ProcessCDR(1,14855402,1,1,2) [2025-04-07 14:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855402', 'tblTempUsageDetail_20' ) start [2025-04-07 14:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855402', 'tblTempUsageDetail_20' ) end [2025-04-07 14:14:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:14:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:14:28] Production.INFO: ==23815== Releasing lock... [2025-04-07 14:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:14:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-07 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:15:05 [end_date_ymd] => 2025-04-07 14:15:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:15:05' and `end` < '2025-04-07 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-04-07 14:15:20] Production.INFO: count ==5301 [2025-04-07 14:15:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:15:05 - End Time 2025-04-07 14:15:05 [2025-04-07 14:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855407', 'tblTempUsageDetail_20' ) start [2025-04-07 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855407', 'tblTempUsageDetail_20' ) end [2025-04-07 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855407', 'tblTempVendorCDR_20' ) start [2025-04-07 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855407', 'tblTempVendorCDR_20' ) end [2025-04-07 14:15:22] Production.INFO: ProcessCDR(1,14855407,1,1,2) [2025-04-07 14:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855407', 'tblTempUsageDetail_20' ) start [2025-04-07 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855407', 'tblTempUsageDetail_20' ) end [2025-04-07 14:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:15:27] Production.INFO: ==23893== Releasing lock... [2025-04-07 14:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:15:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-07 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:16:05 [end_date_ymd] => 2025-04-07 14:16:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:16:05' and `end` < '2025-04-07 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-04-07 14:16:20] Production.INFO: count ==5302 [2025-04-07 14:16:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:16:05 - End Time 2025-04-07 14:16:05 [2025-04-07 14:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855412', 'tblTempUsageDetail_20' ) start [2025-04-07 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855412', 'tblTempUsageDetail_20' ) end [2025-04-07 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855412', 'tblTempVendorCDR_20' ) start [2025-04-07 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855412', 'tblTempVendorCDR_20' ) end [2025-04-07 14:16:22] Production.INFO: ProcessCDR(1,14855412,1,1,2) [2025-04-07 14:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855412', 'tblTempUsageDetail_20' ) start [2025-04-07 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855412', 'tblTempUsageDetail_20' ) end [2025-04-07 14:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:16:27] Production.INFO: ==23964== Releasing lock... [2025-04-07 14:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:16:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-07 14:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:17:05 [end_date_ymd] => 2025-04-07 14:17:05 [RateCDR] => 1 ) [2025-04-07 14: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-04-07 11:17:05' and `end` < '2025-04-07 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-04-07 14:17:20] Production.INFO: count ==5299 [2025-04-07 14:17:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:17:05 - End Time 2025-04-07 14:17:05 [2025-04-07 14:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855417', 'tblTempUsageDetail_20' ) start [2025-04-07 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855417', 'tblTempUsageDetail_20' ) end [2025-04-07 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855417', 'tblTempVendorCDR_20' ) start [2025-04-07 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855417', 'tblTempVendorCDR_20' ) end [2025-04-07 14:17:22] Production.INFO: ProcessCDR(1,14855417,1,1,2) [2025-04-07 14:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855417', 'tblTempUsageDetail_20' ) start [2025-04-07 14:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855417', 'tblTempUsageDetail_20' ) end [2025-04-07 14:17:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:17:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:17:28] Production.INFO: ==24041== Releasing lock... [2025-04-07 14:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:17:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-07 14:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:18:06 [end_date_ymd] => 2025-04-07 14:18:06 [RateCDR] => 1 ) [2025-04-07 14: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-04-07 11:18:06' and `end` < '2025-04-07 14: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-04-07 14:18:20] Production.INFO: count ==5318 [2025-04-07 14:18:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:18:06 - End Time 2025-04-07 14:18:06 [2025-04-07 14:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855422', 'tblTempUsageDetail_20' ) start [2025-04-07 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855422', 'tblTempUsageDetail_20' ) end [2025-04-07 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855422', 'tblTempVendorCDR_20' ) start [2025-04-07 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855422', 'tblTempVendorCDR_20' ) end [2025-04-07 14:18:22] Production.INFO: ProcessCDR(1,14855422,1,1,2) [2025-04-07 14:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855422', 'tblTempUsageDetail_20' ) start [2025-04-07 14:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855422', 'tblTempUsageDetail_20' ) end [2025-04-07 14:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:18:27] Production.INFO: ==24114== Releasing lock... [2025-04-07 14:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:18:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-07 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:19:05 [end_date_ymd] => 2025-04-07 14:19:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:19:05' and `end` < '2025-04-07 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-04-07 14:19:19] Production.INFO: count ==5314 [2025-04-07 14:19:21] Production.ERROR: pbx CDR StartTime 2025-04-07 11:19:05 - End Time 2025-04-07 14:19:05 [2025-04-07 14:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855427', 'tblTempUsageDetail_20' ) start [2025-04-07 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855427', 'tblTempUsageDetail_20' ) end [2025-04-07 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855427', 'tblTempVendorCDR_20' ) start [2025-04-07 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855427', 'tblTempVendorCDR_20' ) end [2025-04-07 14:19:22] Production.INFO: ProcessCDR(1,14855427,1,1,2) [2025-04-07 14:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855427', 'tblTempUsageDetail_20' ) start [2025-04-07 14:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855427', 'tblTempUsageDetail_20' ) end [2025-04-07 14:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:19:25] Production.INFO: ==24188== Releasing lock... [2025-04-07 14:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:19:25] Production.INFO: 67.75 MB #Memory Used# [2025-04-07 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:20:06 [end_date_ymd] => 2025-04-07 14:20:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:20:06' and `end` < '2025-04-07 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-04-07 14:20:20] Production.INFO: count ==5324 [2025-04-07 14:20:23] Production.ERROR: pbx CDR StartTime 2025-04-07 11:20:06 - End Time 2025-04-07 14:20:06 [2025-04-07 14:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855432', 'tblTempUsageDetail_20' ) start [2025-04-07 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855432', 'tblTempUsageDetail_20' ) end [2025-04-07 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855432', 'tblTempVendorCDR_20' ) start [2025-04-07 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855432', 'tblTempVendorCDR_20' ) end [2025-04-07 14:20:23] Production.INFO: ProcessCDR(1,14855432,1,1,2) [2025-04-07 14:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855432', 'tblTempUsageDetail_20' ) start [2025-04-07 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855432', 'tblTempUsageDetail_20' ) end [2025-04-07 14:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:20:28] Production.INFO: ==24299== Releasing lock... [2025-04-07 14:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:20:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-07 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:21:05 [end_date_ymd] => 2025-04-07 14:21:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:21:05' and `end` < '2025-04-07 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-04-07 14:21:19] Production.INFO: count ==5362 [2025-04-07 14:21:21] Production.ERROR: pbx CDR StartTime 2025-04-07 11:21:05 - End Time 2025-04-07 14:21:05 [2025-04-07 14:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855438', 'tblTempUsageDetail_20' ) start [2025-04-07 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855438', 'tblTempUsageDetail_20' ) end [2025-04-07 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855438', 'tblTempVendorCDR_20' ) start [2025-04-07 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855438', 'tblTempVendorCDR_20' ) end [2025-04-07 14:21:21] Production.INFO: ProcessCDR(1,14855438,1,1,2) [2025-04-07 14:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855438', 'tblTempUsageDetail_20' ) start [2025-04-07 14:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855438', 'tblTempUsageDetail_20' ) end [2025-04-07 14:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:21:27] Production.INFO: ==24374== Releasing lock... [2025-04-07 14:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:21:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-07 14:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:22:06 [end_date_ymd] => 2025-04-07 14:22:06 [RateCDR] => 1 ) [2025-04-07 14:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 11:22:06' and `end` < '2025-04-07 14:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 14:22:20] Production.INFO: count ==5351 [2025-04-07 14:22:23] Production.ERROR: pbx CDR StartTime 2025-04-07 11:22:06 - End Time 2025-04-07 14:22:06 [2025-04-07 14:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855443', 'tblTempUsageDetail_20' ) start [2025-04-07 14:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855443', 'tblTempUsageDetail_20' ) end [2025-04-07 14:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855443', 'tblTempVendorCDR_20' ) start [2025-04-07 14:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855443', 'tblTempVendorCDR_20' ) end [2025-04-07 14:22:23] Production.INFO: ProcessCDR(1,14855443,1,1,2) [2025-04-07 14:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855443', 'tblTempUsageDetail_20' ) start [2025-04-07 14:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855443', 'tblTempUsageDetail_20' ) end [2025-04-07 14:22:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:22:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:22:28] Production.INFO: ==24453== Releasing lock... [2025-04-07 14:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:22:28] Production.INFO: 68 MB #Memory Used# [2025-04-07 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:23:05 [end_date_ymd] => 2025-04-07 14:23:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:23:05' and `end` < '2025-04-07 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-04-07 14:23:19] Production.INFO: count ==5366 [2025-04-07 14:23:21] Production.ERROR: pbx CDR StartTime 2025-04-07 11:23:05 - End Time 2025-04-07 14:23:05 [2025-04-07 14:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855448', 'tblTempUsageDetail_20' ) start [2025-04-07 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855448', 'tblTempUsageDetail_20' ) end [2025-04-07 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855448', 'tblTempVendorCDR_20' ) start [2025-04-07 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855448', 'tblTempVendorCDR_20' ) end [2025-04-07 14:23:21] Production.INFO: ProcessCDR(1,14855448,1,1,2) [2025-04-07 14:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855448', 'tblTempUsageDetail_20' ) start [2025-04-07 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855448', 'tblTempUsageDetail_20' ) end [2025-04-07 14:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:23:27] Production.INFO: ==24525== Releasing lock... [2025-04-07 14:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:23:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-07 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:24:05 [end_date_ymd] => 2025-04-07 14:24:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:24:05' and `end` < '2025-04-07 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-04-07 14:24:19] Production.INFO: count ==5358 [2025-04-07 14:24:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:24:05 - End Time 2025-04-07 14:24:05 [2025-04-07 14:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855453', 'tblTempUsageDetail_20' ) start [2025-04-07 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855453', 'tblTempUsageDetail_20' ) end [2025-04-07 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855453', 'tblTempVendorCDR_20' ) start [2025-04-07 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855453', 'tblTempVendorCDR_20' ) end [2025-04-07 14:24:22] Production.INFO: ProcessCDR(1,14855453,1,1,2) [2025-04-07 14:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855453', 'tblTempUsageDetail_20' ) start [2025-04-07 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855453', 'tblTempUsageDetail_20' ) end [2025-04-07 14:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:24:27] Production.INFO: ==24597== Releasing lock... [2025-04-07 14:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:24:27] Production.INFO: 68 MB #Memory Used# [2025-04-07 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:25:05 [end_date_ymd] => 2025-04-07 14:25:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:25:05' and `end` < '2025-04-07 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-04-07 14:25:19] Production.INFO: count ==5343 [2025-04-07 14:25:21] Production.ERROR: pbx CDR StartTime 2025-04-07 11:25:05 - End Time 2025-04-07 14:25:05 [2025-04-07 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855458', 'tblTempUsageDetail_20' ) start [2025-04-07 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855458', 'tblTempUsageDetail_20' ) end [2025-04-07 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855458', 'tblTempVendorCDR_20' ) start [2025-04-07 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855458', 'tblTempVendorCDR_20' ) end [2025-04-07 14:25:21] Production.INFO: ProcessCDR(1,14855458,1,1,2) [2025-04-07 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855458', 'tblTempUsageDetail_20' ) start [2025-04-07 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855458', 'tblTempUsageDetail_20' ) end [2025-04-07 14:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:25:26] Production.INFO: ==24670== Releasing lock... [2025-04-07 14:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:25:26] Production.INFO: 68 MB #Memory Used# [2025-04-07 14:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:26:06 [end_date_ymd] => 2025-04-07 14:26:06 [RateCDR] => 1 ) [2025-04-07 14:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 11:26:06' and `end` < '2025-04-07 14:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 14:26:20] Production.INFO: count ==5340 [2025-04-07 14:26:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:26:06 - End Time 2025-04-07 14:26:06 [2025-04-07 14:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855463', 'tblTempUsageDetail_20' ) start [2025-04-07 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855463', 'tblTempUsageDetail_20' ) end [2025-04-07 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855463', 'tblTempVendorCDR_20' ) start [2025-04-07 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855463', 'tblTempVendorCDR_20' ) end [2025-04-07 14:26:23] Production.INFO: ProcessCDR(1,14855463,1,1,2) [2025-04-07 14:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:26:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:26:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855463', 'tblTempUsageDetail_20' ) start [2025-04-07 14:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855463', 'tblTempUsageDetail_20' ) end [2025-04-07 14:26:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:26:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:26:28] Production.INFO: ==24748== Releasing lock... [2025-04-07 14:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:26:28] Production.INFO: 68 MB #Memory Used# [2025-04-07 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:27:05 [end_date_ymd] => 2025-04-07 14:27:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:27:05' and `end` < '2025-04-07 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-04-07 14:27:19] Production.INFO: count ==5334 [2025-04-07 14:27:21] Production.ERROR: pbx CDR StartTime 2025-04-07 11:27:05 - End Time 2025-04-07 14:27:05 [2025-04-07 14:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855468', 'tblTempUsageDetail_20' ) start [2025-04-07 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855468', 'tblTempUsageDetail_20' ) end [2025-04-07 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855468', 'tblTempVendorCDR_20' ) start [2025-04-07 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855468', 'tblTempVendorCDR_20' ) end [2025-04-07 14:27:21] Production.INFO: ProcessCDR(1,14855468,1,1,2) [2025-04-07 14:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855468', 'tblTempUsageDetail_20' ) start [2025-04-07 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855468', 'tblTempUsageDetail_20' ) end [2025-04-07 14:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:27:27] Production.INFO: ==24817== Releasing lock... [2025-04-07 14:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:27:27] Production.INFO: 68 MB #Memory Used# [2025-04-07 14:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:28:06 [end_date_ymd] => 2025-04-07 14:28:06 [RateCDR] => 1 ) [2025-04-07 14:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 11:28:06' and `end` < '2025-04-07 14:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 14:28:20] Production.INFO: count ==5324 [2025-04-07 14:28:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:28:06 - End Time 2025-04-07 14:28:06 [2025-04-07 14:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855473', 'tblTempUsageDetail_20' ) start [2025-04-07 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855473', 'tblTempUsageDetail_20' ) end [2025-04-07 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855473', 'tblTempVendorCDR_20' ) start [2025-04-07 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855473', 'tblTempVendorCDR_20' ) end [2025-04-07 14:28:23] Production.INFO: ProcessCDR(1,14855473,1,1,2) [2025-04-07 14:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855473', 'tblTempUsageDetail_20' ) start [2025-04-07 14:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855473', 'tblTempUsageDetail_20' ) end [2025-04-07 14:28:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:28:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:28:28] Production.INFO: ==24893== Releasing lock... [2025-04-07 14:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:28:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-07 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:29:05 [end_date_ymd] => 2025-04-07 14:29:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:29:05' and `end` < '2025-04-07 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-04-07 14:29:19] Production.INFO: count ==5326 [2025-04-07 14:29:21] Production.ERROR: pbx CDR StartTime 2025-04-07 11:29:05 - End Time 2025-04-07 14:29:05 [2025-04-07 14:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855478', 'tblTempUsageDetail_20' ) start [2025-04-07 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855478', 'tblTempUsageDetail_20' ) end [2025-04-07 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855478', 'tblTempVendorCDR_20' ) start [2025-04-07 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855478', 'tblTempVendorCDR_20' ) end [2025-04-07 14:29:21] Production.INFO: ProcessCDR(1,14855478,1,1,2) [2025-04-07 14:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855478', 'tblTempUsageDetail_20' ) start [2025-04-07 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855478', 'tblTempUsageDetail_20' ) end [2025-04-07 14:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:29:27] Production.INFO: ==24963== Releasing lock... [2025-04-07 14:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:29:27] Production.INFO: 68 MB #Memory Used# [2025-04-07 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:30:06 [end_date_ymd] => 2025-04-07 14:30:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:30:06' and `end` < '2025-04-07 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-04-07 14:30:20] Production.INFO: count ==5297 [2025-04-07 14:30:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:30:06 - End Time 2025-04-07 14:30:06 [2025-04-07 14:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855483', 'tblTempUsageDetail_20' ) start [2025-04-07 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855483', 'tblTempUsageDetail_20' ) end [2025-04-07 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855483', 'tblTempVendorCDR_20' ) start [2025-04-07 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855483', 'tblTempVendorCDR_20' ) end [2025-04-07 14:30:22] Production.INFO: ProcessCDR(1,14855483,1,1,2) [2025-04-07 14:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855483', 'tblTempUsageDetail_20' ) start [2025-04-07 14:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855483', 'tblTempUsageDetail_20' ) end [2025-04-07 14:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:30:26] Production.INFO: ==25050== Releasing lock... [2025-04-07 14:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:30:26] Production.INFO: 67.75 MB #Memory Used# [2025-04-07 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:31:05 [end_date_ymd] => 2025-04-07 14:31:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:31:05' and `end` < '2025-04-07 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-04-07 14:31:19] Production.INFO: count ==5254 [2025-04-07 14:31:21] Production.ERROR: pbx CDR StartTime 2025-04-07 11:31:05 - End Time 2025-04-07 14:31:05 [2025-04-07 14:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855489', 'tblTempUsageDetail_20' ) start [2025-04-07 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855489', 'tblTempUsageDetail_20' ) end [2025-04-07 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855489', 'tblTempVendorCDR_20' ) start [2025-04-07 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855489', 'tblTempVendorCDR_20' ) end [2025-04-07 14:31:21] Production.INFO: ProcessCDR(1,14855489,1,1,2) [2025-04-07 14:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855489', 'tblTempUsageDetail_20' ) start [2025-04-07 14:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855489', 'tblTempUsageDetail_20' ) end [2025-04-07 14:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:31:26] Production.INFO: ==25128== Releasing lock... [2025-04-07 14:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:31:26] Production.INFO: 67.25 MB #Memory Used# [2025-04-07 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:32:05 [end_date_ymd] => 2025-04-07 14:32:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:32:05' and `end` < '2025-04-07 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-04-07 14:32:19] Production.INFO: count ==5215 [2025-04-07 14:32:21] Production.ERROR: pbx CDR StartTime 2025-04-07 11:32:05 - End Time 2025-04-07 14:32:05 [2025-04-07 14:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855494', 'tblTempUsageDetail_20' ) start [2025-04-07 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855494', 'tblTempUsageDetail_20' ) end [2025-04-07 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855494', 'tblTempVendorCDR_20' ) start [2025-04-07 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855494', 'tblTempVendorCDR_20' ) end [2025-04-07 14:32:21] Production.INFO: ProcessCDR(1,14855494,1,1,2) [2025-04-07 14:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855494', 'tblTempUsageDetail_20' ) start [2025-04-07 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855494', 'tblTempUsageDetail_20' ) end [2025-04-07 14:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:32:27] Production.INFO: ==25201== Releasing lock... [2025-04-07 14:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:32:27] Production.INFO: 67 MB #Memory Used# [2025-04-07 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:33:05 [end_date_ymd] => 2025-04-07 14:33:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:33:05' and `end` < '2025-04-07 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-04-07 14:33:19] Production.INFO: count ==5145 [2025-04-07 14:33:21] Production.ERROR: pbx CDR StartTime 2025-04-07 11:33:05 - End Time 2025-04-07 14:33:05 [2025-04-07 14:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855499', 'tblTempUsageDetail_20' ) start [2025-04-07 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855499', 'tblTempUsageDetail_20' ) end [2025-04-07 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855499', 'tblTempVendorCDR_20' ) start [2025-04-07 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855499', 'tblTempVendorCDR_20' ) end [2025-04-07 14:33:21] Production.INFO: ProcessCDR(1,14855499,1,1,2) [2025-04-07 14:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855499', 'tblTempUsageDetail_20' ) start [2025-04-07 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855499', 'tblTempUsageDetail_20' ) end [2025-04-07 14:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:33:26] Production.INFO: ==25271== Releasing lock... [2025-04-07 14:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:33:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-07 14:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:34:06 [end_date_ymd] => 2025-04-07 14:34:06 [RateCDR] => 1 ) [2025-04-07 14: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-04-07 11:34:06' and `end` < '2025-04-07 14: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-04-07 14:34:20] Production.INFO: count ==5136 [2025-04-07 14:34:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:34:06 - End Time 2025-04-07 14:34:06 [2025-04-07 14:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855504', 'tblTempUsageDetail_20' ) start [2025-04-07 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855504', 'tblTempUsageDetail_20' ) end [2025-04-07 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855504', 'tblTempVendorCDR_20' ) start [2025-04-07 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855504', 'tblTempVendorCDR_20' ) end [2025-04-07 14:34:22] Production.INFO: ProcessCDR(1,14855504,1,1,2) [2025-04-07 14:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855504', 'tblTempUsageDetail_20' ) start [2025-04-07 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855504', 'tblTempUsageDetail_20' ) end [2025-04-07 14:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:34:27] Production.INFO: ==25349== Releasing lock... [2025-04-07 14:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:34:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-07 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:35:05 [end_date_ymd] => 2025-04-07 14:35:05 [RateCDR] => 1 ) [2025-04-07 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 11:35:05' and `end` < '2025-04-07 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 14:35:19] Production.INFO: count ==5116 [2025-04-07 14:35:21] Production.ERROR: pbx CDR StartTime 2025-04-07 11:35:05 - End Time 2025-04-07 14:35:05 [2025-04-07 14:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855509', 'tblTempUsageDetail_20' ) start [2025-04-07 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855509', 'tblTempUsageDetail_20' ) end [2025-04-07 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855509', 'tblTempVendorCDR_20' ) start [2025-04-07 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855509', 'tblTempVendorCDR_20' ) end [2025-04-07 14:35:21] Production.INFO: ProcessCDR(1,14855509,1,1,2) [2025-04-07 14:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855509', 'tblTempUsageDetail_20' ) start [2025-04-07 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855509', 'tblTempUsageDetail_20' ) end [2025-04-07 14:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:35:26] Production.INFO: ==25466== Releasing lock... [2025-04-07 14:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:35:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-07 14:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:36:06 [end_date_ymd] => 2025-04-07 14:36:06 [RateCDR] => 1 ) [2025-04-07 14: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-04-07 11:36:06' and `end` < '2025-04-07 14: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-04-07 14:36:19] Production.INFO: count ==5114 [2025-04-07 14:36:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:36:06 - End Time 2025-04-07 14:36:06 [2025-04-07 14:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855514', 'tblTempUsageDetail_20' ) start [2025-04-07 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855514', 'tblTempUsageDetail_20' ) end [2025-04-07 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855514', 'tblTempVendorCDR_20' ) start [2025-04-07 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855514', 'tblTempVendorCDR_20' ) end [2025-04-07 14:36:22] Production.INFO: ProcessCDR(1,14855514,1,1,2) [2025-04-07 14:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855514', 'tblTempUsageDetail_20' ) start [2025-04-07 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855514', 'tblTempUsageDetail_20' ) end [2025-04-07 14:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:36:27] Production.INFO: ==25537== Releasing lock... [2025-04-07 14:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:36:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-07 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:37:05 [end_date_ymd] => 2025-04-07 14:37:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:37:05' and `end` < '2025-04-07 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-04-07 14:37:19] Production.INFO: count ==5107 [2025-04-07 14:37:21] Production.ERROR: pbx CDR StartTime 2025-04-07 11:37:05 - End Time 2025-04-07 14:37:05 [2025-04-07 14:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855519', 'tblTempUsageDetail_20' ) start [2025-04-07 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855519', 'tblTempUsageDetail_20' ) end [2025-04-07 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855519', 'tblTempVendorCDR_20' ) start [2025-04-07 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855519', 'tblTempVendorCDR_20' ) end [2025-04-07 14:37:21] Production.INFO: ProcessCDR(1,14855519,1,1,2) [2025-04-07 14:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855519', 'tblTempUsageDetail_20' ) start [2025-04-07 14:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855519', 'tblTempUsageDetail_20' ) end [2025-04-07 14:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:37:27] Production.INFO: ==25614== Releasing lock... [2025-04-07 14:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:37:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-07 14:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:38:06 [end_date_ymd] => 2025-04-07 14:38:06 [RateCDR] => 1 ) [2025-04-07 14:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 11:38:06' and `end` < '2025-04-07 14:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 14:38:20] Production.INFO: count ==5100 [2025-04-07 14:38:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:38:06 - End Time 2025-04-07 14:38:06 [2025-04-07 14:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855524', 'tblTempUsageDetail_20' ) start [2025-04-07 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855524', 'tblTempUsageDetail_20' ) end [2025-04-07 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855524', 'tblTempVendorCDR_20' ) start [2025-04-07 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855524', 'tblTempVendorCDR_20' ) end [2025-04-07 14:38:22] Production.INFO: ProcessCDR(1,14855524,1,1,2) [2025-04-07 14:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855524', 'tblTempUsageDetail_20' ) start [2025-04-07 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855524', 'tblTempUsageDetail_20' ) end [2025-04-07 14:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:38:27] Production.INFO: ==25688== Releasing lock... [2025-04-07 14:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:38:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-07 14:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:39:06 [end_date_ymd] => 2025-04-07 14:39:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:39:06' and `end` < '2025-04-07 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-04-07 14:39:19] Production.INFO: count ==5085 [2025-04-07 14:39:21] Production.ERROR: pbx CDR StartTime 2025-04-07 11:39:06 - End Time 2025-04-07 14:39:06 [2025-04-07 14:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855529', 'tblTempUsageDetail_20' ) start [2025-04-07 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855529', 'tblTempUsageDetail_20' ) end [2025-04-07 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855529', 'tblTempVendorCDR_20' ) start [2025-04-07 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855529', 'tblTempVendorCDR_20' ) end [2025-04-07 14:39:22] Production.INFO: ProcessCDR(1,14855529,1,1,2) [2025-04-07 14:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855529', 'tblTempUsageDetail_20' ) start [2025-04-07 14:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855529', 'tblTempUsageDetail_20' ) end [2025-04-07 14:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:39:25] Production.INFO: ==25761== Releasing lock... [2025-04-07 14:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:39:25] Production.INFO: 66 MB #Memory Used# [2025-04-07 14:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:40:05 [end_date_ymd] => 2025-04-07 14:40:05 [RateCDR] => 1 ) [2025-04-07 14:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 11:40:05' and `end` < '2025-04-07 14:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 14:40:20] Production.INFO: count ==5109 [2025-04-07 14:40:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:40:05 - End Time 2025-04-07 14:40:05 [2025-04-07 14:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855535', 'tblTempUsageDetail_20' ) start [2025-04-07 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855535', 'tblTempUsageDetail_20' ) end [2025-04-07 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855535', 'tblTempVendorCDR_20' ) start [2025-04-07 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855535', 'tblTempVendorCDR_20' ) end [2025-04-07 14:40:22] Production.INFO: ProcessCDR(1,14855535,1,1,2) [2025-04-07 14:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855535', 'tblTempUsageDetail_20' ) start [2025-04-07 14:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855535', 'tblTempUsageDetail_20' ) end [2025-04-07 14:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:40:28] Production.INFO: ==25838== Releasing lock... [2025-04-07 14:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:40:28] Production.INFO: 66.25 MB #Memory Used# [2025-04-07 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:41:05 [end_date_ymd] => 2025-04-07 14:41:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:41:05' and `end` < '2025-04-07 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-04-07 14:41:19] Production.INFO: count ==5116 [2025-04-07 14:41:21] Production.ERROR: pbx CDR StartTime 2025-04-07 11:41:05 - End Time 2025-04-07 14:41:05 [2025-04-07 14:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855540', 'tblTempUsageDetail_20' ) start [2025-04-07 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855540', 'tblTempUsageDetail_20' ) end [2025-04-07 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855540', 'tblTempVendorCDR_20' ) start [2025-04-07 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855540', 'tblTempVendorCDR_20' ) end [2025-04-07 14:41:21] Production.INFO: ProcessCDR(1,14855540,1,1,2) [2025-04-07 14:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855540', 'tblTempUsageDetail_20' ) start [2025-04-07 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855540', 'tblTempUsageDetail_20' ) end [2025-04-07 14:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:41:26] Production.INFO: ==25914== Releasing lock... [2025-04-07 14:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:41:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-07 14:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:42:06 [end_date_ymd] => 2025-04-07 14:42:06 [RateCDR] => 1 ) [2025-04-07 14: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-04-07 11:42:06' and `end` < '2025-04-07 14: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-04-07 14:42:20] Production.INFO: count ==5110 [2025-04-07 14:42:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:42:06 - End Time 2025-04-07 14:42:06 [2025-04-07 14:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855545', 'tblTempUsageDetail_20' ) start [2025-04-07 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855545', 'tblTempUsageDetail_20' ) end [2025-04-07 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855545', 'tblTempVendorCDR_20' ) start [2025-04-07 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855545', 'tblTempVendorCDR_20' ) end [2025-04-07 14:42:22] Production.INFO: ProcessCDR(1,14855545,1,1,2) [2025-04-07 14:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855545', 'tblTempUsageDetail_20' ) start [2025-04-07 14:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855545', 'tblTempUsageDetail_20' ) end [2025-04-07 14:42:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:42:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:42:28] Production.INFO: ==25991== Releasing lock... [2025-04-07 14:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:42:28] Production.INFO: 66.25 MB #Memory Used# [2025-04-07 14:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:43:06 [end_date_ymd] => 2025-04-07 14:43:06 [RateCDR] => 1 ) [2025-04-07 14:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 11:43:06' and `end` < '2025-04-07 14:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 14:43:20] Production.INFO: count ==5114 [2025-04-07 14:43:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:43:06 - End Time 2025-04-07 14:43:06 [2025-04-07 14:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855550', 'tblTempUsageDetail_20' ) start [2025-04-07 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855550', 'tblTempUsageDetail_20' ) end [2025-04-07 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855550', 'tblTempVendorCDR_20' ) start [2025-04-07 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855550', 'tblTempVendorCDR_20' ) end [2025-04-07 14:43:22] Production.INFO: ProcessCDR(1,14855550,1,1,2) [2025-04-07 14:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855550', 'tblTempUsageDetail_20' ) start [2025-04-07 14:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855550', 'tblTempUsageDetail_20' ) end [2025-04-07 14:43:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:43:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:43:28] Production.INFO: ==26067== Releasing lock... [2025-04-07 14:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:43:28] Production.INFO: 66.25 MB #Memory Used# [2025-04-07 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:44:05 [end_date_ymd] => 2025-04-07 14:44:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:44:05' and `end` < '2025-04-07 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-04-07 14:44:19] Production.INFO: count ==5103 [2025-04-07 14:44:21] Production.ERROR: pbx CDR StartTime 2025-04-07 11:44:05 - End Time 2025-04-07 14:44:05 [2025-04-07 14:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855555', 'tblTempUsageDetail_20' ) start [2025-04-07 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855555', 'tblTempUsageDetail_20' ) end [2025-04-07 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855555', 'tblTempVendorCDR_20' ) start [2025-04-07 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855555', 'tblTempVendorCDR_20' ) end [2025-04-07 14:44:21] Production.INFO: ProcessCDR(1,14855555,1,1,2) [2025-04-07 14:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855555', 'tblTempUsageDetail_20' ) start [2025-04-07 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855555', 'tblTempUsageDetail_20' ) end [2025-04-07 14:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:44:26] Production.INFO: ==26170== Releasing lock... [2025-04-07 14:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:44:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-07 14:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:45:06 [end_date_ymd] => 2025-04-07 14:45:06 [RateCDR] => 1 ) [2025-04-07 14:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 11:45:06' and `end` < '2025-04-07 14:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 14:45:20] Production.INFO: count ==5094 [2025-04-07 14:45:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:45:06 - End Time 2025-04-07 14:45:06 [2025-04-07 14:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855560', 'tblTempUsageDetail_20' ) start [2025-04-07 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855560', 'tblTempUsageDetail_20' ) end [2025-04-07 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855560', 'tblTempVendorCDR_20' ) start [2025-04-07 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855560', 'tblTempVendorCDR_20' ) end [2025-04-07 14:45:22] Production.INFO: ProcessCDR(1,14855560,1,1,2) [2025-04-07 14:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855560', 'tblTempUsageDetail_20' ) start [2025-04-07 14:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855560', 'tblTempUsageDetail_20' ) end [2025-04-07 14:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:45:26] Production.INFO: ==26295== Releasing lock... [2025-04-07 14:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:45:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-07 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:46:06 [end_date_ymd] => 2025-04-07 14:46:06 [RateCDR] => 1 ) [2025-04-07 14: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-04-07 11:46:06' and `end` < '2025-04-07 14: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-04-07 14:46:20] Production.INFO: count ==5085 [2025-04-07 14:46:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:46:06 - End Time 2025-04-07 14:46:06 [2025-04-07 14:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855565', 'tblTempUsageDetail_20' ) start [2025-04-07 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855565', 'tblTempUsageDetail_20' ) end [2025-04-07 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855565', 'tblTempVendorCDR_20' ) start [2025-04-07 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855565', 'tblTempVendorCDR_20' ) end [2025-04-07 14:46:22] Production.INFO: ProcessCDR(1,14855565,1,1,2) [2025-04-07 14:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855565', 'tblTempUsageDetail_20' ) start [2025-04-07 14:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855565', 'tblTempUsageDetail_20' ) end [2025-04-07 14:46:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:46:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:46:28] Production.INFO: ==26385== Releasing lock... [2025-04-07 14:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:46:28] Production.INFO: 66 MB #Memory Used# [2025-04-07 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:47:05 [end_date_ymd] => 2025-04-07 14:47:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:47:05' and `end` < '2025-04-07 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-04-07 14:47:19] Production.INFO: count ==5058 [2025-04-07 14:47:21] Production.ERROR: pbx CDR StartTime 2025-04-07 11:47:05 - End Time 2025-04-07 14:47:05 [2025-04-07 14:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855570', 'tblTempUsageDetail_20' ) start [2025-04-07 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855570', 'tblTempUsageDetail_20' ) end [2025-04-07 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855570', 'tblTempVendorCDR_20' ) start [2025-04-07 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855570', 'tblTempVendorCDR_20' ) end [2025-04-07 14:47:21] Production.INFO: ProcessCDR(1,14855570,1,1,2) [2025-04-07 14:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855570', 'tblTempUsageDetail_20' ) start [2025-04-07 14:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855570', 'tblTempUsageDetail_20' ) end [2025-04-07 14:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:47:25] Production.INFO: ==26458== Releasing lock... [2025-04-07 14:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:47:25] Production.INFO: 66 MB #Memory Used# [2025-04-07 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:48:06 [end_date_ymd] => 2025-04-07 14:48:06 [RateCDR] => 1 ) [2025-04-07 14: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-04-07 11:48:06' and `end` < '2025-04-07 14: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-04-07 14:48:20] Production.INFO: count ==5047 [2025-04-07 14:48:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:48:06 - End Time 2025-04-07 14:48:06 [2025-04-07 14:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855575', 'tblTempUsageDetail_20' ) start [2025-04-07 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855575', 'tblTempUsageDetail_20' ) end [2025-04-07 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855575', 'tblTempVendorCDR_20' ) start [2025-04-07 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855575', 'tblTempVendorCDR_20' ) end [2025-04-07 14:48:22] Production.INFO: ProcessCDR(1,14855575,1,1,2) [2025-04-07 14:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855575', 'tblTempUsageDetail_20' ) start [2025-04-07 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855575', 'tblTempUsageDetail_20' ) end [2025-04-07 14:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:48:27] Production.INFO: ==26530== Releasing lock... [2025-04-07 14:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:48:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:49:05 [end_date_ymd] => 2025-04-07 14:49:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:49:05' and `end` < '2025-04-07 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-04-07 14:49:19] Production.INFO: count ==5051 [2025-04-07 14:49:21] Production.ERROR: pbx CDR StartTime 2025-04-07 11:49:05 - End Time 2025-04-07 14:49:05 [2025-04-07 14:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855580', 'tblTempUsageDetail_20' ) start [2025-04-07 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855580', 'tblTempUsageDetail_20' ) end [2025-04-07 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855580', 'tblTempVendorCDR_20' ) start [2025-04-07 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855580', 'tblTempVendorCDR_20' ) end [2025-04-07 14:49:21] Production.INFO: ProcessCDR(1,14855580,1,1,2) [2025-04-07 14:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855580', 'tblTempUsageDetail_20' ) start [2025-04-07 14:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855580', 'tblTempUsageDetail_20' ) end [2025-04-07 14:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:49:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:49:25] Production.INFO: ==26615== Releasing lock... [2025-04-07 14:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:49:25] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:50:06 [end_date_ymd] => 2025-04-07 14:50:06 [RateCDR] => 1 ) [2025-04-07 14:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 11:50:06' and `end` < '2025-04-07 14:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 14:50:20] Production.INFO: count ==5084 [2025-04-07 14:50:23] Production.ERROR: pbx CDR StartTime 2025-04-07 11:50:06 - End Time 2025-04-07 14:50:06 [2025-04-07 14:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855586', 'tblTempUsageDetail_20' ) start [2025-04-07 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855586', 'tblTempUsageDetail_20' ) end [2025-04-07 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855586', 'tblTempVendorCDR_20' ) start [2025-04-07 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855586', 'tblTempVendorCDR_20' ) end [2025-04-07 14:50:23] Production.INFO: ProcessCDR(1,14855586,1,1,2) [2025-04-07 14:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855586', 'tblTempUsageDetail_20' ) start [2025-04-07 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855586', 'tblTempUsageDetail_20' ) end [2025-04-07 14:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:50:28] Production.INFO: ==26688== Releasing lock... [2025-04-07 14:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:50:28] Production.INFO: 66 MB #Memory Used# [2025-04-07 14:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:51:06 [end_date_ymd] => 2025-04-07 14:51:06 [RateCDR] => 1 ) [2025-04-07 14:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 11:51:06' and `end` < '2025-04-07 14:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 14:51:20] Production.INFO: count ==5056 [2025-04-07 14:51:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:51:06 - End Time 2025-04-07 14:51:06 [2025-04-07 14:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855591', 'tblTempUsageDetail_20' ) start [2025-04-07 14:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855591', 'tblTempUsageDetail_20' ) end [2025-04-07 14:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855591', 'tblTempVendorCDR_20' ) start [2025-04-07 14:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855591', 'tblTempVendorCDR_20' ) end [2025-04-07 14:51:23] Production.INFO: ProcessCDR(1,14855591,1,1,2) [2025-04-07 14:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855591', 'tblTempUsageDetail_20' ) start [2025-04-07 14:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855591', 'tblTempUsageDetail_20' ) end [2025-04-07 14:51:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:51:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:51:28] Production.INFO: ==26803== Releasing lock... [2025-04-07 14:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:51:28] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 14:52:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:52:07 [end_date_ymd] => 2025-04-07 14:52:07 [RateCDR] => 1 ) [2025-04-07 14:52: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-04-07 11:52:07' and `end` < '2025-04-07 14:52: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-04-07 14:52:21] Production.INFO: count ==5048 [2025-04-07 14:52:23] Production.ERROR: pbx CDR StartTime 2025-04-07 11:52:07 - End Time 2025-04-07 14:52:07 [2025-04-07 14:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855596', 'tblTempUsageDetail_20' ) start [2025-04-07 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855596', 'tblTempUsageDetail_20' ) end [2025-04-07 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855596', 'tblTempVendorCDR_20' ) start [2025-04-07 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855596', 'tblTempVendorCDR_20' ) end [2025-04-07 14:52:23] Production.INFO: ProcessCDR(1,14855596,1,1,2) [2025-04-07 14:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855596', 'tblTempUsageDetail_20' ) start [2025-04-07 14:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855596', 'tblTempUsageDetail_20' ) end [2025-04-07 14:52:29] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:52:29] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:52:29] Production.INFO: ==26878== Releasing lock... [2025-04-07 14:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:52:29] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:53:05 [end_date_ymd] => 2025-04-07 14:53:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:53:05' and `end` < '2025-04-07 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-04-07 14:53:19] Production.INFO: count ==5045 [2025-04-07 14:53:21] Production.ERROR: pbx CDR StartTime 2025-04-07 11:53:05 - End Time 2025-04-07 14:53:05 [2025-04-07 14:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855601', 'tblTempUsageDetail_20' ) start [2025-04-07 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855601', 'tblTempUsageDetail_20' ) end [2025-04-07 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855601', 'tblTempVendorCDR_20' ) start [2025-04-07 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855601', 'tblTempVendorCDR_20' ) end [2025-04-07 14:53:21] Production.INFO: ProcessCDR(1,14855601,1,1,2) [2025-04-07 14:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855601', 'tblTempUsageDetail_20' ) start [2025-04-07 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855601', 'tblTempUsageDetail_20' ) end [2025-04-07 14:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:53:26] Production.INFO: ==26951== Releasing lock... [2025-04-07 14:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:53:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:54:06 [end_date_ymd] => 2025-04-07 14:54:06 [RateCDR] => 1 ) [2025-04-07 14: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-04-07 11:54:06' and `end` < '2025-04-07 14: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-04-07 14:54:20] Production.INFO: count ==5042 [2025-04-07 14:54:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:54:06 - End Time 2025-04-07 14:54:06 [2025-04-07 14:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855606', 'tblTempUsageDetail_20' ) start [2025-04-07 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855606', 'tblTempUsageDetail_20' ) end [2025-04-07 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855606', 'tblTempVendorCDR_20' ) start [2025-04-07 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855606', 'tblTempVendorCDR_20' ) end [2025-04-07 14:54:22] Production.INFO: ProcessCDR(1,14855606,1,1,2) [2025-04-07 14:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855606', 'tblTempUsageDetail_20' ) start [2025-04-07 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855606', 'tblTempUsageDetail_20' ) end [2025-04-07 14:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:54:27] Production.INFO: ==27031== Releasing lock... [2025-04-07 14:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:54:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:55:05 [end_date_ymd] => 2025-04-07 14:55:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:55:05' and `end` < '2025-04-07 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-04-07 14:55:19] Production.INFO: count ==5039 [2025-04-07 14:55:21] Production.ERROR: pbx CDR StartTime 2025-04-07 11:55:05 - End Time 2025-04-07 14:55:05 [2025-04-07 14:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855611', 'tblTempUsageDetail_20' ) start [2025-04-07 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855611', 'tblTempUsageDetail_20' ) end [2025-04-07 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855611', 'tblTempVendorCDR_20' ) start [2025-04-07 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855611', 'tblTempVendorCDR_20' ) end [2025-04-07 14:55:21] Production.INFO: ProcessCDR(1,14855611,1,1,2) [2025-04-07 14:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855611', 'tblTempUsageDetail_20' ) start [2025-04-07 14:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855611', 'tblTempUsageDetail_20' ) end [2025-04-07 14:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:55:27] Production.INFO: ==27102== Releasing lock... [2025-04-07 14:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:55:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:56:06 [end_date_ymd] => 2025-04-07 14:56:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:56:06' and `end` < '2025-04-07 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-04-07 14:56:20] Production.INFO: count ==5045 [2025-04-07 14:56:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:56:06 - End Time 2025-04-07 14:56:06 [2025-04-07 14:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855616', 'tblTempUsageDetail_20' ) start [2025-04-07 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855616', 'tblTempUsageDetail_20' ) end [2025-04-07 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855616', 'tblTempVendorCDR_20' ) start [2025-04-07 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855616', 'tblTempVendorCDR_20' ) end [2025-04-07 14:56:22] Production.INFO: ProcessCDR(1,14855616,1,1,2) [2025-04-07 14:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855616', 'tblTempUsageDetail_20' ) start [2025-04-07 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855616', 'tblTempUsageDetail_20' ) end [2025-04-07 14:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:56:27] Production.INFO: ==27176== Releasing lock... [2025-04-07 14:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:56:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:57:05 [end_date_ymd] => 2025-04-07 14:57:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:57:05' and `end` < '2025-04-07 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-04-07 14:57:20] Production.INFO: count ==5043 [2025-04-07 14:57:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:57:05 - End Time 2025-04-07 14:57:05 [2025-04-07 14:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855621', 'tblTempUsageDetail_20' ) start [2025-04-07 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855621', 'tblTempUsageDetail_20' ) end [2025-04-07 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855621', 'tblTempVendorCDR_20' ) start [2025-04-07 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855621', 'tblTempVendorCDR_20' ) end [2025-04-07 14:57:22] Production.INFO: ProcessCDR(1,14855621,1,1,2) [2025-04-07 14:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855621', 'tblTempUsageDetail_20' ) start [2025-04-07 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855621', 'tblTempUsageDetail_20' ) end [2025-04-07 14:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:57:27] Production.INFO: ==27249== Releasing lock... [2025-04-07 14:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:57:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:58:05 [end_date_ymd] => 2025-04-07 14:58:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:58:05' and `end` < '2025-04-07 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-04-07 14:58:19] Production.INFO: count ==5048 [2025-04-07 14:58:21] Production.ERROR: pbx CDR StartTime 2025-04-07 11:58:05 - End Time 2025-04-07 14:58:05 [2025-04-07 14:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855626', 'tblTempUsageDetail_20' ) start [2025-04-07 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855626', 'tblTempUsageDetail_20' ) end [2025-04-07 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855626', 'tblTempVendorCDR_20' ) start [2025-04-07 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855626', 'tblTempVendorCDR_20' ) end [2025-04-07 14:58:22] Production.INFO: ProcessCDR(1,14855626,1,1,2) [2025-04-07 14:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855626', 'tblTempUsageDetail_20' ) start [2025-04-07 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855626', 'tblTempUsageDetail_20' ) end [2025-04-07 14:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:58:27] Production.INFO: ==27329== Releasing lock... [2025-04-07 14:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:58:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 11:59:05 [end_date_ymd] => 2025-04-07 14:59:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 11:59:05' and `end` < '2025-04-07 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-04-07 14:59:20] Production.INFO: count ==5046 [2025-04-07 14:59:22] Production.ERROR: pbx CDR StartTime 2025-04-07 11:59:05 - End Time 2025-04-07 14:59:05 [2025-04-07 14:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855631', 'tblTempUsageDetail_20' ) start [2025-04-07 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855631', 'tblTempUsageDetail_20' ) end [2025-04-07 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855631', 'tblTempVendorCDR_20' ) start [2025-04-07 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855631', 'tblTempVendorCDR_20' ) end [2025-04-07 14:59:22] Production.INFO: ProcessCDR(1,14855631,1,1,2) [2025-04-07 14:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 14:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855631', 'tblTempUsageDetail_20' ) start [2025-04-07 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855631', 'tblTempUsageDetail_20' ) end [2025-04-07 14:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 14:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 14:59:27] Production.INFO: ==27402== Releasing lock... [2025-04-07 14:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 14:59:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 15:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:00:07 [end_date_ymd] => 2025-04-07 15:00:07 [RateCDR] => 1 ) [2025-04-07 15: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-04-07 12:00:07' and `end` < '2025-04-07 15: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-04-07 15:00:21] Production.INFO: count ==5042 [2025-04-07 15:00:24] Production.ERROR: pbx CDR StartTime 2025-04-07 12:00:07 - End Time 2025-04-07 15:00:07 [2025-04-07 15:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855637', 'tblTempUsageDetail_20' ) start [2025-04-07 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855637', 'tblTempUsageDetail_20' ) end [2025-04-07 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855637', 'tblTempVendorCDR_20' ) start [2025-04-07 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855637', 'tblTempVendorCDR_20' ) end [2025-04-07 15:00:24] Production.INFO: ProcessCDR(1,14855637,1,1,2) [2025-04-07 15:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855637', 'tblTempUsageDetail_20' ) start [2025-04-07 15:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855637', 'tblTempUsageDetail_20' ) end [2025-04-07 15:00:30] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:00:30] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:00:30] Production.INFO: ==27483== Releasing lock... [2025-04-07 15:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:00:30] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:01:05 [end_date_ymd] => 2025-04-07 15:01:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:01:05' and `end` < '2025-04-07 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-04-07 15:01:19] Production.INFO: count ==5029 [2025-04-07 15:01:22] Production.ERROR: pbx CDR StartTime 2025-04-07 12:01:05 - End Time 2025-04-07 15:01:05 [2025-04-07 15:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855642', 'tblTempUsageDetail_20' ) start [2025-04-07 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855642', 'tblTempUsageDetail_20' ) end [2025-04-07 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855642', 'tblTempVendorCDR_20' ) start [2025-04-07 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855642', 'tblTempVendorCDR_20' ) end [2025-04-07 15:01:22] Production.INFO: ProcessCDR(1,14855642,1,1,2) [2025-04-07 15:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855642', 'tblTempUsageDetail_20' ) start [2025-04-07 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855642', 'tblTempUsageDetail_20' ) end [2025-04-07 15:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:01:27] Production.INFO: ==27574== Releasing lock... [2025-04-07 15:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:01:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 15:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:02:06 [end_date_ymd] => 2025-04-07 15:02:06 [RateCDR] => 1 ) [2025-04-07 15: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-04-07 12:02:06' and `end` < '2025-04-07 15: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-04-07 15:02:20] Production.INFO: count ==5015 [2025-04-07 15:02:22] Production.ERROR: pbx CDR StartTime 2025-04-07 12:02:06 - End Time 2025-04-07 15:02:06 [2025-04-07 15:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855647', 'tblTempUsageDetail_20' ) start [2025-04-07 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855647', 'tblTempUsageDetail_20' ) end [2025-04-07 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855647', 'tblTempVendorCDR_20' ) start [2025-04-07 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855647', 'tblTempVendorCDR_20' ) end [2025-04-07 15:02:22] Production.INFO: ProcessCDR(1,14855647,1,1,2) [2025-04-07 15:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855647', 'tblTempUsageDetail_20' ) start [2025-04-07 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855647', 'tblTempUsageDetail_20' ) end [2025-04-07 15:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:02:27] Production.INFO: ==27759== Releasing lock... [2025-04-07 15:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:02:27] Production.INFO: 65.5 MB #Memory Used# [2025-04-07 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:03:05 [end_date_ymd] => 2025-04-07 15:03:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:03:05' and `end` < '2025-04-07 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-04-07 15:03:19] Production.INFO: count ==5018 [2025-04-07 15:03:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:03:05 - End Time 2025-04-07 15:03:05 [2025-04-07 15:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855652', 'tblTempUsageDetail_20' ) start [2025-04-07 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855652', 'tblTempUsageDetail_20' ) end [2025-04-07 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855652', 'tblTempVendorCDR_20' ) start [2025-04-07 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855652', 'tblTempVendorCDR_20' ) end [2025-04-07 15:03:21] Production.INFO: ProcessCDR(1,14855652,1,1,2) [2025-04-07 15:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855652', 'tblTempUsageDetail_20' ) start [2025-04-07 15:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855652', 'tblTempUsageDetail_20' ) end [2025-04-07 15:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:03:26] Production.INFO: ==27839== Releasing lock... [2025-04-07 15:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:03:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-07 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:04:06 [end_date_ymd] => 2025-04-07 15:04:06 [RateCDR] => 1 ) [2025-04-07 15:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 12:04:06' and `end` < '2025-04-07 15:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 15:04:20] Production.INFO: count ==5004 [2025-04-07 15:04:22] Production.ERROR: pbx CDR StartTime 2025-04-07 12:04:06 - End Time 2025-04-07 15:04:06 [2025-04-07 15:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855657', 'tblTempUsageDetail_20' ) start [2025-04-07 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855657', 'tblTempUsageDetail_20' ) end [2025-04-07 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855657', 'tblTempVendorCDR_20' ) start [2025-04-07 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855657', 'tblTempVendorCDR_20' ) end [2025-04-07 15:04:22] Production.INFO: ProcessCDR(1,14855657,1,1,2) [2025-04-07 15:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855657', 'tblTempUsageDetail_20' ) start [2025-04-07 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855657', 'tblTempUsageDetail_20' ) end [2025-04-07 15:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:04:27] Production.INFO: ==27916== Releasing lock... [2025-04-07 15:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:04:27] Production.INFO: 65.5 MB #Memory Used# [2025-04-07 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:05:05 [end_date_ymd] => 2025-04-07 15:05:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:05:05' and `end` < '2025-04-07 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-04-07 15:05:19] Production.INFO: count ==4999 [2025-04-07 15:05:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:05:05 - End Time 2025-04-07 15:05:05 [2025-04-07 15:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855662', 'tblTempUsageDetail_20' ) start [2025-04-07 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855662', 'tblTempUsageDetail_20' ) end [2025-04-07 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855662', 'tblTempVendorCDR_20' ) start [2025-04-07 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855662', 'tblTempVendorCDR_20' ) end [2025-04-07 15:05:21] Production.INFO: ProcessCDR(1,14855662,1,1,2) [2025-04-07 15:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855662', 'tblTempUsageDetail_20' ) start [2025-04-07 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855662', 'tblTempUsageDetail_20' ) end [2025-04-07 15:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:05:27] Production.INFO: ==28071== Releasing lock... [2025-04-07 15:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:05:27] Production.INFO: 65.5 MB #Memory Used# [2025-04-07 15:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:06:06 [end_date_ymd] => 2025-04-07 15:06:06 [RateCDR] => 1 ) [2025-04-07 15: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-04-07 12:06:06' and `end` < '2025-04-07 15: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-04-07 15:06:20] Production.INFO: count ==4988 [2025-04-07 15:06:22] Production.ERROR: pbx CDR StartTime 2025-04-07 12:06:06 - End Time 2025-04-07 15:06:06 [2025-04-07 15:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855667', 'tblTempUsageDetail_20' ) start [2025-04-07 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855667', 'tblTempUsageDetail_20' ) end [2025-04-07 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855667', 'tblTempVendorCDR_20' ) start [2025-04-07 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855667', 'tblTempVendorCDR_20' ) end [2025-04-07 15:06:22] Production.INFO: ProcessCDR(1,14855667,1,1,2) [2025-04-07 15:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855667', 'tblTempUsageDetail_20' ) start [2025-04-07 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855667', 'tblTempUsageDetail_20' ) end [2025-04-07 15:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:06:27] Production.INFO: ==28183== Releasing lock... [2025-04-07 15:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:06:27] Production.INFO: 65.25 MB #Memory Used# [2025-04-07 15:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:07:04 [end_date_ymd] => 2025-04-07 15:07:04 [RateCDR] => 1 ) [2025-04-07 15:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 12:07:04' and `end` < '2025-04-07 15:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 15:07:18] Production.INFO: count ==4985 [2025-04-07 15:07:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:07:04 - End Time 2025-04-07 15:07:04 [2025-04-07 15:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855672', 'tblTempUsageDetail_20' ) start [2025-04-07 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855672', 'tblTempUsageDetail_20' ) end [2025-04-07 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855672', 'tblTempVendorCDR_20' ) start [2025-04-07 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855672', 'tblTempVendorCDR_20' ) end [2025-04-07 15:07:21] Production.INFO: ProcessCDR(1,14855672,1,1,2) [2025-04-07 15:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855672', 'tblTempUsageDetail_20' ) start [2025-04-07 15:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855672', 'tblTempUsageDetail_20' ) end [2025-04-07 15:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:07:26] Production.INFO: ==28257== Releasing lock... [2025-04-07 15:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:07:26] Production.INFO: 65.25 MB #Memory Used# [2025-04-07 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:08:05 [end_date_ymd] => 2025-04-07 15:08:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:08:05' and `end` < '2025-04-07 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-04-07 15:08:19] Production.INFO: count ==4989 [2025-04-07 15:08:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:08:05 - End Time 2025-04-07 15:08:05 [2025-04-07 15:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855677', 'tblTempUsageDetail_20' ) start [2025-04-07 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855677', 'tblTempUsageDetail_20' ) end [2025-04-07 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855677', 'tblTempVendorCDR_20' ) start [2025-04-07 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855677', 'tblTempVendorCDR_20' ) end [2025-04-07 15:08:22] Production.INFO: ProcessCDR(1,14855677,1,1,2) [2025-04-07 15:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855677', 'tblTempUsageDetail_20' ) start [2025-04-07 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855677', 'tblTempUsageDetail_20' ) end [2025-04-07 15:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:08:27] Production.INFO: ==28355== Releasing lock... [2025-04-07 15:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:08:27] Production.INFO: 65.25 MB #Memory Used# [2025-04-07 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:09:05 [end_date_ymd] => 2025-04-07 15:09:05 [RateCDR] => 1 ) [2025-04-07 15:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 12:09:05' and `end` < '2025-04-07 15:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 15:09:19] Production.INFO: count ==4974 [2025-04-07 15:09:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:09:05 - End Time 2025-04-07 15:09:05 [2025-04-07 15:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855682', 'tblTempUsageDetail_20' ) start [2025-04-07 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855682', 'tblTempUsageDetail_20' ) end [2025-04-07 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855682', 'tblTempVendorCDR_20' ) start [2025-04-07 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855682', 'tblTempVendorCDR_20' ) end [2025-04-07 15:09:21] Production.INFO: ProcessCDR(1,14855682,1,1,2) [2025-04-07 15:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855682', 'tblTempUsageDetail_20' ) start [2025-04-07 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855682', 'tblTempUsageDetail_20' ) end [2025-04-07 15:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:09:26] Production.INFO: ==28494== Releasing lock... [2025-04-07 15:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:09:26] Production.INFO: 65.25 MB #Memory Used# [2025-04-07 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:10:06 [end_date_ymd] => 2025-04-07 15:10:06 [RateCDR] => 1 ) [2025-04-07 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 12:10:06' and `end` < '2025-04-07 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 15:10:20] Production.INFO: count ==4965 [2025-04-07 15:10:22] Production.ERROR: pbx CDR StartTime 2025-04-07 12:10:06 - End Time 2025-04-07 15:10:06 [2025-04-07 15:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855688', 'tblTempUsageDetail_20' ) start [2025-04-07 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855688', 'tblTempUsageDetail_20' ) end [2025-04-07 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855688', 'tblTempVendorCDR_20' ) start [2025-04-07 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855688', 'tblTempVendorCDR_20' ) end [2025-04-07 15:10:22] Production.INFO: ProcessCDR(1,14855688,1,1,2) [2025-04-07 15:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855688', 'tblTempUsageDetail_20' ) start [2025-04-07 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855688', 'tblTempUsageDetail_20' ) end [2025-04-07 15:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:10:28] Production.INFO: ==28585== Releasing lock... [2025-04-07 15:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:10:28] Production.INFO: 65.25 MB #Memory Used# [2025-04-07 15:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:11:04 [end_date_ymd] => 2025-04-07 15:11:04 [RateCDR] => 1 ) [2025-04-07 15:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 12:11:04' and `end` < '2025-04-07 15:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 15:11:19] Production.INFO: count ==4974 [2025-04-07 15:11:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:11:04 - End Time 2025-04-07 15:11:04 [2025-04-07 15:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855693', 'tblTempUsageDetail_20' ) start [2025-04-07 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855693', 'tblTempUsageDetail_20' ) end [2025-04-07 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855693', 'tblTempVendorCDR_20' ) start [2025-04-07 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855693', 'tblTempVendorCDR_20' ) end [2025-04-07 15:11:21] Production.INFO: ProcessCDR(1,14855693,1,1,2) [2025-04-07 15:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855693', 'tblTempUsageDetail_20' ) start [2025-04-07 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855693', 'tblTempUsageDetail_20' ) end [2025-04-07 15:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:11:26] Production.INFO: ==28660== Releasing lock... [2025-04-07 15:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:11:26] Production.INFO: 65.25 MB #Memory Used# [2025-04-07 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:12:06 [end_date_ymd] => 2025-04-07 15:12:06 [RateCDR] => 1 ) [2025-04-07 15: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-04-07 12:12:06' and `end` < '2025-04-07 15: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-04-07 15:12:20] Production.INFO: count ==4986 [2025-04-07 15:12:22] Production.ERROR: pbx CDR StartTime 2025-04-07 12:12:06 - End Time 2025-04-07 15:12:06 [2025-04-07 15:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855698', 'tblTempUsageDetail_20' ) start [2025-04-07 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855698', 'tblTempUsageDetail_20' ) end [2025-04-07 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855698', 'tblTempVendorCDR_20' ) start [2025-04-07 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855698', 'tblTempVendorCDR_20' ) end [2025-04-07 15:12:22] Production.INFO: ProcessCDR(1,14855698,1,1,2) [2025-04-07 15:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855698', 'tblTempUsageDetail_20' ) start [2025-04-07 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855698', 'tblTempUsageDetail_20' ) end [2025-04-07 15:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:12:27] Production.INFO: ==28812== Releasing lock... [2025-04-07 15:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:12:27] Production.INFO: 65.25 MB #Memory Used# [2025-04-07 15:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:13:06 [end_date_ymd] => 2025-04-07 15:13:06 [RateCDR] => 1 ) [2025-04-07 15:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 12:13:06' and `end` < '2025-04-07 15:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 15:13:20] Production.INFO: count ==4991 [2025-04-07 15:13:22] Production.ERROR: pbx CDR StartTime 2025-04-07 12:13:06 - End Time 2025-04-07 15:13:06 [2025-04-07 15:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855703', 'tblTempUsageDetail_20' ) start [2025-04-07 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855703', 'tblTempUsageDetail_20' ) end [2025-04-07 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855703', 'tblTempVendorCDR_20' ) start [2025-04-07 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855703', 'tblTempVendorCDR_20' ) end [2025-04-07 15:13:22] Production.INFO: ProcessCDR(1,14855703,1,1,2) [2025-04-07 15:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855703', 'tblTempUsageDetail_20' ) start [2025-04-07 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855703', 'tblTempUsageDetail_20' ) end [2025-04-07 15:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:13:27] Production.INFO: ==28890== Releasing lock... [2025-04-07 15:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:13:27] Production.INFO: 65.25 MB #Memory Used# [2025-04-07 15:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:14:06 [end_date_ymd] => 2025-04-07 15:14:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:14:06' and `end` < '2025-04-07 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-04-07 15:14:20] Production.INFO: count ==4953 [2025-04-07 15:14:22] Production.ERROR: pbx CDR StartTime 2025-04-07 12:14:06 - End Time 2025-04-07 15:14:06 [2025-04-07 15:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855708', 'tblTempUsageDetail_20' ) start [2025-04-07 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855708', 'tblTempUsageDetail_20' ) end [2025-04-07 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855708', 'tblTempVendorCDR_20' ) start [2025-04-07 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855708', 'tblTempVendorCDR_20' ) end [2025-04-07 15:14:22] Production.INFO: ProcessCDR(1,14855708,1,1,2) [2025-04-07 15:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855708', 'tblTempUsageDetail_20' ) start [2025-04-07 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855708', 'tblTempUsageDetail_20' ) end [2025-04-07 15:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:14:27] Production.INFO: ==28962== Releasing lock... [2025-04-07 15:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:14:27] Production.INFO: 65 MB #Memory Used# [2025-04-07 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:15:05 [end_date_ymd] => 2025-04-07 15:15:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:15:05' and `end` < '2025-04-07 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-04-07 15:15:19] Production.INFO: count ==4931 [2025-04-07 15:15:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:15:05 - End Time 2025-04-07 15:15:05 [2025-04-07 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855713', 'tblTempUsageDetail_20' ) start [2025-04-07 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855713', 'tblTempUsageDetail_20' ) end [2025-04-07 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855713', 'tblTempVendorCDR_20' ) start [2025-04-07 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855713', 'tblTempVendorCDR_20' ) end [2025-04-07 15:15:22] Production.INFO: ProcessCDR(1,14855713,1,1,2) [2025-04-07 15:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855713', 'tblTempUsageDetail_20' ) start [2025-04-07 15:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855713', 'tblTempUsageDetail_20' ) end [2025-04-07 15:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:15:27] Production.INFO: ==29078== Releasing lock... [2025-04-07 15:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:15:27] Production.INFO: 65 MB #Memory Used# [2025-04-07 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:16:05 [end_date_ymd] => 2025-04-07 15:16:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:16:05' and `end` < '2025-04-07 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-04-07 15:16:19] Production.INFO: count ==4906 [2025-04-07 15:16:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:16:05 - End Time 2025-04-07 15:16:05 [2025-04-07 15:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855718', 'tblTempUsageDetail_20' ) start [2025-04-07 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855718', 'tblTempUsageDetail_20' ) end [2025-04-07 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855718', 'tblTempVendorCDR_20' ) start [2025-04-07 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855718', 'tblTempVendorCDR_20' ) end [2025-04-07 15:16:22] Production.INFO: ProcessCDR(1,14855718,1,1,2) [2025-04-07 15:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855718', 'tblTempUsageDetail_20' ) start [2025-04-07 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855718', 'tblTempUsageDetail_20' ) end [2025-04-07 15:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:16:27] Production.INFO: ==29191== Releasing lock... [2025-04-07 15:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:16:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-07 15:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:17:06 [end_date_ymd] => 2025-04-07 15:17:06 [RateCDR] => 1 ) [2025-04-07 15: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-04-07 12:17:06' and `end` < '2025-04-07 15: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-04-07 15:17:20] Production.INFO: count ==4884 [2025-04-07 15:17:22] Production.ERROR: pbx CDR StartTime 2025-04-07 12:17:06 - End Time 2025-04-07 15:17:06 [2025-04-07 15:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855723', 'tblTempUsageDetail_20' ) start [2025-04-07 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855723', 'tblTempUsageDetail_20' ) end [2025-04-07 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855723', 'tblTempVendorCDR_20' ) start [2025-04-07 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855723', 'tblTempVendorCDR_20' ) end [2025-04-07 15:17:22] Production.INFO: ProcessCDR(1,14855723,1,1,2) [2025-04-07 15:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855723', 'tblTempUsageDetail_20' ) start [2025-04-07 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855723', 'tblTempUsageDetail_20' ) end [2025-04-07 15:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:17:27] Production.INFO: ==29273== Releasing lock... [2025-04-07 15:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:17:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-07 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:18:05 [end_date_ymd] => 2025-04-07 15:18:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:18:05' and `end` < '2025-04-07 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-04-07 15:18:19] Production.INFO: count ==4872 [2025-04-07 15:18:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:18:05 - End Time 2025-04-07 15:18:05 [2025-04-07 15:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855728', 'tblTempUsageDetail_20' ) start [2025-04-07 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855728', 'tblTempUsageDetail_20' ) end [2025-04-07 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855728', 'tblTempVendorCDR_20' ) start [2025-04-07 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855728', 'tblTempVendorCDR_20' ) end [2025-04-07 15:18:21] Production.INFO: ProcessCDR(1,14855728,1,1,2) [2025-04-07 15:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855728', 'tblTempUsageDetail_20' ) start [2025-04-07 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855728', 'tblTempUsageDetail_20' ) end [2025-04-07 15:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:18:27] Production.INFO: ==29342== Releasing lock... [2025-04-07 15:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:18:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-07 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:19:05 [end_date_ymd] => 2025-04-07 15:19:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:19:05' and `end` < '2025-04-07 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-04-07 15:19:19] Production.INFO: count ==4887 [2025-04-07 15:19:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:19:05 - End Time 2025-04-07 15:19:05 [2025-04-07 15:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855733', 'tblTempUsageDetail_20' ) start [2025-04-07 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855733', 'tblTempUsageDetail_20' ) end [2025-04-07 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855733', 'tblTempVendorCDR_20' ) start [2025-04-07 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855733', 'tblTempVendorCDR_20' ) end [2025-04-07 15:19:22] Production.INFO: ProcessCDR(1,14855733,1,1,2) [2025-04-07 15:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855733', 'tblTempUsageDetail_20' ) start [2025-04-07 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855733', 'tblTempUsageDetail_20' ) end [2025-04-07 15:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:19:27] Production.INFO: ==29416== Releasing lock... [2025-04-07 15:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:19:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-07 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:20:06 [end_date_ymd] => 2025-04-07 15:20:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:20:06' and `end` < '2025-04-07 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-04-07 15:20:20] Production.INFO: count ==4905 [2025-04-07 15:20:22] Production.ERROR: pbx CDR StartTime 2025-04-07 12:20:06 - End Time 2025-04-07 15:20:06 [2025-04-07 15:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855738', 'tblTempUsageDetail_20' ) start [2025-04-07 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855738', 'tblTempUsageDetail_20' ) end [2025-04-07 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855738', 'tblTempVendorCDR_20' ) start [2025-04-07 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855738', 'tblTempVendorCDR_20' ) end [2025-04-07 15:20:22] Production.INFO: ProcessCDR(1,14855738,1,1,2) [2025-04-07 15:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855738', 'tblTempUsageDetail_20' ) start [2025-04-07 15:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855738', 'tblTempUsageDetail_20' ) end [2025-04-07 15:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:20:27] Production.INFO: ==29495== Releasing lock... [2025-04-07 15:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:20:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-07 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:21:05 [end_date_ymd] => 2025-04-07 15:21:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:21:05' and `end` < '2025-04-07 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-04-07 15:21:19] Production.INFO: count ==4899 [2025-04-07 15:21:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:21:05 - End Time 2025-04-07 15:21:05 [2025-04-07 15:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855744', 'tblTempUsageDetail_20' ) start [2025-04-07 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855744', 'tblTempUsageDetail_20' ) end [2025-04-07 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855744', 'tblTempVendorCDR_20' ) start [2025-04-07 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855744', 'tblTempVendorCDR_20' ) end [2025-04-07 15:21:21] Production.INFO: ProcessCDR(1,14855744,1,1,2) [2025-04-07 15:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855744', 'tblTempUsageDetail_20' ) start [2025-04-07 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855744', 'tblTempUsageDetail_20' ) end [2025-04-07 15:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:21:26] Production.INFO: ==29645== Releasing lock... [2025-04-07 15:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:21:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-07 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:22:05 [end_date_ymd] => 2025-04-07 15:22:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:22:05' and `end` < '2025-04-07 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-04-07 15:22:19] Production.INFO: count ==4895 [2025-04-07 15:22:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:22:05 - End Time 2025-04-07 15:22:05 [2025-04-07 15:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855749', 'tblTempUsageDetail_20' ) start [2025-04-07 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855749', 'tblTempUsageDetail_20' ) end [2025-04-07 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855749', 'tblTempVendorCDR_20' ) start [2025-04-07 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855749', 'tblTempVendorCDR_20' ) end [2025-04-07 15:22:21] Production.INFO: ProcessCDR(1,14855749,1,1,2) [2025-04-07 15:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855749', 'tblTempUsageDetail_20' ) start [2025-04-07 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855749', 'tblTempUsageDetail_20' ) end [2025-04-07 15:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:22:27] Production.INFO: ==29747== Releasing lock... [2025-04-07 15:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:22:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-07 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:23:05 [end_date_ymd] => 2025-04-07 15:23:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:23:05' and `end` < '2025-04-07 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-04-07 15:23:19] Production.INFO: count ==4883 [2025-04-07 15:23:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:23:05 - End Time 2025-04-07 15:23:05 [2025-04-07 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855754', 'tblTempUsageDetail_20' ) start [2025-04-07 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855754', 'tblTempUsageDetail_20' ) end [2025-04-07 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855754', 'tblTempVendorCDR_20' ) start [2025-04-07 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855754', 'tblTempVendorCDR_20' ) end [2025-04-07 15:23:22] Production.INFO: ProcessCDR(1,14855754,1,1,2) [2025-04-07 15:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855754', 'tblTempUsageDetail_20' ) start [2025-04-07 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855754', 'tblTempUsageDetail_20' ) end [2025-04-07 15:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:23:26] Production.INFO: ==29839== Releasing lock... [2025-04-07 15:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:23:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-07 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:24:06 [end_date_ymd] => 2025-04-07 15:24:06 [RateCDR] => 1 ) [2025-04-07 15:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 12:24:06' and `end` < '2025-04-07 15:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 15:24:19] Production.INFO: count ==4884 [2025-04-07 15:24:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:24:06 - End Time 2025-04-07 15:24:06 [2025-04-07 15:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855759', 'tblTempUsageDetail_20' ) start [2025-04-07 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855759', 'tblTempUsageDetail_20' ) end [2025-04-07 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855759', 'tblTempVendorCDR_20' ) start [2025-04-07 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855759', 'tblTempVendorCDR_20' ) end [2025-04-07 15:24:22] Production.INFO: ProcessCDR(1,14855759,1,1,2) [2025-04-07 15:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855759', 'tblTempUsageDetail_20' ) start [2025-04-07 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855759', 'tblTempUsageDetail_20' ) end [2025-04-07 15:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:24:27] Production.INFO: ==29914== Releasing lock... [2025-04-07 15:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:24:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-07 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:25:06 [end_date_ymd] => 2025-04-07 15:25:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:25:06' and `end` < '2025-04-07 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-04-07 15:25:19] Production.INFO: count ==4862 [2025-04-07 15:25:22] Production.ERROR: pbx CDR StartTime 2025-04-07 12:25:06 - End Time 2025-04-07 15:25:06 [2025-04-07 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855764', 'tblTempUsageDetail_20' ) start [2025-04-07 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855764', 'tblTempUsageDetail_20' ) end [2025-04-07 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855764', 'tblTempVendorCDR_20' ) start [2025-04-07 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855764', 'tblTempVendorCDR_20' ) end [2025-04-07 15:25:22] Production.INFO: ProcessCDR(1,14855764,1,1,2) [2025-04-07 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855764', 'tblTempUsageDetail_20' ) start [2025-04-07 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855764', 'tblTempUsageDetail_20' ) end [2025-04-07 15:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:25:27] Production.INFO: ==29990== Releasing lock... [2025-04-07 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:25:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-07 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:26:05 [end_date_ymd] => 2025-04-07 15:26:05 [RateCDR] => 1 ) [2025-04-07 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 12:26:05' and `end` < '2025-04-07 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 15:26:19] Production.INFO: count ==4862 [2025-04-07 15:26:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:26:05 - End Time 2025-04-07 15:26:05 [2025-04-07 15:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855769', 'tblTempUsageDetail_20' ) start [2025-04-07 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855769', 'tblTempUsageDetail_20' ) end [2025-04-07 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855769', 'tblTempVendorCDR_20' ) start [2025-04-07 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855769', 'tblTempVendorCDR_20' ) end [2025-04-07 15:26:21] Production.INFO: ProcessCDR(1,14855769,1,1,2) [2025-04-07 15:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855769', 'tblTempUsageDetail_20' ) start [2025-04-07 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855769', 'tblTempUsageDetail_20' ) end [2025-04-07 15:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:26:26] Production.INFO: ==30066== Releasing lock... [2025-04-07 15:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:26:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-07 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:27:05 [end_date_ymd] => 2025-04-07 15:27:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:27:05' and `end` < '2025-04-07 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-04-07 15:27:19] Production.INFO: count ==4861 [2025-04-07 15:27:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:27:05 - End Time 2025-04-07 15:27:05 [2025-04-07 15:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855774', 'tblTempUsageDetail_20' ) start [2025-04-07 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855774', 'tblTempUsageDetail_20' ) end [2025-04-07 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855774', 'tblTempVendorCDR_20' ) start [2025-04-07 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855774', 'tblTempVendorCDR_20' ) end [2025-04-07 15:27:22] Production.INFO: ProcessCDR(1,14855774,1,1,2) [2025-04-07 15:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855774', 'tblTempUsageDetail_20' ) start [2025-04-07 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855774', 'tblTempUsageDetail_20' ) end [2025-04-07 15:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:27:27] Production.INFO: ==30138== Releasing lock... [2025-04-07 15:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:27:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-07 15:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:28:06 [end_date_ymd] => 2025-04-07 15:28:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:28:06' and `end` < '2025-04-07 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-04-07 15:28:20] Production.INFO: count ==4869 [2025-04-07 15:28:22] Production.ERROR: pbx CDR StartTime 2025-04-07 12:28:06 - End Time 2025-04-07 15:28:06 [2025-04-07 15:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855779', 'tblTempUsageDetail_20' ) start [2025-04-07 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855779', 'tblTempUsageDetail_20' ) end [2025-04-07 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855779', 'tblTempVendorCDR_20' ) start [2025-04-07 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855779', 'tblTempVendorCDR_20' ) end [2025-04-07 15:28:22] Production.INFO: ProcessCDR(1,14855779,1,1,2) [2025-04-07 15:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855779', 'tblTempUsageDetail_20' ) start [2025-04-07 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855779', 'tblTempUsageDetail_20' ) end [2025-04-07 15:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:28:27] Production.INFO: ==30218== Releasing lock... [2025-04-07 15:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:28:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-07 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:29:05 [end_date_ymd] => 2025-04-07 15:29:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:29:05' and `end` < '2025-04-07 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-04-07 15:29:19] Production.INFO: count ==4877 [2025-04-07 15:29:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:29:05 - End Time 2025-04-07 15:29:05 [2025-04-07 15:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855784', 'tblTempUsageDetail_20' ) start [2025-04-07 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855784', 'tblTempUsageDetail_20' ) end [2025-04-07 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855784', 'tblTempVendorCDR_20' ) start [2025-04-07 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855784', 'tblTempVendorCDR_20' ) end [2025-04-07 15:29:21] Production.INFO: ProcessCDR(1,14855784,1,1,2) [2025-04-07 15:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855784', 'tblTempUsageDetail_20' ) start [2025-04-07 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855784', 'tblTempUsageDetail_20' ) end [2025-04-07 15:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:29:26] Production.INFO: ==30288== Releasing lock... [2025-04-07 15:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:29:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-07 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:30:06 [end_date_ymd] => 2025-04-07 15:30:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:30:06' and `end` < '2025-04-07 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-04-07 15:30:19] Production.INFO: count ==4871 [2025-04-07 15:30:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:30:06 - End Time 2025-04-07 15:30:06 [2025-04-07 15:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855790', 'tblTempUsageDetail_20' ) start [2025-04-07 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855790', 'tblTempUsageDetail_20' ) end [2025-04-07 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855790', 'tblTempVendorCDR_20' ) start [2025-04-07 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855790', 'tblTempVendorCDR_20' ) end [2025-04-07 15:30:22] Production.INFO: ProcessCDR(1,14855790,1,1,2) [2025-04-07 15:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855790', 'tblTempUsageDetail_20' ) start [2025-04-07 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855790', 'tblTempUsageDetail_20' ) end [2025-04-07 15:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:30:27] Production.INFO: ==30368== Releasing lock... [2025-04-07 15:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:30:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-07 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:31:05 [end_date_ymd] => 2025-04-07 15:31:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:31:05' and `end` < '2025-04-07 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-04-07 15:31:19] Production.INFO: count ==4936 [2025-04-07 15:31:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:31:05 - End Time 2025-04-07 15:31:05 [2025-04-07 15:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855795', 'tblTempUsageDetail_20' ) start [2025-04-07 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855795', 'tblTempUsageDetail_20' ) end [2025-04-07 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855795', 'tblTempVendorCDR_20' ) start [2025-04-07 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855795', 'tblTempVendorCDR_20' ) end [2025-04-07 15:31:21] Production.INFO: ProcessCDR(1,14855795,1,1,2) [2025-04-07 15:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855795', 'tblTempUsageDetail_20' ) start [2025-04-07 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855795', 'tblTempUsageDetail_20' ) end [2025-04-07 15:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:31:26] Production.INFO: ==30448== Releasing lock... [2025-04-07 15:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:31:26] Production.INFO: 65 MB #Memory Used# [2025-04-07 15:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:32:06 [end_date_ymd] => 2025-04-07 15:32:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:32:06' and `end` < '2025-04-07 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-04-07 15:32:20] Production.INFO: count ==4941 [2025-04-07 15:32:22] Production.ERROR: pbx CDR StartTime 2025-04-07 12:32:06 - End Time 2025-04-07 15:32:06 [2025-04-07 15:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855800', 'tblTempUsageDetail_20' ) start [2025-04-07 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855800', 'tblTempUsageDetail_20' ) end [2025-04-07 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855800', 'tblTempVendorCDR_20' ) start [2025-04-07 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855800', 'tblTempVendorCDR_20' ) end [2025-04-07 15:32:22] Production.INFO: ProcessCDR(1,14855800,1,1,2) [2025-04-07 15:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855800', 'tblTempUsageDetail_20' ) start [2025-04-07 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855800', 'tblTempUsageDetail_20' ) end [2025-04-07 15:32:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:32:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:32:28] Production.INFO: ==30524== Releasing lock... [2025-04-07 15:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:32:28] Production.INFO: 65 MB #Memory Used# [2025-04-07 15:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:33:06 [end_date_ymd] => 2025-04-07 15:33:06 [RateCDR] => 1 ) [2025-04-07 15:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 12:33:06' and `end` < '2025-04-07 15:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 15:33:20] Production.INFO: count ==4953 [2025-04-07 15:33:22] Production.ERROR: pbx CDR StartTime 2025-04-07 12:33:06 - End Time 2025-04-07 15:33:06 [2025-04-07 15:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855805', 'tblTempUsageDetail_20' ) start [2025-04-07 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855805', 'tblTempUsageDetail_20' ) end [2025-04-07 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855805', 'tblTempVendorCDR_20' ) start [2025-04-07 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855805', 'tblTempVendorCDR_20' ) end [2025-04-07 15:33:22] Production.INFO: ProcessCDR(1,14855805,1,1,2) [2025-04-07 15:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855805', 'tblTempUsageDetail_20' ) start [2025-04-07 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855805', 'tblTempUsageDetail_20' ) end [2025-04-07 15:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:33:27] Production.INFO: ==30599== Releasing lock... [2025-04-07 15:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:33:27] Production.INFO: 65 MB #Memory Used# [2025-04-07 15:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:34:04 [end_date_ymd] => 2025-04-07 15:34:04 [RateCDR] => 1 ) [2025-04-07 15: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-04-07 12:34:04' and `end` < '2025-04-07 15: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-04-07 15:34:19] Production.INFO: count ==4971 [2025-04-07 15:34:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:34:04 - End Time 2025-04-07 15:34:04 [2025-04-07 15:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855810', 'tblTempUsageDetail_20' ) start [2025-04-07 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855810', 'tblTempUsageDetail_20' ) end [2025-04-07 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855810', 'tblTempVendorCDR_20' ) start [2025-04-07 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855810', 'tblTempVendorCDR_20' ) end [2025-04-07 15:34:21] Production.INFO: ProcessCDR(1,14855810,1,1,2) [2025-04-07 15:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855810', 'tblTempUsageDetail_20' ) start [2025-04-07 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855810', 'tblTempUsageDetail_20' ) end [2025-04-07 15:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:34:26] Production.INFO: ==30670== Releasing lock... [2025-04-07 15:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:34:26] Production.INFO: 65.25 MB #Memory Used# [2025-04-07 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:35:05 [end_date_ymd] => 2025-04-07 15:35:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:35:05' and `end` < '2025-04-07 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-04-07 15:35:20] Production.INFO: count ==4964 [2025-04-07 15:35:22] Production.ERROR: pbx CDR StartTime 2025-04-07 12:35:05 - End Time 2025-04-07 15:35:05 [2025-04-07 15:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855815', 'tblTempUsageDetail_20' ) start [2025-04-07 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855815', 'tblTempUsageDetail_20' ) end [2025-04-07 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855815', 'tblTempVendorCDR_20' ) start [2025-04-07 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855815', 'tblTempVendorCDR_20' ) end [2025-04-07 15:35:22] Production.INFO: ProcessCDR(1,14855815,1,1,2) [2025-04-07 15:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855815', 'tblTempUsageDetail_20' ) start [2025-04-07 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855815', 'tblTempUsageDetail_20' ) end [2025-04-07 15:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:35:27] Production.INFO: ==30753== Releasing lock... [2025-04-07 15:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:35:27] Production.INFO: 65.25 MB #Memory Used# [2025-04-07 15:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:36:06 [end_date_ymd] => 2025-04-07 15:36:06 [RateCDR] => 1 ) [2025-04-07 15:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 12:36:06' and `end` < '2025-04-07 15:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 15:36:20] Production.INFO: count ==4967 [2025-04-07 15:36:22] Production.ERROR: pbx CDR StartTime 2025-04-07 12:36:06 - End Time 2025-04-07 15:36:06 [2025-04-07 15:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855820', 'tblTempUsageDetail_20' ) start [2025-04-07 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855820', 'tblTempUsageDetail_20' ) end [2025-04-07 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855820', 'tblTempVendorCDR_20' ) start [2025-04-07 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855820', 'tblTempVendorCDR_20' ) end [2025-04-07 15:36:22] Production.INFO: ProcessCDR(1,14855820,1,1,2) [2025-04-07 15:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855820', 'tblTempUsageDetail_20' ) start [2025-04-07 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855820', 'tblTempUsageDetail_20' ) end [2025-04-07 15:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:36:27] Production.INFO: ==30829== Releasing lock... [2025-04-07 15:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:36:27] Production.INFO: 65.25 MB #Memory Used# [2025-04-07 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:37:05 [end_date_ymd] => 2025-04-07 15:37:05 [RateCDR] => 1 ) [2025-04-07 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 12:37:05' and `end` < '2025-04-07 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 15:37:19] Production.INFO: count ==4981 [2025-04-07 15:37:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:37:05 - End Time 2025-04-07 15:37:05 [2025-04-07 15:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855825', 'tblTempUsageDetail_20' ) start [2025-04-07 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855825', 'tblTempUsageDetail_20' ) end [2025-04-07 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855825', 'tblTempVendorCDR_20' ) start [2025-04-07 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855825', 'tblTempVendorCDR_20' ) end [2025-04-07 15:37:22] Production.INFO: ProcessCDR(1,14855825,1,1,2) [2025-04-07 15:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855825', 'tblTempUsageDetail_20' ) start [2025-04-07 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855825', 'tblTempUsageDetail_20' ) end [2025-04-07 15:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:37:27] Production.INFO: ==30940== Releasing lock... [2025-04-07 15:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:37:27] Production.INFO: 65.25 MB #Memory Used# [2025-04-07 15:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:38:06 [end_date_ymd] => 2025-04-07 15:38:06 [RateCDR] => 1 ) [2025-04-07 15:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 12:38:06' and `end` < '2025-04-07 15:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 15:38:20] Production.INFO: count ==4996 [2025-04-07 15:38:22] Production.ERROR: pbx CDR StartTime 2025-04-07 12:38:06 - End Time 2025-04-07 15:38:06 [2025-04-07 15:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855830', 'tblTempUsageDetail_20' ) start [2025-04-07 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855830', 'tblTempUsageDetail_20' ) end [2025-04-07 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855830', 'tblTempVendorCDR_20' ) start [2025-04-07 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855830', 'tblTempVendorCDR_20' ) end [2025-04-07 15:38:22] Production.INFO: ProcessCDR(1,14855830,1,1,2) [2025-04-07 15:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855830', 'tblTempUsageDetail_20' ) start [2025-04-07 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855830', 'tblTempUsageDetail_20' ) end [2025-04-07 15:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:38:27] Production.INFO: ==31015== Releasing lock... [2025-04-07 15:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:38:27] Production.INFO: 65.5 MB #Memory Used# [2025-04-07 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:39:05 [end_date_ymd] => 2025-04-07 15:39:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:39:05' and `end` < '2025-04-07 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-04-07 15:39:19] Production.INFO: count ==5024 [2025-04-07 15:39:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:39:05 - End Time 2025-04-07 15:39:05 [2025-04-07 15:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855835', 'tblTempUsageDetail_20' ) start [2025-04-07 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855835', 'tblTempUsageDetail_20' ) end [2025-04-07 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855835', 'tblTempVendorCDR_20' ) start [2025-04-07 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855835', 'tblTempVendorCDR_20' ) end [2025-04-07 15:39:21] Production.INFO: ProcessCDR(1,14855835,1,1,2) [2025-04-07 15:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855835', 'tblTempUsageDetail_20' ) start [2025-04-07 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855835', 'tblTempUsageDetail_20' ) end [2025-04-07 15:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:39:27] Production.INFO: ==31090== Releasing lock... [2025-04-07 15:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:39:27] Production.INFO: 65.5 MB #Memory Used# [2025-04-07 15:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:40:07 [end_date_ymd] => 2025-04-07 15:40:07 [RateCDR] => 1 ) [2025-04-07 15: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-04-07 12:40:07' and `end` < '2025-04-07 15: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-04-07 15:40:21] Production.INFO: count ==5027 [2025-04-07 15:40:23] Production.ERROR: pbx CDR StartTime 2025-04-07 12:40:07 - End Time 2025-04-07 15:40:07 [2025-04-07 15:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855840', 'tblTempUsageDetail_20' ) start [2025-04-07 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855840', 'tblTempUsageDetail_20' ) end [2025-04-07 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855840', 'tblTempVendorCDR_20' ) start [2025-04-07 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855840', 'tblTempVendorCDR_20' ) end [2025-04-07 15:40:23] Production.INFO: ProcessCDR(1,14855840,1,1,2) [2025-04-07 15:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855840', 'tblTempUsageDetail_20' ) start [2025-04-07 15:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855840', 'tblTempUsageDetail_20' ) end [2025-04-07 15:40:29] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:40:29] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:40:29] Production.INFO: ==31165== Releasing lock... [2025-04-07 15:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:40:29] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:41:05 [end_date_ymd] => 2025-04-07 15:41:05 [RateCDR] => 1 ) [2025-04-07 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 12:41:05' and `end` < '2025-04-07 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 15:41:19] Production.INFO: count ==5070 [2025-04-07 15:41:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:41:05 - End Time 2025-04-07 15:41:05 [2025-04-07 15:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855846', 'tblTempUsageDetail_20' ) start [2025-04-07 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855846', 'tblTempUsageDetail_20' ) end [2025-04-07 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855846', 'tblTempVendorCDR_20' ) start [2025-04-07 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855846', 'tblTempVendorCDR_20' ) end [2025-04-07 15:41:21] Production.INFO: ProcessCDR(1,14855846,1,1,2) [2025-04-07 15:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855846', 'tblTempUsageDetail_20' ) start [2025-04-07 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855846', 'tblTempUsageDetail_20' ) end [2025-04-07 15:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:41:26] Production.INFO: ==31240== Releasing lock... [2025-04-07 15:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:41:26] Production.INFO: 66 MB #Memory Used# [2025-04-07 15:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:42:06 [end_date_ymd] => 2025-04-07 15:42:06 [RateCDR] => 1 ) [2025-04-07 15: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-04-07 12:42:06' and `end` < '2025-04-07 15: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-04-07 15:42:20] Production.INFO: count ==5078 [2025-04-07 15:42:22] Production.ERROR: pbx CDR StartTime 2025-04-07 12:42:06 - End Time 2025-04-07 15:42:06 [2025-04-07 15:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855851', 'tblTempUsageDetail_20' ) start [2025-04-07 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855851', 'tblTempUsageDetail_20' ) end [2025-04-07 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855851', 'tblTempVendorCDR_20' ) start [2025-04-07 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855851', 'tblTempVendorCDR_20' ) end [2025-04-07 15:42:22] Production.INFO: ProcessCDR(1,14855851,1,1,2) [2025-04-07 15:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855851', 'tblTempUsageDetail_20' ) start [2025-04-07 15:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855851', 'tblTempUsageDetail_20' ) end [2025-04-07 15:42:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:42:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:42:28] Production.INFO: ==31314== Releasing lock... [2025-04-07 15:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:42:28] Production.INFO: 66 MB #Memory Used# [2025-04-07 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:43:05 [end_date_ymd] => 2025-04-07 15:43:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:43:05' and `end` < '2025-04-07 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-04-07 15:43:19] Production.INFO: count ==5086 [2025-04-07 15:43:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:43:05 - End Time 2025-04-07 15:43:05 [2025-04-07 15:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855856', 'tblTempUsageDetail_20' ) start [2025-04-07 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855856', 'tblTempUsageDetail_20' ) end [2025-04-07 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855856', 'tblTempVendorCDR_20' ) start [2025-04-07 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855856', 'tblTempVendorCDR_20' ) end [2025-04-07 15:43:21] Production.INFO: ProcessCDR(1,14855856,1,1,2) [2025-04-07 15:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855856', 'tblTempUsageDetail_20' ) start [2025-04-07 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855856', 'tblTempUsageDetail_20' ) end [2025-04-07 15:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:43:26] Production.INFO: ==31386== Releasing lock... [2025-04-07 15:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:43:26] Production.INFO: 66 MB #Memory Used# [2025-04-07 15:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:44:06 [end_date_ymd] => 2025-04-07 15:44:06 [RateCDR] => 1 ) [2025-04-07 15: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-04-07 12:44:06' and `end` < '2025-04-07 15: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-04-07 15:44:19] Production.INFO: count ==5115 [2025-04-07 15:44:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:44:06 - End Time 2025-04-07 15:44:06 [2025-04-07 15:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855861', 'tblTempUsageDetail_20' ) start [2025-04-07 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855861', 'tblTempUsageDetail_20' ) end [2025-04-07 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855861', 'tblTempVendorCDR_20' ) start [2025-04-07 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855861', 'tblTempVendorCDR_20' ) end [2025-04-07 15:44:21] Production.INFO: ProcessCDR(1,14855861,1,1,2) [2025-04-07 15:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855861', 'tblTempUsageDetail_20' ) start [2025-04-07 15:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855861', 'tblTempUsageDetail_20' ) end [2025-04-07 15:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:44:26] Production.INFO: ==31462== Releasing lock... [2025-04-07 15:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:44:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-07 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:45:05 [end_date_ymd] => 2025-04-07 15:45:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:45:05' and `end` < '2025-04-07 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-04-07 15:45:19] Production.INFO: count ==5114 [2025-04-07 15:45:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:45:05 - End Time 2025-04-07 15:45:05 [2025-04-07 15:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855866', 'tblTempUsageDetail_20' ) start [2025-04-07 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855866', 'tblTempUsageDetail_20' ) end [2025-04-07 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855866', 'tblTempVendorCDR_20' ) start [2025-04-07 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855866', 'tblTempVendorCDR_20' ) end [2025-04-07 15:45:21] Production.INFO: ProcessCDR(1,14855866,1,1,2) [2025-04-07 15:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855866', 'tblTempUsageDetail_20' ) start [2025-04-07 15:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855866', 'tblTempUsageDetail_20' ) end [2025-04-07 15:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:45:27] Production.INFO: ==31536== Releasing lock... [2025-04-07 15:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:45:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-07 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:46:06 [end_date_ymd] => 2025-04-07 15:46:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:46:06' and `end` < '2025-04-07 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-04-07 15:46:20] Production.INFO: count ==5095 [2025-04-07 15:46:22] Production.ERROR: pbx CDR StartTime 2025-04-07 12:46:06 - End Time 2025-04-07 15:46:06 [2025-04-07 15:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855871', 'tblTempUsageDetail_20' ) start [2025-04-07 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855871', 'tblTempUsageDetail_20' ) end [2025-04-07 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855871', 'tblTempVendorCDR_20' ) start [2025-04-07 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855871', 'tblTempVendorCDR_20' ) end [2025-04-07 15:46:22] Production.INFO: ProcessCDR(1,14855871,1,1,2) [2025-04-07 15:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855871', 'tblTempUsageDetail_20' ) start [2025-04-07 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855871', 'tblTempUsageDetail_20' ) end [2025-04-07 15:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:46:27] Production.INFO: ==31614== Releasing lock... [2025-04-07 15:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:46:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-07 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:47:05 [end_date_ymd] => 2025-04-07 15:47:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:47:05' and `end` < '2025-04-07 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-04-07 15:47:19] Production.INFO: count ==5093 [2025-04-07 15:47:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:47:05 - End Time 2025-04-07 15:47:05 [2025-04-07 15:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855876', 'tblTempUsageDetail_20' ) start [2025-04-07 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855876', 'tblTempUsageDetail_20' ) end [2025-04-07 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855876', 'tblTempVendorCDR_20' ) start [2025-04-07 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855876', 'tblTempVendorCDR_20' ) end [2025-04-07 15:47:21] Production.INFO: ProcessCDR(1,14855876,1,1,2) [2025-04-07 15:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855876', 'tblTempUsageDetail_20' ) start [2025-04-07 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855876', 'tblTempUsageDetail_20' ) end [2025-04-07 15:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:47:26] Production.INFO: ==31686== Releasing lock... [2025-04-07 15:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:47:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-07 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:48:05 [end_date_ymd] => 2025-04-07 15:48:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:48:05' and `end` < '2025-04-07 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-04-07 15:48:19] Production.INFO: count ==5089 [2025-04-07 15:48:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:48:05 - End Time 2025-04-07 15:48:05 [2025-04-07 15:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855881', 'tblTempUsageDetail_20' ) start [2025-04-07 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855881', 'tblTempUsageDetail_20' ) end [2025-04-07 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855881', 'tblTempVendorCDR_20' ) start [2025-04-07 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855881', 'tblTempVendorCDR_20' ) end [2025-04-07 15:48:21] Production.INFO: ProcessCDR(1,14855881,1,1,2) [2025-04-07 15:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855881', 'tblTempUsageDetail_20' ) start [2025-04-07 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855881', 'tblTempUsageDetail_20' ) end [2025-04-07 15:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:48:27] Production.INFO: ==31763== Releasing lock... [2025-04-07 15:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:48:27] Production.INFO: 66 MB #Memory Used# [2025-04-07 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:49:05 [end_date_ymd] => 2025-04-07 15:49:05 [RateCDR] => 1 ) [2025-04-07 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 12:49:05' and `end` < '2025-04-07 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 15:49:19] Production.INFO: count ==5092 [2025-04-07 15:49:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:49:05 - End Time 2025-04-07 15:49:05 [2025-04-07 15:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855886', 'tblTempUsageDetail_20' ) start [2025-04-07 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855886', 'tblTempUsageDetail_20' ) end [2025-04-07 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855886', 'tblTempVendorCDR_20' ) start [2025-04-07 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855886', 'tblTempVendorCDR_20' ) end [2025-04-07 15:49:21] Production.INFO: ProcessCDR(1,14855886,1,1,2) [2025-04-07 15:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855886', 'tblTempUsageDetail_20' ) start [2025-04-07 15:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855886', 'tblTempUsageDetail_20' ) end [2025-04-07 15:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:49:26] Production.INFO: ==31834== Releasing lock... [2025-04-07 15:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:49:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-07 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:50:06 [end_date_ymd] => 2025-04-07 15:50:06 [RateCDR] => 1 ) [2025-04-07 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 12:50:06' and `end` < '2025-04-07 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 15:50:20] Production.INFO: count ==5089 [2025-04-07 15:50:22] Production.ERROR: pbx CDR StartTime 2025-04-07 12:50:06 - End Time 2025-04-07 15:50:06 [2025-04-07 15:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855892', 'tblTempUsageDetail_20' ) start [2025-04-07 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855892', 'tblTempUsageDetail_20' ) end [2025-04-07 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855892', 'tblTempVendorCDR_20' ) start [2025-04-07 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855892', 'tblTempVendorCDR_20' ) end [2025-04-07 15:50:22] Production.INFO: ProcessCDR(1,14855892,1,1,2) [2025-04-07 15:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855892', 'tblTempUsageDetail_20' ) start [2025-04-07 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855892', 'tblTempUsageDetail_20' ) end [2025-04-07 15:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:50:27] Production.INFO: ==31911== Releasing lock... [2025-04-07 15:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:50:27] Production.INFO: 66 MB #Memory Used# [2025-04-07 15:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:51:06 [end_date_ymd] => 2025-04-07 15:51:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:51:06' and `end` < '2025-04-07 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-04-07 15:51:20] Production.INFO: count ==5091 [2025-04-07 15:51:22] Production.ERROR: pbx CDR StartTime 2025-04-07 12:51:06 - End Time 2025-04-07 15:51:06 [2025-04-07 15:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855897', 'tblTempUsageDetail_20' ) start [2025-04-07 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855897', 'tblTempUsageDetail_20' ) end [2025-04-07 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855897', 'tblTempVendorCDR_20' ) start [2025-04-07 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855897', 'tblTempVendorCDR_20' ) end [2025-04-07 15:51:23] Production.INFO: ProcessCDR(1,14855897,1,1,2) [2025-04-07 15:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855897', 'tblTempUsageDetail_20' ) start [2025-04-07 15:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855897', 'tblTempUsageDetail_20' ) end [2025-04-07 15:51:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:51:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:51:28] Production.INFO: ==31989== Releasing lock... [2025-04-07 15:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:51:28] Production.INFO: 66.25 MB #Memory Used# [2025-04-07 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:52:05 [end_date_ymd] => 2025-04-07 15:52:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:52:05' and `end` < '2025-04-07 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-04-07 15:52:19] Production.INFO: count ==5086 [2025-04-07 15:52:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:52:05 - End Time 2025-04-07 15:52:05 [2025-04-07 15:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855902', 'tblTempUsageDetail_20' ) start [2025-04-07 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855902', 'tblTempUsageDetail_20' ) end [2025-04-07 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855902', 'tblTempVendorCDR_20' ) start [2025-04-07 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855902', 'tblTempVendorCDR_20' ) end [2025-04-07 15:52:21] Production.INFO: ProcessCDR(1,14855902,1,1,2) [2025-04-07 15:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855902', 'tblTempUsageDetail_20' ) start [2025-04-07 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855902', 'tblTempUsageDetail_20' ) end [2025-04-07 15:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:52:27] Production.INFO: ==32102== Releasing lock... [2025-04-07 15:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:52:27] Production.INFO: 66 MB #Memory Used# [2025-04-07 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:53:05 [end_date_ymd] => 2025-04-07 15:53:05 [RateCDR] => 1 ) [2025-04-07 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 12:53:05' and `end` < '2025-04-07 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 15:53:19] Production.INFO: count ==5086 [2025-04-07 15:53:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:53:05 - End Time 2025-04-07 15:53:05 [2025-04-07 15:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855907', 'tblTempUsageDetail_20' ) start [2025-04-07 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855907', 'tblTempUsageDetail_20' ) end [2025-04-07 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855907', 'tblTempVendorCDR_20' ) start [2025-04-07 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855907', 'tblTempVendorCDR_20' ) end [2025-04-07 15:53:21] Production.INFO: ProcessCDR(1,14855907,1,1,2) [2025-04-07 15:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855907', 'tblTempUsageDetail_20' ) start [2025-04-07 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855907', 'tblTempUsageDetail_20' ) end [2025-04-07 15:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:53:26] Production.INFO: ==32177== Releasing lock... [2025-04-07 15:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:53:26] Production.INFO: 66 MB #Memory Used# [2025-04-07 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:54:05 [end_date_ymd] => 2025-04-07 15:54:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:54:05' and `end` < '2025-04-07 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-04-07 15:54:19] Production.INFO: count ==5061 [2025-04-07 15:54:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:54:05 - End Time 2025-04-07 15:54:05 [2025-04-07 15:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855912', 'tblTempUsageDetail_20' ) start [2025-04-07 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855912', 'tblTempUsageDetail_20' ) end [2025-04-07 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855912', 'tblTempVendorCDR_20' ) start [2025-04-07 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855912', 'tblTempVendorCDR_20' ) end [2025-04-07 15:54:21] Production.INFO: ProcessCDR(1,14855912,1,1,2) [2025-04-07 15:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855912', 'tblTempUsageDetail_20' ) start [2025-04-07 15:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855912', 'tblTempUsageDetail_20' ) end [2025-04-07 15:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:54:25] Production.INFO: ==32251== Releasing lock... [2025-04-07 15:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:54:25] Production.INFO: 66 MB #Memory Used# [2025-04-07 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:55:06 [end_date_ymd] => 2025-04-07 15:55:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:55:06' and `end` < '2025-04-07 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-04-07 15:55:20] Production.INFO: count ==5057 [2025-04-07 15:55:22] Production.ERROR: pbx CDR StartTime 2025-04-07 12:55:06 - End Time 2025-04-07 15:55:06 [2025-04-07 15:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855917', 'tblTempUsageDetail_20' ) start [2025-04-07 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855917', 'tblTempUsageDetail_20' ) end [2025-04-07 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855917', 'tblTempVendorCDR_20' ) start [2025-04-07 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855917', 'tblTempVendorCDR_20' ) end [2025-04-07 15:55:22] Production.INFO: ProcessCDR(1,14855917,1,1,2) [2025-04-07 15:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855917', 'tblTempUsageDetail_20' ) start [2025-04-07 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855917', 'tblTempUsageDetail_20' ) end [2025-04-07 15:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:55:27] Production.INFO: ==32323== Releasing lock... [2025-04-07 15:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:55:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:56:05 [end_date_ymd] => 2025-04-07 15:56:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:56:05' and `end` < '2025-04-07 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-04-07 15:56:19] Production.INFO: count ==5049 [2025-04-07 15:56:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:56:05 - End Time 2025-04-07 15:56:05 [2025-04-07 15:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855922', 'tblTempUsageDetail_20' ) start [2025-04-07 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855922', 'tblTempUsageDetail_20' ) end [2025-04-07 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855922', 'tblTempVendorCDR_20' ) start [2025-04-07 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855922', 'tblTempVendorCDR_20' ) end [2025-04-07 15:56:21] Production.INFO: ProcessCDR(1,14855922,1,1,2) [2025-04-07 15:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855922', 'tblTempUsageDetail_20' ) start [2025-04-07 15:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855922', 'tblTempUsageDetail_20' ) end [2025-04-07 15:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:56:27] Production.INFO: ==32396== Releasing lock... [2025-04-07 15:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:56:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 15:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:57:06 [end_date_ymd] => 2025-04-07 15:57:06 [RateCDR] => 1 ) [2025-04-07 15: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-04-07 12:57:06' and `end` < '2025-04-07 15: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-04-07 15:57:20] Production.INFO: count ==5039 [2025-04-07 15:57:22] Production.ERROR: pbx CDR StartTime 2025-04-07 12:57:06 - End Time 2025-04-07 15:57:06 [2025-04-07 15:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855927', 'tblTempUsageDetail_20' ) start [2025-04-07 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855927', 'tblTempUsageDetail_20' ) end [2025-04-07 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855927', 'tblTempVendorCDR_20' ) start [2025-04-07 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855927', 'tblTempVendorCDR_20' ) end [2025-04-07 15:57:22] Production.INFO: ProcessCDR(1,14855927,1,1,2) [2025-04-07 15:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855927', 'tblTempUsageDetail_20' ) start [2025-04-07 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855927', 'tblTempUsageDetail_20' ) end [2025-04-07 15:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:57:26] Production.INFO: ==32469== Releasing lock... [2025-04-07 15:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:57:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:58:05 [end_date_ymd] => 2025-04-07 15:58:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 12:58:05' and `end` < '2025-04-07 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-04-07 15:58:19] Production.INFO: count ==5040 [2025-04-07 15:58:21] Production.ERROR: pbx CDR StartTime 2025-04-07 12:58:05 - End Time 2025-04-07 15:58:05 [2025-04-07 15:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855932', 'tblTempUsageDetail_20' ) start [2025-04-07 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855932', 'tblTempUsageDetail_20' ) end [2025-04-07 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855932', 'tblTempVendorCDR_20' ) start [2025-04-07 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855932', 'tblTempVendorCDR_20' ) end [2025-04-07 15:58:21] Production.INFO: ProcessCDR(1,14855932,1,1,2) [2025-04-07 15:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855932', 'tblTempUsageDetail_20' ) start [2025-04-07 15:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855932', 'tblTempUsageDetail_20' ) end [2025-04-07 15:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:58:26] Production.INFO: ==32538== Releasing lock... [2025-04-07 15:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:58:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 15:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 12:59:06 [end_date_ymd] => 2025-04-07 15:59:06 [RateCDR] => 1 ) [2025-04-07 15: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-04-07 12:59:06' and `end` < '2025-04-07 15: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-04-07 15:59:20] Production.INFO: count ==5049 [2025-04-07 15:59:22] Production.ERROR: pbx CDR StartTime 2025-04-07 12:59:06 - End Time 2025-04-07 15:59:06 [2025-04-07 15:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855937', 'tblTempUsageDetail_20' ) start [2025-04-07 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855937', 'tblTempUsageDetail_20' ) end [2025-04-07 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855937', 'tblTempVendorCDR_20' ) start [2025-04-07 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855937', 'tblTempVendorCDR_20' ) end [2025-04-07 15:59:22] Production.INFO: ProcessCDR(1,14855937,1,1,2) [2025-04-07 15:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 15:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855937', 'tblTempUsageDetail_20' ) start [2025-04-07 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855937', 'tblTempUsageDetail_20' ) end [2025-04-07 15:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 15:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 15:59:27] Production.INFO: ==32616== Releasing lock... [2025-04-07 15:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 15:59:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:00:06 [end_date_ymd] => 2025-04-07 16:00:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:00:06' and `end` < '2025-04-07 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-04-07 16:00:20] Production.INFO: count ==5049 [2025-04-07 16:00:22] Production.ERROR: pbx CDR StartTime 2025-04-07 13:00:06 - End Time 2025-04-07 16:00:06 [2025-04-07 16:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855943', 'tblTempUsageDetail_20' ) start [2025-04-07 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855943', 'tblTempUsageDetail_20' ) end [2025-04-07 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855943', 'tblTempVendorCDR_20' ) start [2025-04-07 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855943', 'tblTempVendorCDR_20' ) end [2025-04-07 16:00:22] Production.INFO: ProcessCDR(1,14855943,1,1,2) [2025-04-07 16:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855943', 'tblTempUsageDetail_20' ) start [2025-04-07 16:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855943', 'tblTempUsageDetail_20' ) end [2025-04-07 16:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:00:27] Production.INFO: ==32693== Releasing lock... [2025-04-07 16:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:00:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:01:05 [end_date_ymd] => 2025-04-07 16:01:05 [RateCDR] => 1 ) [2025-04-07 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 13:01:05' and `end` < '2025-04-07 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 16:01:19] Production.INFO: count ==5098 [2025-04-07 16:01:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:01:05 - End Time 2025-04-07 16:01:05 [2025-04-07 16:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855948', 'tblTempUsageDetail_20' ) start [2025-04-07 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855948', 'tblTempUsageDetail_20' ) end [2025-04-07 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855948', 'tblTempVendorCDR_20' ) start [2025-04-07 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855948', 'tblTempVendorCDR_20' ) end [2025-04-07 16:01:21] Production.INFO: ProcessCDR(1,14855948,1,1,2) [2025-04-07 16:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855948', 'tblTempUsageDetail_20' ) start [2025-04-07 16:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855948', 'tblTempUsageDetail_20' ) end [2025-04-07 16:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:01:26] Production.INFO: ==322== Releasing lock... [2025-04-07 16:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:01:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-07 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:02:05 [end_date_ymd] => 2025-04-07 16:02:05 [RateCDR] => 1 ) [2025-04-07 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 13:02:05' and `end` < '2025-04-07 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 16:02:19] Production.INFO: count ==5089 [2025-04-07 16:02:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:02:05 - End Time 2025-04-07 16:02:05 [2025-04-07 16:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855953', 'tblTempUsageDetail_20' ) start [2025-04-07 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855953', 'tblTempUsageDetail_20' ) end [2025-04-07 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855953', 'tblTempVendorCDR_20' ) start [2025-04-07 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855953', 'tblTempVendorCDR_20' ) end [2025-04-07 16:02:21] Production.INFO: ProcessCDR(1,14855953,1,1,2) [2025-04-07 16:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855953', 'tblTempUsageDetail_20' ) start [2025-04-07 16:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855953', 'tblTempUsageDetail_20' ) end [2025-04-07 16:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:02:26] Production.INFO: ==409== Releasing lock... [2025-04-07 16:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:02:26] Production.INFO: 66 MB #Memory Used# [2025-04-07 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:03:05 [end_date_ymd] => 2025-04-07 16:03:05 [RateCDR] => 1 ) [2025-04-07 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 13:03:05' and `end` < '2025-04-07 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 16:03:19] Production.INFO: count ==5096 [2025-04-07 16:03:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:03:05 - End Time 2025-04-07 16:03:05 [2025-04-07 16:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855958', 'tblTempUsageDetail_20' ) start [2025-04-07 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855958', 'tblTempUsageDetail_20' ) end [2025-04-07 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855958', 'tblTempVendorCDR_20' ) start [2025-04-07 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855958', 'tblTempVendorCDR_20' ) end [2025-04-07 16:03:21] Production.INFO: ProcessCDR(1,14855958,1,1,2) [2025-04-07 16:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855958', 'tblTempUsageDetail_20' ) start [2025-04-07 16:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855958', 'tblTempUsageDetail_20' ) end [2025-04-07 16:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:03:27] Production.INFO: ==481== Releasing lock... [2025-04-07 16:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:03:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-07 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:04:06 [end_date_ymd] => 2025-04-07 16:04:06 [RateCDR] => 1 ) [2025-04-07 16: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-04-07 13:04:06' and `end` < '2025-04-07 16: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-04-07 16:04:20] Production.INFO: count ==5087 [2025-04-07 16:04:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:04:06 - End Time 2025-04-07 16:04:06 [2025-04-07 16:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855963', 'tblTempUsageDetail_20' ) start [2025-04-07 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855963', 'tblTempUsageDetail_20' ) end [2025-04-07 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855963', 'tblTempVendorCDR_20' ) start [2025-04-07 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855963', 'tblTempVendorCDR_20' ) end [2025-04-07 16:04:22] Production.INFO: ProcessCDR(1,14855963,1,1,2) [2025-04-07 16:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855963', 'tblTempUsageDetail_20' ) start [2025-04-07 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855963', 'tblTempUsageDetail_20' ) end [2025-04-07 16:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:04:27] Production.INFO: ==555== Releasing lock... [2025-04-07 16:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:04:27] Production.INFO: 66 MB #Memory Used# [2025-04-07 16:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:05:06 [end_date_ymd] => 2025-04-07 16:05:06 [RateCDR] => 1 ) [2025-04-07 16: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-04-07 13:05:06' and `end` < '2025-04-07 16: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-04-07 16:05:20] Production.INFO: count ==5069 [2025-04-07 16:05:22] Production.ERROR: pbx CDR StartTime 2025-04-07 13:05:06 - End Time 2025-04-07 16:05:06 [2025-04-07 16:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855968', 'tblTempUsageDetail_20' ) start [2025-04-07 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855968', 'tblTempUsageDetail_20' ) end [2025-04-07 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855968', 'tblTempVendorCDR_20' ) start [2025-04-07 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855968', 'tblTempVendorCDR_20' ) end [2025-04-07 16:05:22] Production.INFO: ProcessCDR(1,14855968,1,1,2) [2025-04-07 16:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855968', 'tblTempUsageDetail_20' ) start [2025-04-07 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855968', 'tblTempUsageDetail_20' ) end [2025-04-07 16:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:05:27] Production.INFO: ==636== Releasing lock... [2025-04-07 16:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:05:27] Production.INFO: 66 MB #Memory Used# [2025-04-07 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:06:06 [end_date_ymd] => 2025-04-07 16:06:06 [RateCDR] => 1 ) [2025-04-07 16: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-04-07 13:06:06' and `end` < '2025-04-07 16: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-04-07 16:06:19] Production.INFO: count ==5069 [2025-04-07 16:06:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:06:06 - End Time 2025-04-07 16:06:06 [2025-04-07 16:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855973', 'tblTempUsageDetail_20' ) start [2025-04-07 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855973', 'tblTempUsageDetail_20' ) end [2025-04-07 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855973', 'tblTempVendorCDR_20' ) start [2025-04-07 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855973', 'tblTempVendorCDR_20' ) end [2025-04-07 16:06:21] Production.INFO: ProcessCDR(1,14855973,1,1,2) [2025-04-07 16:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855973', 'tblTempUsageDetail_20' ) start [2025-04-07 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855973', 'tblTempUsageDetail_20' ) end [2025-04-07 16:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:06:27] Production.INFO: ==735== Releasing lock... [2025-04-07 16:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:06:27] Production.INFO: 66 MB #Memory Used# [2025-04-07 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:07:06 [end_date_ymd] => 2025-04-07 16:07:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:07:06' and `end` < '2025-04-07 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-04-07 16:07:19] Production.INFO: count ==5069 [2025-04-07 16:07:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:07:06 - End Time 2025-04-07 16:07:06 [2025-04-07 16:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855978', 'tblTempUsageDetail_20' ) start [2025-04-07 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855978', 'tblTempUsageDetail_20' ) end [2025-04-07 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855978', 'tblTempVendorCDR_20' ) start [2025-04-07 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855978', 'tblTempVendorCDR_20' ) end [2025-04-07 16:07:21] Production.INFO: ProcessCDR(1,14855978,1,1,2) [2025-04-07 16:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855978', 'tblTempUsageDetail_20' ) start [2025-04-07 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855978', 'tblTempUsageDetail_20' ) end [2025-04-07 16:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:07:27] Production.INFO: ==815== Releasing lock... [2025-04-07 16:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:07:27] Production.INFO: 66 MB #Memory Used# [2025-04-07 16:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:08:06 [end_date_ymd] => 2025-04-07 16:08:06 [RateCDR] => 1 ) [2025-04-07 16: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-04-07 13:08:06' and `end` < '2025-04-07 16: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-04-07 16:08:20] Production.INFO: count ==5045 [2025-04-07 16:08:22] Production.ERROR: pbx CDR StartTime 2025-04-07 13:08:06 - End Time 2025-04-07 16:08:06 [2025-04-07 16:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855983', 'tblTempUsageDetail_20' ) start [2025-04-07 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855983', 'tblTempUsageDetail_20' ) end [2025-04-07 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855983', 'tblTempVendorCDR_20' ) start [2025-04-07 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855983', 'tblTempVendorCDR_20' ) end [2025-04-07 16:08:22] Production.INFO: ProcessCDR(1,14855983,1,1,2) [2025-04-07 16:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855983', 'tblTempUsageDetail_20' ) start [2025-04-07 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855983', 'tblTempUsageDetail_20' ) end [2025-04-07 16:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:08:27] Production.INFO: ==926== Releasing lock... [2025-04-07 16:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:08:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 16:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:09:04 [end_date_ymd] => 2025-04-07 16:09:04 [RateCDR] => 1 ) [2025-04-07 16:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 13:09:04' and `end` < '2025-04-07 16:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 16:09:18] Production.INFO: count ==5039 [2025-04-07 16:09:20] Production.ERROR: pbx CDR StartTime 2025-04-07 13:09:04 - End Time 2025-04-07 16:09:04 [2025-04-07 16:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855988', 'tblTempUsageDetail_20' ) start [2025-04-07 16:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855988', 'tblTempUsageDetail_20' ) end [2025-04-07 16:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855988', 'tblTempVendorCDR_20' ) start [2025-04-07 16:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855988', 'tblTempVendorCDR_20' ) end [2025-04-07 16:09:20] Production.INFO: ProcessCDR(1,14855988,1,1,2) [2025-04-07 16:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855988', 'tblTempUsageDetail_20' ) start [2025-04-07 16:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855988', 'tblTempUsageDetail_20' ) end [2025-04-07 16:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:09:25] Production.INFO: ==995== Releasing lock... [2025-04-07 16:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:09:25] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 16:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:10:07 [end_date_ymd] => 2025-04-07 16:10:07 [RateCDR] => 1 ) [2025-04-07 16:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 13:10:07' and `end` < '2025-04-07 16:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 16:10:21] Production.INFO: count ==5039 [2025-04-07 16:10:23] Production.ERROR: pbx CDR StartTime 2025-04-07 13:10:07 - End Time 2025-04-07 16:10:07 [2025-04-07 16:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855994', 'tblTempUsageDetail_20' ) start [2025-04-07 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855994', 'tblTempUsageDetail_20' ) end [2025-04-07 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855994', 'tblTempVendorCDR_20' ) start [2025-04-07 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855994', 'tblTempVendorCDR_20' ) end [2025-04-07 16:10:23] Production.INFO: ProcessCDR(1,14855994,1,1,2) [2025-04-07 16:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855994', 'tblTempUsageDetail_20' ) start [2025-04-07 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855994', 'tblTempUsageDetail_20' ) end [2025-04-07 16:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:10:28] Production.INFO: ==1072== Releasing lock... [2025-04-07 16:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:10:28] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:11:05 [end_date_ymd] => 2025-04-07 16:11:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:11:05' and `end` < '2025-04-07 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-04-07 16:11:19] Production.INFO: count ==5034 [2025-04-07 16:11:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:11:05 - End Time 2025-04-07 16:11:05 [2025-04-07 16:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855999', 'tblTempUsageDetail_20' ) start [2025-04-07 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14855999', 'tblTempUsageDetail_20' ) end [2025-04-07 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855999', 'tblTempVendorCDR_20' ) start [2025-04-07 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14855999', 'tblTempVendorCDR_20' ) end [2025-04-07 16:11:21] Production.INFO: ProcessCDR(1,14855999,1,1,2) [2025-04-07 16:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14855999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14855999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14855999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14855999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855999', 'tblTempUsageDetail_20' ) start [2025-04-07 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14855999', 'tblTempUsageDetail_20' ) end [2025-04-07 16:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:11:26] Production.INFO: ==1151== Releasing lock... [2025-04-07 16:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:11:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:12:05 [end_date_ymd] => 2025-04-07 16:12:05 [RateCDR] => 1 ) [2025-04-07 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 13:12:05' and `end` < '2025-04-07 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 16:12:19] Production.INFO: count ==5022 [2025-04-07 16:12:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:12:05 - End Time 2025-04-07 16:12:05 [2025-04-07 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856004', 'tblTempUsageDetail_20' ) start [2025-04-07 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856004', 'tblTempUsageDetail_20' ) end [2025-04-07 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856004', 'tblTempVendorCDR_20' ) start [2025-04-07 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856004', 'tblTempVendorCDR_20' ) end [2025-04-07 16:12:21] Production.INFO: ProcessCDR(1,14856004,1,1,2) [2025-04-07 16:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856004', 'tblTempUsageDetail_20' ) start [2025-04-07 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856004', 'tblTempUsageDetail_20' ) end [2025-04-07 16:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:12:27] Production.INFO: ==1236== Releasing lock... [2025-04-07 16:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:12:27] Production.INFO: 65.5 MB #Memory Used# [2025-04-07 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:13:05 [end_date_ymd] => 2025-04-07 16:13:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:13:05' and `end` < '2025-04-07 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-04-07 16:13:19] Production.INFO: count ==5031 [2025-04-07 16:13:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:13:05 - End Time 2025-04-07 16:13:05 [2025-04-07 16:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856009', 'tblTempUsageDetail_20' ) start [2025-04-07 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856009', 'tblTempUsageDetail_20' ) end [2025-04-07 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856009', 'tblTempVendorCDR_20' ) start [2025-04-07 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856009', 'tblTempVendorCDR_20' ) end [2025-04-07 16:13:21] Production.INFO: ProcessCDR(1,14856009,1,1,2) [2025-04-07 16:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856009', 'tblTempUsageDetail_20' ) start [2025-04-07 16:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856009', 'tblTempUsageDetail_20' ) end [2025-04-07 16:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:13:26] Production.INFO: ==1326== Releasing lock... [2025-04-07 16:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:13:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 16:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:14:06 [end_date_ymd] => 2025-04-07 16:14:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:14:06' and `end` < '2025-04-07 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-04-07 16:14:20] Production.INFO: count ==5027 [2025-04-07 16:14:22] Production.ERROR: pbx CDR StartTime 2025-04-07 13:14:06 - End Time 2025-04-07 16:14:06 [2025-04-07 16:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856014', 'tblTempUsageDetail_20' ) start [2025-04-07 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856014', 'tblTempUsageDetail_20' ) end [2025-04-07 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856014', 'tblTempVendorCDR_20' ) start [2025-04-07 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856014', 'tblTempVendorCDR_20' ) end [2025-04-07 16:14:22] Production.INFO: ProcessCDR(1,14856014,1,1,2) [2025-04-07 16:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856014', 'tblTempUsageDetail_20' ) start [2025-04-07 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856014', 'tblTempUsageDetail_20' ) end [2025-04-07 16:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:14:27] Production.INFO: ==1403== Releasing lock... [2025-04-07 16:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:14:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:15:05 [end_date_ymd] => 2025-04-07 16:15:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:15:05' and `end` < '2025-04-07 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-04-07 16:15:19] Production.INFO: count ==5043 [2025-04-07 16:15:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:15:05 - End Time 2025-04-07 16:15:05 [2025-04-07 16:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856019', 'tblTempUsageDetail_20' ) start [2025-04-07 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856019', 'tblTempUsageDetail_20' ) end [2025-04-07 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856019', 'tblTempVendorCDR_20' ) start [2025-04-07 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856019', 'tblTempVendorCDR_20' ) end [2025-04-07 16:15:21] Production.INFO: ProcessCDR(1,14856019,1,1,2) [2025-04-07 16:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856019', 'tblTempUsageDetail_20' ) start [2025-04-07 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856019', 'tblTempUsageDetail_20' ) end [2025-04-07 16:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:15:27] Production.INFO: ==1473== Releasing lock... [2025-04-07 16:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:15:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:16:05 [end_date_ymd] => 2025-04-07 16:16:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:16:05' and `end` < '2025-04-07 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-04-07 16:16:19] Production.INFO: count ==5012 [2025-04-07 16:16:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:16:05 - End Time 2025-04-07 16:16:05 [2025-04-07 16:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856024', 'tblTempUsageDetail_20' ) start [2025-04-07 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856024', 'tblTempUsageDetail_20' ) end [2025-04-07 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856024', 'tblTempVendorCDR_20' ) start [2025-04-07 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856024', 'tblTempVendorCDR_20' ) end [2025-04-07 16:16:21] Production.INFO: ProcessCDR(1,14856024,1,1,2) [2025-04-07 16:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856024', 'tblTempUsageDetail_20' ) start [2025-04-07 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856024', 'tblTempUsageDetail_20' ) end [2025-04-07 16:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:16:27] Production.INFO: ==1586== Releasing lock... [2025-04-07 16:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:16:27] Production.INFO: 65.5 MB #Memory Used# [2025-04-07 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:17:05 [end_date_ymd] => 2025-04-07 16:17:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:17:05' and `end` < '2025-04-07 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-04-07 16:17:19] Production.INFO: count ==5005 [2025-04-07 16:17:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:17:05 - End Time 2025-04-07 16:17:05 [2025-04-07 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856029', 'tblTempUsageDetail_20' ) start [2025-04-07 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856029', 'tblTempUsageDetail_20' ) end [2025-04-07 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856029', 'tblTempVendorCDR_20' ) start [2025-04-07 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856029', 'tblTempVendorCDR_20' ) end [2025-04-07 16:17:21] Production.INFO: ProcessCDR(1,14856029,1,1,2) [2025-04-07 16:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856029', 'tblTempUsageDetail_20' ) start [2025-04-07 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856029', 'tblTempUsageDetail_20' ) end [2025-04-07 16:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:17:26] Production.INFO: ==1661== Releasing lock... [2025-04-07 16:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:17:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-07 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:18:05 [end_date_ymd] => 2025-04-07 16:18:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:18:05' and `end` < '2025-04-07 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-04-07 16:18:19] Production.INFO: count ==5013 [2025-04-07 16:18:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:18:05 - End Time 2025-04-07 16:18:05 [2025-04-07 16:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856034', 'tblTempUsageDetail_20' ) start [2025-04-07 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856034', 'tblTempUsageDetail_20' ) end [2025-04-07 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856034', 'tblTempVendorCDR_20' ) start [2025-04-07 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856034', 'tblTempVendorCDR_20' ) end [2025-04-07 16:18:22] Production.INFO: ProcessCDR(1,14856034,1,1,2) [2025-04-07 16:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856034', 'tblTempUsageDetail_20' ) start [2025-04-07 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856034', 'tblTempUsageDetail_20' ) end [2025-04-07 16:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:18:27] Production.INFO: ==1732== Releasing lock... [2025-04-07 16:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:18:27] Production.INFO: 65.5 MB #Memory Used# [2025-04-07 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:19:05 [end_date_ymd] => 2025-04-07 16:19:05 [RateCDR] => 1 ) [2025-04-07 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 13:19:05' and `end` < '2025-04-07 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 16:19:19] Production.INFO: count ==5020 [2025-04-07 16:19:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:19:05 - End Time 2025-04-07 16:19:05 [2025-04-07 16:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856039', 'tblTempUsageDetail_20' ) start [2025-04-07 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856039', 'tblTempUsageDetail_20' ) end [2025-04-07 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856039', 'tblTempVendorCDR_20' ) start [2025-04-07 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856039', 'tblTempVendorCDR_20' ) end [2025-04-07 16:19:21] Production.INFO: ProcessCDR(1,14856039,1,1,2) [2025-04-07 16:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856039', 'tblTempUsageDetail_20' ) start [2025-04-07 16:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856039', 'tblTempUsageDetail_20' ) end [2025-04-07 16:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:19:24] Production.INFO: ==1806== Releasing lock... [2025-04-07 16:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:19:24] Production.INFO: 65.5 MB #Memory Used# [2025-04-07 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:20:06 [end_date_ymd] => 2025-04-07 16:20:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:20:06' and `end` < '2025-04-07 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-04-07 16:20:20] Production.INFO: count ==5045 [2025-04-07 16:20:22] Production.ERROR: pbx CDR StartTime 2025-04-07 13:20:06 - End Time 2025-04-07 16:20:06 [2025-04-07 16:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856045', 'tblTempUsageDetail_20' ) start [2025-04-07 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856045', 'tblTempUsageDetail_20' ) end [2025-04-07 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856045', 'tblTempVendorCDR_20' ) start [2025-04-07 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856045', 'tblTempVendorCDR_20' ) end [2025-04-07 16:20:22] Production.INFO: ProcessCDR(1,14856045,1,1,2) [2025-04-07 16:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856045', 'tblTempUsageDetail_20' ) start [2025-04-07 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856045', 'tblTempUsageDetail_20' ) end [2025-04-07 16:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:20:27] Production.INFO: ==1884== Releasing lock... [2025-04-07 16:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:20:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:21:05 [end_date_ymd] => 2025-04-07 16:21:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:21:05' and `end` < '2025-04-07 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-04-07 16:21:19] Production.INFO: count ==5107 [2025-04-07 16:21:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:21:05 - End Time 2025-04-07 16:21:05 [2025-04-07 16:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856050', 'tblTempUsageDetail_20' ) start [2025-04-07 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856050', 'tblTempUsageDetail_20' ) end [2025-04-07 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856050', 'tblTempVendorCDR_20' ) start [2025-04-07 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856050', 'tblTempVendorCDR_20' ) end [2025-04-07 16:21:21] Production.INFO: ProcessCDR(1,14856050,1,1,2) [2025-04-07 16:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856050', 'tblTempUsageDetail_20' ) start [2025-04-07 16:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856050', 'tblTempUsageDetail_20' ) end [2025-04-07 16:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:21:26] Production.INFO: ==1956== Releasing lock... [2025-04-07 16:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:21:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-07 16:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:22:06 [end_date_ymd] => 2025-04-07 16:22:06 [RateCDR] => 1 ) [2025-04-07 16: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-04-07 13:22:06' and `end` < '2025-04-07 16: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-04-07 16:22:20] Production.INFO: count ==5107 [2025-04-07 16:22:22] Production.ERROR: pbx CDR StartTime 2025-04-07 13:22:06 - End Time 2025-04-07 16:22:06 [2025-04-07 16:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856055', 'tblTempUsageDetail_20' ) start [2025-04-07 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856055', 'tblTempUsageDetail_20' ) end [2025-04-07 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856055', 'tblTempVendorCDR_20' ) start [2025-04-07 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856055', 'tblTempVendorCDR_20' ) end [2025-04-07 16:22:22] Production.INFO: ProcessCDR(1,14856055,1,1,2) [2025-04-07 16:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856055', 'tblTempUsageDetail_20' ) start [2025-04-07 16:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856055', 'tblTempUsageDetail_20' ) end [2025-04-07 16:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:22:27] Production.INFO: ==2032== Releasing lock... [2025-04-07 16:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:22:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-07 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:23:05 [end_date_ymd] => 2025-04-07 16:23:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:23:05' and `end` < '2025-04-07 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-04-07 16:23:19] Production.INFO: count ==5117 [2025-04-07 16:23:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:23:05 - End Time 2025-04-07 16:23:05 [2025-04-07 16:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856060', 'tblTempUsageDetail_20' ) start [2025-04-07 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856060', 'tblTempUsageDetail_20' ) end [2025-04-07 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856060', 'tblTempVendorCDR_20' ) start [2025-04-07 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856060', 'tblTempVendorCDR_20' ) end [2025-04-07 16:23:21] Production.INFO: ProcessCDR(1,14856060,1,1,2) [2025-04-07 16:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856060', 'tblTempUsageDetail_20' ) start [2025-04-07 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856060', 'tblTempUsageDetail_20' ) end [2025-04-07 16:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:23:26] Production.INFO: ==2142== Releasing lock... [2025-04-07 16:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:23:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-07 16:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:24:06 [end_date_ymd] => 2025-04-07 16:24:06 [RateCDR] => 1 ) [2025-04-07 16: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-04-07 13:24:06' and `end` < '2025-04-07 16: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-04-07 16:24:20] Production.INFO: count ==5119 [2025-04-07 16:24:22] Production.ERROR: pbx CDR StartTime 2025-04-07 13:24:06 - End Time 2025-04-07 16:24:06 [2025-04-07 16:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856065', 'tblTempUsageDetail_20' ) start [2025-04-07 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856065', 'tblTempUsageDetail_20' ) end [2025-04-07 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856065', 'tblTempVendorCDR_20' ) start [2025-04-07 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856065', 'tblTempVendorCDR_20' ) end [2025-04-07 16:24:22] Production.INFO: ProcessCDR(1,14856065,1,1,2) [2025-04-07 16:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856065', 'tblTempUsageDetail_20' ) start [2025-04-07 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856065', 'tblTempUsageDetail_20' ) end [2025-04-07 16:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:24:27] Production.INFO: ==2214== Releasing lock... [2025-04-07 16:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:24:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-07 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:25:06 [end_date_ymd] => 2025-04-07 16:25:06 [RateCDR] => 1 ) [2025-04-07 16: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-04-07 13:25:06' and `end` < '2025-04-07 16: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-04-07 16:25:20] Production.INFO: count ==5119 [2025-04-07 16:25:22] Production.ERROR: pbx CDR StartTime 2025-04-07 13:25:06 - End Time 2025-04-07 16:25:06 [2025-04-07 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856070', 'tblTempUsageDetail_20' ) start [2025-04-07 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856070', 'tblTempUsageDetail_20' ) end [2025-04-07 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856070', 'tblTempVendorCDR_20' ) start [2025-04-07 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856070', 'tblTempVendorCDR_20' ) end [2025-04-07 16:25:22] Production.INFO: ProcessCDR(1,14856070,1,1,2) [2025-04-07 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856070', 'tblTempUsageDetail_20' ) start [2025-04-07 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856070', 'tblTempUsageDetail_20' ) end [2025-04-07 16:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:25:27] Production.INFO: ==2289== Releasing lock... [2025-04-07 16:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:25:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-07 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:26:05 [end_date_ymd] => 2025-04-07 16:26:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:26:05' and `end` < '2025-04-07 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-04-07 16:26:19] Production.INFO: count ==5135 [2025-04-07 16:26:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:26:05 - End Time 2025-04-07 16:26:05 [2025-04-07 16:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856075', 'tblTempUsageDetail_20' ) start [2025-04-07 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856075', 'tblTempUsageDetail_20' ) end [2025-04-07 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856075', 'tblTempVendorCDR_20' ) start [2025-04-07 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856075', 'tblTempVendorCDR_20' ) end [2025-04-07 16:26:21] Production.INFO: ProcessCDR(1,14856075,1,1,2) [2025-04-07 16:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856075', 'tblTempUsageDetail_20' ) start [2025-04-07 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856075', 'tblTempUsageDetail_20' ) end [2025-04-07 16:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:26:26] Production.INFO: ==2366== Releasing lock... [2025-04-07 16:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:26:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-07 16:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:27:04 [end_date_ymd] => 2025-04-07 16:27:04 [RateCDR] => 1 ) [2025-04-07 16: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-04-07 13:27:04' and `end` < '2025-04-07 16: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-04-07 16:27:18] Production.INFO: count ==5133 [2025-04-07 16:27:20] Production.ERROR: pbx CDR StartTime 2025-04-07 13:27:04 - End Time 2025-04-07 16:27:04 [2025-04-07 16:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856080', 'tblTempUsageDetail_20' ) start [2025-04-07 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856080', 'tblTempUsageDetail_20' ) end [2025-04-07 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856080', 'tblTempVendorCDR_20' ) start [2025-04-07 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856080', 'tblTempVendorCDR_20' ) end [2025-04-07 16:27:20] Production.INFO: ProcessCDR(1,14856080,1,1,2) [2025-04-07 16:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856080', 'tblTempUsageDetail_20' ) start [2025-04-07 16:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856080', 'tblTempUsageDetail_20' ) end [2025-04-07 16:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:27:26] Production.INFO: ==2437== Releasing lock... [2025-04-07 16:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:27:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-07 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:28:05 [end_date_ymd] => 2025-04-07 16:28:05 [RateCDR] => 1 ) [2025-04-07 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 13:28:05' and `end` < '2025-04-07 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 16:28:19] Production.INFO: count ==5149 [2025-04-07 16:28:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:28:05 - End Time 2025-04-07 16:28:05 [2025-04-07 16:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856085', 'tblTempUsageDetail_20' ) start [2025-04-07 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856085', 'tblTempUsageDetail_20' ) end [2025-04-07 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856085', 'tblTempVendorCDR_20' ) start [2025-04-07 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856085', 'tblTempVendorCDR_20' ) end [2025-04-07 16:28:21] Production.INFO: ProcessCDR(1,14856085,1,1,2) [2025-04-07 16:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856085', 'tblTempUsageDetail_20' ) start [2025-04-07 16:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856085', 'tblTempUsageDetail_20' ) end [2025-04-07 16:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:28:26] Production.INFO: ==2510== Releasing lock... [2025-04-07 16:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:28:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-07 16:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:29:06 [end_date_ymd] => 2025-04-07 16:29:06 [RateCDR] => 1 ) [2025-04-07 16: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-04-07 13:29:06' and `end` < '2025-04-07 16: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-04-07 16:29:20] Production.INFO: count ==5135 [2025-04-07 16:29:22] Production.ERROR: pbx CDR StartTime 2025-04-07 13:29:06 - End Time 2025-04-07 16:29:06 [2025-04-07 16:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856090', 'tblTempUsageDetail_20' ) start [2025-04-07 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856090', 'tblTempUsageDetail_20' ) end [2025-04-07 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856090', 'tblTempVendorCDR_20' ) start [2025-04-07 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856090', 'tblTempVendorCDR_20' ) end [2025-04-07 16:29:22] Production.INFO: ProcessCDR(1,14856090,1,1,2) [2025-04-07 16:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856090', 'tblTempUsageDetail_20' ) start [2025-04-07 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856090', 'tblTempUsageDetail_20' ) end [2025-04-07 16:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:29:27] Production.INFO: ==2583== Releasing lock... [2025-04-07 16:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:29:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-07 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:30:06 [end_date_ymd] => 2025-04-07 16:30:06 [RateCDR] => 1 ) [2025-04-07 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 13:30:06' and `end` < '2025-04-07 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 16:30:20] Production.INFO: count ==5144 [2025-04-07 16:30:22] Production.ERROR: pbx CDR StartTime 2025-04-07 13:30:06 - End Time 2025-04-07 16:30:06 [2025-04-07 16:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856096', 'tblTempUsageDetail_20' ) start [2025-04-07 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856096', 'tblTempUsageDetail_20' ) end [2025-04-07 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856096', 'tblTempVendorCDR_20' ) start [2025-04-07 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856096', 'tblTempVendorCDR_20' ) end [2025-04-07 16:30:22] Production.INFO: ProcessCDR(1,14856096,1,1,2) [2025-04-07 16:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856096', 'tblTempUsageDetail_20' ) start [2025-04-07 16:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856096', 'tblTempUsageDetail_20' ) end [2025-04-07 16:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:30:28] Production.INFO: ==2660== Releasing lock... [2025-04-07 16:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:30:28] Production.INFO: 66.5 MB #Memory Used# [2025-04-07 16:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:31:06 [end_date_ymd] => 2025-04-07 16:31:06 [RateCDR] => 1 ) [2025-04-07 16: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-04-07 13:31:06' and `end` < '2025-04-07 16: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-04-07 16:31:20] Production.INFO: count ==5161 [2025-04-07 16:31:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:31:06 - End Time 2025-04-07 16:31:06 [2025-04-07 16:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856101', 'tblTempUsageDetail_20' ) start [2025-04-07 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856101', 'tblTempUsageDetail_20' ) end [2025-04-07 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856101', 'tblTempVendorCDR_20' ) start [2025-04-07 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856101', 'tblTempVendorCDR_20' ) end [2025-04-07 16:31:22] Production.INFO: ProcessCDR(1,14856101,1,1,2) [2025-04-07 16:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856101', 'tblTempUsageDetail_20' ) start [2025-04-07 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856101', 'tblTempUsageDetail_20' ) end [2025-04-07 16:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:31:27] Production.INFO: ==2737== Releasing lock... [2025-04-07 16:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:31:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-07 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:32:05 [end_date_ymd] => 2025-04-07 16:32:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:32:05' and `end` < '2025-04-07 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-04-07 16:32:19] Production.INFO: count ==5148 [2025-04-07 16:32:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:32:05 - End Time 2025-04-07 16:32:05 [2025-04-07 16:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856106', 'tblTempUsageDetail_20' ) start [2025-04-07 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856106', 'tblTempUsageDetail_20' ) end [2025-04-07 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856106', 'tblTempVendorCDR_20' ) start [2025-04-07 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856106', 'tblTempVendorCDR_20' ) end [2025-04-07 16:32:21] Production.INFO: ProcessCDR(1,14856106,1,1,2) [2025-04-07 16:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856106', 'tblTempUsageDetail_20' ) start [2025-04-07 16:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856106', 'tblTempUsageDetail_20' ) end [2025-04-07 16:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:32:26] Production.INFO: ==2812== Releasing lock... [2025-04-07 16:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:32:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-07 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:33:05 [end_date_ymd] => 2025-04-07 16:33:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:33:05' and `end` < '2025-04-07 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-04-07 16:33:20] Production.INFO: count ==5143 [2025-04-07 16:33:22] Production.ERROR: pbx CDR StartTime 2025-04-07 13:33:05 - End Time 2025-04-07 16:33:05 [2025-04-07 16:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856111', 'tblTempUsageDetail_20' ) start [2025-04-07 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856111', 'tblTempUsageDetail_20' ) end [2025-04-07 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856111', 'tblTempVendorCDR_20' ) start [2025-04-07 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856111', 'tblTempVendorCDR_20' ) end [2025-04-07 16:33:22] Production.INFO: ProcessCDR(1,14856111,1,1,2) [2025-04-07 16:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856111', 'tblTempUsageDetail_20' ) start [2025-04-07 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856111', 'tblTempUsageDetail_20' ) end [2025-04-07 16:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:33:27] Production.INFO: ==2884== Releasing lock... [2025-04-07 16:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:33:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-07 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:34:05 [end_date_ymd] => 2025-04-07 16:34:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:34:05' and `end` < '2025-04-07 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-04-07 16:34:19] Production.INFO: count ==5152 [2025-04-07 16:34:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:34:05 - End Time 2025-04-07 16:34:05 [2025-04-07 16:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856116', 'tblTempUsageDetail_20' ) start [2025-04-07 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856116', 'tblTempUsageDetail_20' ) end [2025-04-07 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856116', 'tblTempVendorCDR_20' ) start [2025-04-07 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856116', 'tblTempVendorCDR_20' ) end [2025-04-07 16:34:21] Production.INFO: ProcessCDR(1,14856116,1,1,2) [2025-04-07 16:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856116', 'tblTempUsageDetail_20' ) start [2025-04-07 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856116', 'tblTempUsageDetail_20' ) end [2025-04-07 16:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:34:26] Production.INFO: ==2956== Releasing lock... [2025-04-07 16:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:34:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-07 16:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:35:06 [end_date_ymd] => 2025-04-07 16:35:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:35:06' and `end` < '2025-04-07 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-04-07 16:35:20] Production.INFO: count ==5171 [2025-04-07 16:35:22] Production.ERROR: pbx CDR StartTime 2025-04-07 13:35:06 - End Time 2025-04-07 16:35:06 [2025-04-07 16:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856121', 'tblTempUsageDetail_20' ) start [2025-04-07 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856121', 'tblTempUsageDetail_20' ) end [2025-04-07 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856121', 'tblTempVendorCDR_20' ) start [2025-04-07 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856121', 'tblTempVendorCDR_20' ) end [2025-04-07 16:35:22] Production.INFO: ProcessCDR(1,14856121,1,1,2) [2025-04-07 16:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856121', 'tblTempUsageDetail_20' ) start [2025-04-07 16:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856121', 'tblTempUsageDetail_20' ) end [2025-04-07 16:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:35:27] Production.INFO: ==3027== Releasing lock... [2025-04-07 16:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:35:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-07 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:36:05 [end_date_ymd] => 2025-04-07 16:36:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:36:05' and `end` < '2025-04-07 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-04-07 16:36:19] Production.INFO: count ==5174 [2025-04-07 16:36:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:36:05 - End Time 2025-04-07 16:36:05 [2025-04-07 16:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856126', 'tblTempUsageDetail_20' ) start [2025-04-07 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856126', 'tblTempUsageDetail_20' ) end [2025-04-07 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856126', 'tblTempVendorCDR_20' ) start [2025-04-07 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856126', 'tblTempVendorCDR_20' ) end [2025-04-07 16:36:21] Production.INFO: ProcessCDR(1,14856126,1,1,2) [2025-04-07 16:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856126', 'tblTempUsageDetail_20' ) start [2025-04-07 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856126', 'tblTempUsageDetail_20' ) end [2025-04-07 16:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:36:27] Production.INFO: ==3099== Releasing lock... [2025-04-07 16:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:36:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-07 16:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:37:06 [end_date_ymd] => 2025-04-07 16:37:06 [RateCDR] => 1 ) [2025-04-07 16: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-04-07 13:37:06' and `end` < '2025-04-07 16: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-04-07 16:37:20] Production.INFO: count ==5176 [2025-04-07 16:37:22] Production.ERROR: pbx CDR StartTime 2025-04-07 13:37:06 - End Time 2025-04-07 16:37:06 [2025-04-07 16:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856131', 'tblTempUsageDetail_20' ) start [2025-04-07 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856131', 'tblTempUsageDetail_20' ) end [2025-04-07 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856131', 'tblTempVendorCDR_20' ) start [2025-04-07 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856131', 'tblTempVendorCDR_20' ) end [2025-04-07 16:37:22] Production.INFO: ProcessCDR(1,14856131,1,1,2) [2025-04-07 16:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856131', 'tblTempUsageDetail_20' ) start [2025-04-07 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856131', 'tblTempUsageDetail_20' ) end [2025-04-07 16:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:37:27] Production.INFO: ==3172== Releasing lock... [2025-04-07 16:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:37:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-07 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:38:05 [end_date_ymd] => 2025-04-07 16:38:05 [RateCDR] => 1 ) [2025-04-07 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 13:38:05' and `end` < '2025-04-07 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 16:38:19] Production.INFO: count ==5180 [2025-04-07 16:38:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:38:05 - End Time 2025-04-07 16:38:05 [2025-04-07 16:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856136', 'tblTempUsageDetail_20' ) start [2025-04-07 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856136', 'tblTempUsageDetail_20' ) end [2025-04-07 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856136', 'tblTempVendorCDR_20' ) start [2025-04-07 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856136', 'tblTempVendorCDR_20' ) end [2025-04-07 16:38:21] Production.INFO: ProcessCDR(1,14856136,1,1,2) [2025-04-07 16:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856136', 'tblTempUsageDetail_20' ) start [2025-04-07 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856136', 'tblTempUsageDetail_20' ) end [2025-04-07 16:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:38:26] Production.INFO: ==3246== Releasing lock... [2025-04-07 16:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:38:26] Production.INFO: 66.75 MB #Memory Used# [2025-04-07 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:39:05 [end_date_ymd] => 2025-04-07 16:39:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:39:05' and `end` < '2025-04-07 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-04-07 16:39:19] Production.INFO: count ==5163 [2025-04-07 16:39:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:39:05 - End Time 2025-04-07 16:39:05 [2025-04-07 16:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856140', 'tblTempUsageDetail_20' ) start [2025-04-07 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856140', 'tblTempUsageDetail_20' ) end [2025-04-07 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856140', 'tblTempVendorCDR_20' ) start [2025-04-07 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856140', 'tblTempVendorCDR_20' ) end [2025-04-07 16:39:21] Production.INFO: ProcessCDR(1,14856140,1,1,2) [2025-04-07 16:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856140', 'tblTempUsageDetail_20' ) start [2025-04-07 16:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856140', 'tblTempUsageDetail_20' ) end [2025-04-07 16:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:39:25] Production.INFO: ==3355== Releasing lock... [2025-04-07 16:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:39:25] Production.INFO: 66.75 MB #Memory Used# [2025-04-07 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:40:06 [end_date_ymd] => 2025-04-07 16:40:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:40:06' and `end` < '2025-04-07 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-04-07 16:40:20] Production.INFO: count ==5154 [2025-04-07 16:40:22] Production.ERROR: pbx CDR StartTime 2025-04-07 13:40:06 - End Time 2025-04-07 16:40:06 [2025-04-07 16:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856147', 'tblTempUsageDetail_20' ) start [2025-04-07 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856147', 'tblTempUsageDetail_20' ) end [2025-04-07 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856147', 'tblTempVendorCDR_20' ) start [2025-04-07 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856147', 'tblTempVendorCDR_20' ) end [2025-04-07 16:40:22] Production.INFO: ProcessCDR(1,14856147,1,1,2) [2025-04-07 16:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856147', 'tblTempUsageDetail_20' ) start [2025-04-07 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856147', 'tblTempUsageDetail_20' ) end [2025-04-07 16:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:40:27] Production.INFO: ==3428== Releasing lock... [2025-04-07 16:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:40:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-07 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:41:05 [end_date_ymd] => 2025-04-07 16:41:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:41:05' and `end` < '2025-04-07 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-04-07 16:41:19] Production.INFO: count ==5178 [2025-04-07 16:41:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:41:05 - End Time 2025-04-07 16:41:05 [2025-04-07 16:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856152', 'tblTempUsageDetail_20' ) start [2025-04-07 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856152', 'tblTempUsageDetail_20' ) end [2025-04-07 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856152', 'tblTempVendorCDR_20' ) start [2025-04-07 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856152', 'tblTempVendorCDR_20' ) end [2025-04-07 16:41:21] Production.INFO: ProcessCDR(1,14856152,1,1,2) [2025-04-07 16:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856152', 'tblTempUsageDetail_20' ) start [2025-04-07 16:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856152', 'tblTempUsageDetail_20' ) end [2025-04-07 16:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:41:27] Production.INFO: ==3503== Releasing lock... [2025-04-07 16:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:41:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-07 16:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:42:06 [end_date_ymd] => 2025-04-07 16:42:06 [RateCDR] => 1 ) [2025-04-07 16:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 13:42:06' and `end` < '2025-04-07 16:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 16:42:20] Production.INFO: count ==5155 [2025-04-07 16:42:22] Production.ERROR: pbx CDR StartTime 2025-04-07 13:42:06 - End Time 2025-04-07 16:42:06 [2025-04-07 16:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856157', 'tblTempUsageDetail_20' ) start [2025-04-07 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856157', 'tblTempUsageDetail_20' ) end [2025-04-07 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856157', 'tblTempVendorCDR_20' ) start [2025-04-07 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856157', 'tblTempVendorCDR_20' ) end [2025-04-07 16:42:22] Production.INFO: ProcessCDR(1,14856157,1,1,2) [2025-04-07 16:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856157', 'tblTempUsageDetail_20' ) start [2025-04-07 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856157', 'tblTempUsageDetail_20' ) end [2025-04-07 16:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:42:27] Production.INFO: ==3574== Releasing lock... [2025-04-07 16:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:42:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-07 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:43:05 [end_date_ymd] => 2025-04-07 16:43:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:43:05' and `end` < '2025-04-07 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-04-07 16:43:20] Production.INFO: count ==5156 [2025-04-07 16:43:22] Production.ERROR: pbx CDR StartTime 2025-04-07 13:43:05 - End Time 2025-04-07 16:43:05 [2025-04-07 16:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856162', 'tblTempUsageDetail_20' ) start [2025-04-07 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856162', 'tblTempUsageDetail_20' ) end [2025-04-07 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856162', 'tblTempVendorCDR_20' ) start [2025-04-07 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856162', 'tblTempVendorCDR_20' ) end [2025-04-07 16:43:22] Production.INFO: ProcessCDR(1,14856162,1,1,2) [2025-04-07 16:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856162', 'tblTempUsageDetail_20' ) start [2025-04-07 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856162', 'tblTempUsageDetail_20' ) end [2025-04-07 16:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:43:27] Production.INFO: ==3643== Releasing lock... [2025-04-07 16:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:43:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-07 16:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:44:06 [end_date_ymd] => 2025-04-07 16:44:06 [RateCDR] => 1 ) [2025-04-07 16: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-04-07 13:44:06' and `end` < '2025-04-07 16: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-04-07 16:44:20] Production.INFO: count ==5159 [2025-04-07 16:44:22] Production.ERROR: pbx CDR StartTime 2025-04-07 13:44:06 - End Time 2025-04-07 16:44:06 [2025-04-07 16:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856167', 'tblTempUsageDetail_20' ) start [2025-04-07 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856167', 'tblTempUsageDetail_20' ) end [2025-04-07 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856167', 'tblTempVendorCDR_20' ) start [2025-04-07 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856167', 'tblTempVendorCDR_20' ) end [2025-04-07 16:44:22] Production.INFO: ProcessCDR(1,14856167,1,1,2) [2025-04-07 16:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856167', 'tblTempUsageDetail_20' ) start [2025-04-07 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856167', 'tblTempUsageDetail_20' ) end [2025-04-07 16:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:44:27] Production.INFO: ==3717== Releasing lock... [2025-04-07 16:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:44:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-07 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:45:05 [end_date_ymd] => 2025-04-07 16:45:05 [RateCDR] => 1 ) [2025-04-07 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 13:45:05' and `end` < '2025-04-07 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 16:45:19] Production.INFO: count ==5154 [2025-04-07 16:45:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:45:05 - End Time 2025-04-07 16:45:05 [2025-04-07 16:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856172', 'tblTempUsageDetail_20' ) start [2025-04-07 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856172', 'tblTempUsageDetail_20' ) end [2025-04-07 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856172', 'tblTempVendorCDR_20' ) start [2025-04-07 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856172', 'tblTempVendorCDR_20' ) end [2025-04-07 16:45:21] Production.INFO: ProcessCDR(1,14856172,1,1,2) [2025-04-07 16:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856172', 'tblTempUsageDetail_20' ) start [2025-04-07 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856172', 'tblTempUsageDetail_20' ) end [2025-04-07 16:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:45:27] Production.INFO: ==3791== Releasing lock... [2025-04-07 16:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:45:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-07 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:46:05 [end_date_ymd] => 2025-04-07 16:46:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:46:05' and `end` < '2025-04-07 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-04-07 16:46:19] Production.INFO: count ==5158 [2025-04-07 16:46:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:46:05 - End Time 2025-04-07 16:46:05 [2025-04-07 16:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856177', 'tblTempUsageDetail_20' ) start [2025-04-07 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856177', 'tblTempUsageDetail_20' ) end [2025-04-07 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856177', 'tblTempVendorCDR_20' ) start [2025-04-07 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856177', 'tblTempVendorCDR_20' ) end [2025-04-07 16:46:21] Production.INFO: ProcessCDR(1,14856177,1,1,2) [2025-04-07 16:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856177', 'tblTempUsageDetail_20' ) start [2025-04-07 16:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856177', 'tblTempUsageDetail_20' ) end [2025-04-07 16:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:46:26] Production.INFO: ==3874== Releasing lock... [2025-04-07 16:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:46:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-07 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:47:05 [end_date_ymd] => 2025-04-07 16:47:05 [RateCDR] => 1 ) [2025-04-07 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 13:47:05' and `end` < '2025-04-07 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 16:47:19] Production.INFO: count ==5152 [2025-04-07 16:47:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:47:05 - End Time 2025-04-07 16:47:05 [2025-04-07 16:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856182', 'tblTempUsageDetail_20' ) start [2025-04-07 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856182', 'tblTempUsageDetail_20' ) end [2025-04-07 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856182', 'tblTempVendorCDR_20' ) start [2025-04-07 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856182', 'tblTempVendorCDR_20' ) end [2025-04-07 16:47:21] Production.INFO: ProcessCDR(1,14856182,1,1,2) [2025-04-07 16:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856182', 'tblTempUsageDetail_20' ) start [2025-04-07 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856182', 'tblTempUsageDetail_20' ) end [2025-04-07 16:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:47:27] Production.INFO: ==3944== Releasing lock... [2025-04-07 16:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:47:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-07 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:48:05 [end_date_ymd] => 2025-04-07 16:48:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:48:05' and `end` < '2025-04-07 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-04-07 16:48:19] Production.INFO: count ==5160 [2025-04-07 16:48:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:48:05 - End Time 2025-04-07 16:48:05 [2025-04-07 16:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856187', 'tblTempUsageDetail_20' ) start [2025-04-07 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856187', 'tblTempUsageDetail_20' ) end [2025-04-07 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856187', 'tblTempVendorCDR_20' ) start [2025-04-07 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856187', 'tblTempVendorCDR_20' ) end [2025-04-07 16:48:21] Production.INFO: ProcessCDR(1,14856187,1,1,2) [2025-04-07 16:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856187', 'tblTempUsageDetail_20' ) start [2025-04-07 16:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856187', 'tblTempUsageDetail_20' ) end [2025-04-07 16:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:48:25] Production.INFO: ==4016== Releasing lock... [2025-04-07 16:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:48:25] Production.INFO: 66.75 MB #Memory Used# [2025-04-07 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:49:05 [end_date_ymd] => 2025-04-07 16:49:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:49:05' and `end` < '2025-04-07 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-04-07 16:49:19] Production.INFO: count ==5163 [2025-04-07 16:49:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:49:05 - End Time 2025-04-07 16:49:05 [2025-04-07 16:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856192', 'tblTempUsageDetail_20' ) start [2025-04-07 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856192', 'tblTempUsageDetail_20' ) end [2025-04-07 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856192', 'tblTempVendorCDR_20' ) start [2025-04-07 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856192', 'tblTempVendorCDR_20' ) end [2025-04-07 16:49:21] Production.INFO: ProcessCDR(1,14856192,1,1,2) [2025-04-07 16:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856192', 'tblTempUsageDetail_20' ) start [2025-04-07 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856192', 'tblTempUsageDetail_20' ) end [2025-04-07 16:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:49:26] Production.INFO: ==4092== Releasing lock... [2025-04-07 16:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:49:26] Production.INFO: 66.75 MB #Memory Used# [2025-04-07 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:50:06 [end_date_ymd] => 2025-04-07 16:50:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:50:06' and `end` < '2025-04-07 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-04-07 16:50:20] Production.INFO: count ==5150 [2025-04-07 16:50:22] Production.ERROR: pbx CDR StartTime 2025-04-07 13:50:06 - End Time 2025-04-07 16:50:06 [2025-04-07 16:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856198', 'tblTempUsageDetail_20' ) start [2025-04-07 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856198', 'tblTempUsageDetail_20' ) end [2025-04-07 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856198', 'tblTempVendorCDR_20' ) start [2025-04-07 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856198', 'tblTempVendorCDR_20' ) end [2025-04-07 16:50:22] Production.INFO: ProcessCDR(1,14856198,1,1,2) [2025-04-07 16:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856198', 'tblTempUsageDetail_20' ) start [2025-04-07 16:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856198', 'tblTempUsageDetail_20' ) end [2025-04-07 16:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:50:28] Production.INFO: ==4165== Releasing lock... [2025-04-07 16:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:50:28] Production.INFO: 66.5 MB #Memory Used# [2025-04-07 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:51:05 [end_date_ymd] => 2025-04-07 16:51:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:51:05' and `end` < '2025-04-07 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-04-07 16:51:19] Production.INFO: count ==5114 [2025-04-07 16:51:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:51:05 - End Time 2025-04-07 16:51:05 [2025-04-07 16:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856203', 'tblTempUsageDetail_20' ) start [2025-04-07 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856203', 'tblTempUsageDetail_20' ) end [2025-04-07 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856203', 'tblTempVendorCDR_20' ) start [2025-04-07 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856203', 'tblTempVendorCDR_20' ) end [2025-04-07 16:51:21] Production.INFO: ProcessCDR(1,14856203,1,1,2) [2025-04-07 16:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856203', 'tblTempUsageDetail_20' ) start [2025-04-07 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856203', 'tblTempUsageDetail_20' ) end [2025-04-07 16:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:51:26] Production.INFO: ==4246== Releasing lock... [2025-04-07 16:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:51:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-07 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:52:06 [end_date_ymd] => 2025-04-07 16:52:06 [RateCDR] => 1 ) [2025-04-07 16: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-04-07 13:52:06' and `end` < '2025-04-07 16: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-04-07 16:52:20] Production.INFO: count ==5114 [2025-04-07 16:52:22] Production.ERROR: pbx CDR StartTime 2025-04-07 13:52:06 - End Time 2025-04-07 16:52:06 [2025-04-07 16:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856208', 'tblTempUsageDetail_20' ) start [2025-04-07 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856208', 'tblTempUsageDetail_20' ) end [2025-04-07 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856208', 'tblTempVendorCDR_20' ) start [2025-04-07 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856208', 'tblTempVendorCDR_20' ) end [2025-04-07 16:52:22] Production.INFO: ProcessCDR(1,14856208,1,1,2) [2025-04-07 16:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856208', 'tblTempUsageDetail_20' ) start [2025-04-07 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856208', 'tblTempUsageDetail_20' ) end [2025-04-07 16:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:52:27] Production.INFO: ==4317== Releasing lock... [2025-04-07 16:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:52:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-07 16:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:53:06 [end_date_ymd] => 2025-04-07 16:53:06 [RateCDR] => 1 ) [2025-04-07 16: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-04-07 13:53:06' and `end` < '2025-04-07 16: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-04-07 16:53:19] Production.INFO: count ==5106 [2025-04-07 16:53:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:53:06 - End Time 2025-04-07 16:53:06 [2025-04-07 16:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856213', 'tblTempUsageDetail_20' ) start [2025-04-07 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856213', 'tblTempUsageDetail_20' ) end [2025-04-07 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856213', 'tblTempVendorCDR_20' ) start [2025-04-07 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856213', 'tblTempVendorCDR_20' ) end [2025-04-07 16:53:22] Production.INFO: ProcessCDR(1,14856213,1,1,2) [2025-04-07 16:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856213', 'tblTempUsageDetail_20' ) start [2025-04-07 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856213', 'tblTempUsageDetail_20' ) end [2025-04-07 16:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:53:26] Production.INFO: ==4388== Releasing lock... [2025-04-07 16:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:53:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-07 16:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:54:06 [end_date_ymd] => 2025-04-07 16:54:06 [RateCDR] => 1 ) [2025-04-07 16:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 13:54:06' and `end` < '2025-04-07 16:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 16:54:20] Production.INFO: count ==5095 [2025-04-07 16:54:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:54:06 - End Time 2025-04-07 16:54:06 [2025-04-07 16:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856218', 'tblTempUsageDetail_20' ) start [2025-04-07 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856218', 'tblTempUsageDetail_20' ) end [2025-04-07 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856218', 'tblTempVendorCDR_20' ) start [2025-04-07 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856218', 'tblTempVendorCDR_20' ) end [2025-04-07 16:54:22] Production.INFO: ProcessCDR(1,14856218,1,1,2) [2025-04-07 16:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856218', 'tblTempUsageDetail_20' ) start [2025-04-07 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856218', 'tblTempUsageDetail_20' ) end [2025-04-07 16:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:54:27] Production.INFO: ==4498== Releasing lock... [2025-04-07 16:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:54:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-07 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:55:05 [end_date_ymd] => 2025-04-07 16:55:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:55:05' and `end` < '2025-04-07 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-04-07 16:55:19] Production.INFO: count ==5086 [2025-04-07 16:55:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:55:05 - End Time 2025-04-07 16:55:05 [2025-04-07 16:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856223', 'tblTempUsageDetail_20' ) start [2025-04-07 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856223', 'tblTempUsageDetail_20' ) end [2025-04-07 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856223', 'tblTempVendorCDR_20' ) start [2025-04-07 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856223', 'tblTempVendorCDR_20' ) end [2025-04-07 16:55:21] Production.INFO: ProcessCDR(1,14856223,1,1,2) [2025-04-07 16:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856223', 'tblTempUsageDetail_20' ) start [2025-04-07 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856223', 'tblTempUsageDetail_20' ) end [2025-04-07 16:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:55:26] Production.INFO: ==4570== Releasing lock... [2025-04-07 16:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:55:26] Production.INFO: 66 MB #Memory Used# [2025-04-07 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:56:05 [end_date_ymd] => 2025-04-07 16:56:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:56:05' and `end` < '2025-04-07 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-04-07 16:56:19] Production.INFO: count ==5074 [2025-04-07 16:56:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:56:05 - End Time 2025-04-07 16:56:05 [2025-04-07 16:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856228', 'tblTempUsageDetail_20' ) start [2025-04-07 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856228', 'tblTempUsageDetail_20' ) end [2025-04-07 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856228', 'tblTempVendorCDR_20' ) start [2025-04-07 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856228', 'tblTempVendorCDR_20' ) end [2025-04-07 16:56:21] Production.INFO: ProcessCDR(1,14856228,1,1,2) [2025-04-07 16:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856228', 'tblTempUsageDetail_20' ) start [2025-04-07 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856228', 'tblTempUsageDetail_20' ) end [2025-04-07 16:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:56:26] Production.INFO: ==4649== Releasing lock... [2025-04-07 16:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:56:26] Production.INFO: 66 MB #Memory Used# [2025-04-07 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:57:05 [end_date_ymd] => 2025-04-07 16:57:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:57:05' and `end` < '2025-04-07 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-04-07 16:57:19] Production.INFO: count ==5068 [2025-04-07 16:57:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:57:05 - End Time 2025-04-07 16:57:05 [2025-04-07 16:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856233', 'tblTempUsageDetail_20' ) start [2025-04-07 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856233', 'tblTempUsageDetail_20' ) end [2025-04-07 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856233', 'tblTempVendorCDR_20' ) start [2025-04-07 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856233', 'tblTempVendorCDR_20' ) end [2025-04-07 16:57:22] Production.INFO: ProcessCDR(1,14856233,1,1,2) [2025-04-07 16:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856233', 'tblTempUsageDetail_20' ) start [2025-04-07 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856233', 'tblTempUsageDetail_20' ) end [2025-04-07 16:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:57:27] Production.INFO: ==4721== Releasing lock... [2025-04-07 16:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:57:27] Production.INFO: 66 MB #Memory Used# [2025-04-07 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:58:05 [end_date_ymd] => 2025-04-07 16:58:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:58:05' and `end` < '2025-04-07 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-04-07 16:58:19] Production.INFO: count ==5064 [2025-04-07 16:58:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:58:05 - End Time 2025-04-07 16:58:05 [2025-04-07 16:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856238', 'tblTempUsageDetail_20' ) start [2025-04-07 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856238', 'tblTempUsageDetail_20' ) end [2025-04-07 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856238', 'tblTempVendorCDR_20' ) start [2025-04-07 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856238', 'tblTempVendorCDR_20' ) end [2025-04-07 16:58:21] Production.INFO: ProcessCDR(1,14856238,1,1,2) [2025-04-07 16:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856238', 'tblTempUsageDetail_20' ) start [2025-04-07 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856238', 'tblTempUsageDetail_20' ) end [2025-04-07 16:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:58:27] Production.INFO: ==4796== Releasing lock... [2025-04-07 16:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:58:27] Production.INFO: 66 MB #Memory Used# [2025-04-07 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 13:59:05 [end_date_ymd] => 2025-04-07 16:59:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 13:59:05' and `end` < '2025-04-07 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-04-07 16:59:19] Production.INFO: count ==5046 [2025-04-07 16:59:21] Production.ERROR: pbx CDR StartTime 2025-04-07 13:59:05 - End Time 2025-04-07 16:59:05 [2025-04-07 16:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856243', 'tblTempUsageDetail_20' ) start [2025-04-07 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856243', 'tblTempUsageDetail_20' ) end [2025-04-07 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856243', 'tblTempVendorCDR_20' ) start [2025-04-07 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856243', 'tblTempVendorCDR_20' ) end [2025-04-07 16:59:21] Production.INFO: ProcessCDR(1,14856243,1,1,2) [2025-04-07 16:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 16:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856243', 'tblTempUsageDetail_20' ) start [2025-04-07 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856243', 'tblTempUsageDetail_20' ) end [2025-04-07 16:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 16:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 16:59:26] Production.INFO: ==4867== Releasing lock... [2025-04-07 16:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 16:59:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:00:06 [end_date_ymd] => 2025-04-07 17:00:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:00:06' and `end` < '2025-04-07 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-04-07 17:00:20] Production.INFO: count ==5049 [2025-04-07 17:00:22] Production.ERROR: pbx CDR StartTime 2025-04-07 14:00:06 - End Time 2025-04-07 17:00:06 [2025-04-07 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856248', 'tblTempUsageDetail_20' ) start [2025-04-07 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856248', 'tblTempUsageDetail_20' ) end [2025-04-07 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856248', 'tblTempVendorCDR_20' ) start [2025-04-07 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856248', 'tblTempVendorCDR_20' ) end [2025-04-07 17:00:22] Production.INFO: ProcessCDR(1,14856248,1,1,2) [2025-04-07 17:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856248', 'tblTempUsageDetail_20' ) start [2025-04-07 17:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856248', 'tblTempUsageDetail_20' ) end [2025-04-07 17:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:00:27] Production.INFO: ==4944== Releasing lock... [2025-04-07 17:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:00:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:01:05 [end_date_ymd] => 2025-04-07 17:01:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:01:05' and `end` < '2025-04-07 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-04-07 17:01:18] Production.INFO: count ==5043 [2025-04-07 17:01:20] Production.ERROR: pbx CDR StartTime 2025-04-07 14:01:05 - End Time 2025-04-07 17:01:05 [2025-04-07 17:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856254', 'tblTempUsageDetail_20' ) start [2025-04-07 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856254', 'tblTempUsageDetail_20' ) end [2025-04-07 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856254', 'tblTempVendorCDR_20' ) start [2025-04-07 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856254', 'tblTempVendorCDR_20' ) end [2025-04-07 17:01:21] Production.INFO: ProcessCDR(1,14856254,1,1,2) [2025-04-07 17:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856254', 'tblTempUsageDetail_20' ) start [2025-04-07 17:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856254', 'tblTempUsageDetail_20' ) end [2025-04-07 17:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:01:26] Production.INFO: ==5034== Releasing lock... [2025-04-07 17:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:01:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:02:06 [end_date_ymd] => 2025-04-07 17:02:06 [RateCDR] => 1 ) [2025-04-07 17: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-04-07 14:02:06' and `end` < '2025-04-07 17: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-04-07 17:02:20] Production.INFO: count ==5047 [2025-04-07 17:02:22] Production.ERROR: pbx CDR StartTime 2025-04-07 14:02:06 - End Time 2025-04-07 17:02:06 [2025-04-07 17:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856259', 'tblTempUsageDetail_20' ) start [2025-04-07 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856259', 'tblTempUsageDetail_20' ) end [2025-04-07 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856259', 'tblTempVendorCDR_20' ) start [2025-04-07 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856259', 'tblTempVendorCDR_20' ) end [2025-04-07 17:02:23] Production.INFO: ProcessCDR(1,14856259,1,1,2) [2025-04-07 17:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856259', 'tblTempUsageDetail_20' ) start [2025-04-07 17:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856259', 'tblTempUsageDetail_20' ) end [2025-04-07 17:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:02:28] Production.INFO: ==5105== Releasing lock... [2025-04-07 17:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:02:28] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 17:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:03:06 [end_date_ymd] => 2025-04-07 17:03:06 [RateCDR] => 1 ) [2025-04-07 17: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-04-07 14:03:06' and `end` < '2025-04-07 17: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-04-07 17:03:20] Production.INFO: count ==5052 [2025-04-07 17:03:22] Production.ERROR: pbx CDR StartTime 2025-04-07 14:03:06 - End Time 2025-04-07 17:03:06 [2025-04-07 17:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856264', 'tblTempUsageDetail_20' ) start [2025-04-07 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856264', 'tblTempUsageDetail_20' ) end [2025-04-07 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856264', 'tblTempVendorCDR_20' ) start [2025-04-07 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856264', 'tblTempVendorCDR_20' ) end [2025-04-07 17:03:22] Production.INFO: ProcessCDR(1,14856264,1,1,2) [2025-04-07 17:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856264', 'tblTempUsageDetail_20' ) start [2025-04-07 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856264', 'tblTempUsageDetail_20' ) end [2025-04-07 17:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:03:27] Production.INFO: ==5178== Releasing lock... [2025-04-07 17:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:03:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:04:06 [end_date_ymd] => 2025-04-07 17:04:06 [RateCDR] => 1 ) [2025-04-07 17:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 14:04:06' and `end` < '2025-04-07 17:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 17:04:19] Production.INFO: count ==5030 [2025-04-07 17:04:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:04:06 - End Time 2025-04-07 17:04:06 [2025-04-07 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856269', 'tblTempUsageDetail_20' ) start [2025-04-07 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856269', 'tblTempUsageDetail_20' ) end [2025-04-07 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856269', 'tblTempVendorCDR_20' ) start [2025-04-07 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856269', 'tblTempVendorCDR_20' ) end [2025-04-07 17:04:21] Production.INFO: ProcessCDR(1,14856269,1,1,2) [2025-04-07 17:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856269', 'tblTempUsageDetail_20' ) start [2025-04-07 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856269', 'tblTempUsageDetail_20' ) end [2025-04-07 17:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:04:27] Production.INFO: ==5250== Releasing lock... [2025-04-07 17:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:04:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-07 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:05:05 [end_date_ymd] => 2025-04-07 17:05:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:05:05' and `end` < '2025-04-07 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-04-07 17:05:19] Production.INFO: count ==5022 [2025-04-07 17:05:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:05:05 - End Time 2025-04-07 17:05:05 [2025-04-07 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856274', 'tblTempUsageDetail_20' ) start [2025-04-07 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856274', 'tblTempUsageDetail_20' ) end [2025-04-07 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856274', 'tblTempVendorCDR_20' ) start [2025-04-07 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856274', 'tblTempVendorCDR_20' ) end [2025-04-07 17:05:21] Production.INFO: ProcessCDR(1,14856274,1,1,2) [2025-04-07 17:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856274', 'tblTempUsageDetail_20' ) start [2025-04-07 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856274', 'tblTempUsageDetail_20' ) end [2025-04-07 17:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:05:26] Production.INFO: ==5332== Releasing lock... [2025-04-07 17:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:05:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-07 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:06:05 [end_date_ymd] => 2025-04-07 17:06:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:06:05' and `end` < '2025-04-07 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-04-07 17:06:19] Production.INFO: count ==5017 [2025-04-07 17:06:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:06:05 - End Time 2025-04-07 17:06:05 [2025-04-07 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856279', 'tblTempUsageDetail_20' ) start [2025-04-07 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856279', 'tblTempUsageDetail_20' ) end [2025-04-07 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856279', 'tblTempVendorCDR_20' ) start [2025-04-07 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856279', 'tblTempVendorCDR_20' ) end [2025-04-07 17:06:21] Production.INFO: ProcessCDR(1,14856279,1,1,2) [2025-04-07 17:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856279', 'tblTempUsageDetail_20' ) start [2025-04-07 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856279', 'tblTempUsageDetail_20' ) end [2025-04-07 17:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:06:26] Production.INFO: ==5404== Releasing lock... [2025-04-07 17:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:06:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-07 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:07:05 [end_date_ymd] => 2025-04-07 17:07:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:07:05' and `end` < '2025-04-07 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-04-07 17:07:19] Production.INFO: count ==5014 [2025-04-07 17:07:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:07:05 - End Time 2025-04-07 17:07:05 [2025-04-07 17:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856284', 'tblTempUsageDetail_20' ) start [2025-04-07 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856284', 'tblTempUsageDetail_20' ) end [2025-04-07 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856284', 'tblTempVendorCDR_20' ) start [2025-04-07 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856284', 'tblTempVendorCDR_20' ) end [2025-04-07 17:07:21] Production.INFO: ProcessCDR(1,14856284,1,1,2) [2025-04-07 17:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856284', 'tblTempUsageDetail_20' ) start [2025-04-07 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856284', 'tblTempUsageDetail_20' ) end [2025-04-07 17:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:07:26] Production.INFO: ==5474== Releasing lock... [2025-04-07 17:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:07:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-07 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:08:05 [end_date_ymd] => 2025-04-07 17:08:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:08:05' and `end` < '2025-04-07 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-04-07 17:08:19] Production.INFO: count ==4988 [2025-04-07 17:08:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:08:05 - End Time 2025-04-07 17:08:05 [2025-04-07 17:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856289', 'tblTempUsageDetail_20' ) start [2025-04-07 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856289', 'tblTempUsageDetail_20' ) end [2025-04-07 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856289', 'tblTempVendorCDR_20' ) start [2025-04-07 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856289', 'tblTempVendorCDR_20' ) end [2025-04-07 17:08:21] Production.INFO: ProcessCDR(1,14856289,1,1,2) [2025-04-07 17:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856289', 'tblTempUsageDetail_20' ) start [2025-04-07 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856289', 'tblTempUsageDetail_20' ) end [2025-04-07 17:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:08:26] Production.INFO: ==5548== Releasing lock... [2025-04-07 17:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:08:26] Production.INFO: 65.25 MB #Memory Used# [2025-04-07 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:09:05 [end_date_ymd] => 2025-04-07 17:09:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:09:05' and `end` < '2025-04-07 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-04-07 17:09:19] Production.INFO: count ==4985 [2025-04-07 17:09:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:09:05 - End Time 2025-04-07 17:09:05 [2025-04-07 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856294', 'tblTempUsageDetail_20' ) start [2025-04-07 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856294', 'tblTempUsageDetail_20' ) end [2025-04-07 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856294', 'tblTempVendorCDR_20' ) start [2025-04-07 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856294', 'tblTempVendorCDR_20' ) end [2025-04-07 17:09:21] Production.INFO: ProcessCDR(1,14856294,1,1,2) [2025-04-07 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856294', 'tblTempUsageDetail_20' ) start [2025-04-07 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856294', 'tblTempUsageDetail_20' ) end [2025-04-07 17:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:09:26] Production.INFO: ==5658== Releasing lock... [2025-04-07 17:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:09:26] Production.INFO: 65.25 MB #Memory Used# [2025-04-07 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:10:06 [end_date_ymd] => 2025-04-07 17:10:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:10:06' and `end` < '2025-04-07 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-04-07 17:10:20] Production.INFO: count ==4971 [2025-04-07 17:10:22] Production.ERROR: pbx CDR StartTime 2025-04-07 14:10:06 - End Time 2025-04-07 17:10:06 [2025-04-07 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856299', 'tblTempUsageDetail_20' ) start [2025-04-07 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856299', 'tblTempUsageDetail_20' ) end [2025-04-07 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856299', 'tblTempVendorCDR_20' ) start [2025-04-07 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856299', 'tblTempVendorCDR_20' ) end [2025-04-07 17:10:22] Production.INFO: ProcessCDR(1,14856299,1,1,2) [2025-04-07 17:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856299', 'tblTempUsageDetail_20' ) start [2025-04-07 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856299', 'tblTempUsageDetail_20' ) end [2025-04-07 17:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:10:27] Production.INFO: ==5730== Releasing lock... [2025-04-07 17:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:10:27] Production.INFO: 65.25 MB #Memory Used# [2025-04-07 17:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:11:06 [end_date_ymd] => 2025-04-07 17:11:06 [RateCDR] => 1 ) [2025-04-07 17: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-04-07 14:11:06' and `end` < '2025-04-07 17: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-04-07 17:11:20] Production.INFO: count ==4919 [2025-04-07 17:11:22] Production.ERROR: pbx CDR StartTime 2025-04-07 14:11:06 - End Time 2025-04-07 17:11:06 [2025-04-07 17:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856305', 'tblTempUsageDetail_20' ) start [2025-04-07 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856305', 'tblTempUsageDetail_20' ) end [2025-04-07 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856305', 'tblTempVendorCDR_20' ) start [2025-04-07 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856305', 'tblTempVendorCDR_20' ) end [2025-04-07 17:11:22] Production.INFO: ProcessCDR(1,14856305,1,1,2) [2025-04-07 17:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856305', 'tblTempUsageDetail_20' ) start [2025-04-07 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856305', 'tblTempUsageDetail_20' ) end [2025-04-07 17:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:11:27] Production.INFO: ==5806== Releasing lock... [2025-04-07 17:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:11:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-07 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:12:05 [end_date_ymd] => 2025-04-07 17:12:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:12:05' and `end` < '2025-04-07 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-04-07 17:12:19] Production.INFO: count ==4877 [2025-04-07 17:12:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:12:05 - End Time 2025-04-07 17:12:05 [2025-04-07 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856310', 'tblTempUsageDetail_20' ) start [2025-04-07 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856310', 'tblTempUsageDetail_20' ) end [2025-04-07 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856310', 'tblTempVendorCDR_20' ) start [2025-04-07 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856310', 'tblTempVendorCDR_20' ) end [2025-04-07 17:12:21] Production.INFO: ProcessCDR(1,14856310,1,1,2) [2025-04-07 17:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856310', 'tblTempUsageDetail_20' ) start [2025-04-07 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856310', 'tblTempUsageDetail_20' ) end [2025-04-07 17:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:12:25] Production.INFO: ==5882== Releasing lock... [2025-04-07 17:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:12:25] Production.INFO: 64.5 MB #Memory Used# [2025-04-07 17:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:13:06 [end_date_ymd] => 2025-04-07 17:13:06 [RateCDR] => 1 ) [2025-04-07 17: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-04-07 14:13:06' and `end` < '2025-04-07 17: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-04-07 17:13:20] Production.INFO: count ==4856 [2025-04-07 17:13:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:13:06 - End Time 2025-04-07 17:13:06 [2025-04-07 17:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856315', 'tblTempUsageDetail_20' ) start [2025-04-07 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856315', 'tblTempUsageDetail_20' ) end [2025-04-07 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856315', 'tblTempVendorCDR_20' ) start [2025-04-07 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856315', 'tblTempVendorCDR_20' ) end [2025-04-07 17:13:22] Production.INFO: ProcessCDR(1,14856315,1,1,2) [2025-04-07 17:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856315', 'tblTempUsageDetail_20' ) start [2025-04-07 17:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856315', 'tblTempUsageDetail_20' ) end [2025-04-07 17:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:13:27] Production.INFO: ==5955== Releasing lock... [2025-04-07 17:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:13:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-07 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:14:05 [end_date_ymd] => 2025-04-07 17:14:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:14:05' and `end` < '2025-04-07 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-04-07 17:14:19] Production.INFO: count ==4840 [2025-04-07 17:14:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:14:05 - End Time 2025-04-07 17:14:05 [2025-04-07 17:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856320', 'tblTempUsageDetail_20' ) start [2025-04-07 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856320', 'tblTempUsageDetail_20' ) end [2025-04-07 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856320', 'tblTempVendorCDR_20' ) start [2025-04-07 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856320', 'tblTempVendorCDR_20' ) end [2025-04-07 17:14:21] Production.INFO: ProcessCDR(1,14856320,1,1,2) [2025-04-07 17:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856320', 'tblTempUsageDetail_20' ) start [2025-04-07 17:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856320', 'tblTempUsageDetail_20' ) end [2025-04-07 17:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:14:24] Production.INFO: ==6024== Releasing lock... [2025-04-07 17:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:14:24] Production.INFO: 64.25 MB #Memory Used# [2025-04-07 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:15:05 [end_date_ymd] => 2025-04-07 17:15:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:15:05' and `end` < '2025-04-07 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-04-07 17:15:19] Production.INFO: count ==4835 [2025-04-07 17:15:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:15:05 - End Time 2025-04-07 17:15:05 [2025-04-07 17:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856325', 'tblTempUsageDetail_20' ) start [2025-04-07 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856325', 'tblTempUsageDetail_20' ) end [2025-04-07 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856325', 'tblTempVendorCDR_20' ) start [2025-04-07 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856325', 'tblTempVendorCDR_20' ) end [2025-04-07 17:15:21] Production.INFO: ProcessCDR(1,14856325,1,1,2) [2025-04-07 17:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856325', 'tblTempUsageDetail_20' ) start [2025-04-07 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856325', 'tblTempUsageDetail_20' ) end [2025-04-07 17:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:15:26] Production.INFO: ==6100== Releasing lock... [2025-04-07 17:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:15:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-07 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:16:05 [end_date_ymd] => 2025-04-07 17:16:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:16:05' and `end` < '2025-04-07 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-04-07 17:16:19] Production.INFO: count ==4834 [2025-04-07 17:16:20] Production.ERROR: pbx CDR StartTime 2025-04-07 14:16:05 - End Time 2025-04-07 17:16:05 [2025-04-07 17:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856330', 'tblTempUsageDetail_20' ) start [2025-04-07 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856330', 'tblTempUsageDetail_20' ) end [2025-04-07 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856330', 'tblTempVendorCDR_20' ) start [2025-04-07 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856330', 'tblTempVendorCDR_20' ) end [2025-04-07 17:16:20] Production.INFO: ProcessCDR(1,14856330,1,1,2) [2025-04-07 17:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856330', 'tblTempUsageDetail_20' ) start [2025-04-07 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856330', 'tblTempUsageDetail_20' ) end [2025-04-07 17:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:16:26] Production.INFO: ==6180== Releasing lock... [2025-04-07 17:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:16:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-07 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:17:05 [end_date_ymd] => 2025-04-07 17:17:05 [RateCDR] => 1 ) [2025-04-07 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 14:17:05' and `end` < '2025-04-07 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 17:17:19] Production.INFO: count ==4822 [2025-04-07 17:17:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:17:05 - End Time 2025-04-07 17:17:05 [2025-04-07 17:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856335', 'tblTempUsageDetail_20' ) start [2025-04-07 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856335', 'tblTempUsageDetail_20' ) end [2025-04-07 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856335', 'tblTempVendorCDR_20' ) start [2025-04-07 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856335', 'tblTempVendorCDR_20' ) end [2025-04-07 17:17:21] Production.INFO: ProcessCDR(1,14856335,1,1,2) [2025-04-07 17:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856335', 'tblTempUsageDetail_20' ) start [2025-04-07 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856335', 'tblTempUsageDetail_20' ) end [2025-04-07 17:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:17:26] Production.INFO: ==6254== Releasing lock... [2025-04-07 17:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:17:26] Production.INFO: 64 MB #Memory Used# [2025-04-07 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:18:05 [end_date_ymd] => 2025-04-07 17:18:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:18:05' and `end` < '2025-04-07 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-04-07 17:18:19] Production.INFO: count ==4786 [2025-04-07 17:18:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:18:05 - End Time 2025-04-07 17:18:05 [2025-04-07 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856340', 'tblTempUsageDetail_20' ) start [2025-04-07 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856340', 'tblTempUsageDetail_20' ) end [2025-04-07 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856340', 'tblTempVendorCDR_20' ) start [2025-04-07 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856340', 'tblTempVendorCDR_20' ) end [2025-04-07 17:18:21] Production.INFO: ProcessCDR(1,14856340,1,1,2) [2025-04-07 17:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856340', 'tblTempUsageDetail_20' ) start [2025-04-07 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856340', 'tblTempUsageDetail_20' ) end [2025-04-07 17:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:18:26] Production.INFO: ==6334== Releasing lock... [2025-04-07 17:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:18:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-07 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:19:05 [end_date_ymd] => 2025-04-07 17:19:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:19:05' and `end` < '2025-04-07 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-04-07 17:19:19] Production.INFO: count ==4788 [2025-04-07 17:19:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:19:05 - End Time 2025-04-07 17:19:05 [2025-04-07 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856345', 'tblTempUsageDetail_20' ) start [2025-04-07 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856345', 'tblTempUsageDetail_20' ) end [2025-04-07 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856345', 'tblTempVendorCDR_20' ) start [2025-04-07 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856345', 'tblTempVendorCDR_20' ) end [2025-04-07 17:19:21] Production.INFO: ProcessCDR(1,14856345,1,1,2) [2025-04-07 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856345', 'tblTempUsageDetail_20' ) start [2025-04-07 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856345', 'tblTempUsageDetail_20' ) end [2025-04-07 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:19:26] Production.INFO: ==6408== Releasing lock... [2025-04-07 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:19:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-07 17:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:20:07 [end_date_ymd] => 2025-04-07 17:20:07 [RateCDR] => 1 ) [2025-04-07 17:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 14:20:07' and `end` < '2025-04-07 17:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 17:20:20] Production.INFO: count ==4773 [2025-04-07 17:20:22] Production.ERROR: pbx CDR StartTime 2025-04-07 14:20:07 - End Time 2025-04-07 17:20:07 [2025-04-07 17:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856350', 'tblTempUsageDetail_20' ) start [2025-04-07 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856350', 'tblTempUsageDetail_20' ) end [2025-04-07 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856350', 'tblTempVendorCDR_20' ) start [2025-04-07 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856350', 'tblTempVendorCDR_20' ) end [2025-04-07 17:20:22] Production.INFO: ProcessCDR(1,14856350,1,1,2) [2025-04-07 17:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856350', 'tblTempUsageDetail_20' ) start [2025-04-07 17:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856350', 'tblTempUsageDetail_20' ) end [2025-04-07 17:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:20:28] Production.INFO: ==6483== Releasing lock... [2025-04-07 17:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:20:28] Production.INFO: 63.75 MB #Memory Used# [2025-04-07 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:21:05 [end_date_ymd] => 2025-04-07 17:21:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:21:05' and `end` < '2025-04-07 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-04-07 17:21:19] Production.INFO: count ==4743 [2025-04-07 17:21:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:21:05 - End Time 2025-04-07 17:21:05 [2025-04-07 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856356', 'tblTempUsageDetail_20' ) start [2025-04-07 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856356', 'tblTempUsageDetail_20' ) end [2025-04-07 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856356', 'tblTempVendorCDR_20' ) start [2025-04-07 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856356', 'tblTempVendorCDR_20' ) end [2025-04-07 17:21:21] Production.INFO: ProcessCDR(1,14856356,1,1,2) [2025-04-07 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856356', 'tblTempUsageDetail_20' ) start [2025-04-07 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856356', 'tblTempUsageDetail_20' ) end [2025-04-07 17:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:21:26] Production.INFO: ==6559== Releasing lock... [2025-04-07 17:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:21:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-07 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:22:06 [end_date_ymd] => 2025-04-07 17:22:06 [RateCDR] => 1 ) [2025-04-07 17: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-04-07 14:22:06' and `end` < '2025-04-07 17: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-04-07 17:22:20] Production.INFO: count ==4716 [2025-04-07 17:22:22] Production.ERROR: pbx CDR StartTime 2025-04-07 14:22:06 - End Time 2025-04-07 17:22:06 [2025-04-07 17:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856361', 'tblTempUsageDetail_20' ) start [2025-04-07 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856361', 'tblTempUsageDetail_20' ) end [2025-04-07 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856361', 'tblTempVendorCDR_20' ) start [2025-04-07 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856361', 'tblTempVendorCDR_20' ) end [2025-04-07 17:22:22] Production.INFO: ProcessCDR(1,14856361,1,1,2) [2025-04-07 17:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856361', 'tblTempUsageDetail_20' ) start [2025-04-07 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856361', 'tblTempUsageDetail_20' ) end [2025-04-07 17:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:22:27] Production.INFO: ==6629== Releasing lock... [2025-04-07 17:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:22:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-07 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:23:05 [end_date_ymd] => 2025-04-07 17:23:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:23:05' and `end` < '2025-04-07 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-04-07 17:23:19] Production.INFO: count ==4713 [2025-04-07 17:23:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:23:05 - End Time 2025-04-07 17:23:05 [2025-04-07 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856366', 'tblTempUsageDetail_20' ) start [2025-04-07 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856366', 'tblTempUsageDetail_20' ) end [2025-04-07 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856366', 'tblTempVendorCDR_20' ) start [2025-04-07 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856366', 'tblTempVendorCDR_20' ) end [2025-04-07 17:23:21] Production.INFO: ProcessCDR(1,14856366,1,1,2) [2025-04-07 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856366', 'tblTempUsageDetail_20' ) start [2025-04-07 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856366', 'tblTempUsageDetail_20' ) end [2025-04-07 17:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:23:26] Production.INFO: ==6704== Releasing lock... [2025-04-07 17:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:23:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-07 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:24:06 [end_date_ymd] => 2025-04-07 17:24:06 [RateCDR] => 1 ) [2025-04-07 17: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-04-07 14:24:06' and `end` < '2025-04-07 17: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-04-07 17:24:20] Production.INFO: count ==4720 [2025-04-07 17:24:22] Production.ERROR: pbx CDR StartTime 2025-04-07 14:24:06 - End Time 2025-04-07 17:24:06 [2025-04-07 17:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856371', 'tblTempUsageDetail_20' ) start [2025-04-07 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856371', 'tblTempUsageDetail_20' ) end [2025-04-07 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856371', 'tblTempVendorCDR_20' ) start [2025-04-07 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856371', 'tblTempVendorCDR_20' ) end [2025-04-07 17:24:22] Production.INFO: ProcessCDR(1,14856371,1,1,2) [2025-04-07 17:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856371', 'tblTempUsageDetail_20' ) start [2025-04-07 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856371', 'tblTempUsageDetail_20' ) end [2025-04-07 17:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:24:27] Production.INFO: ==6783== Releasing lock... [2025-04-07 17:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:24:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-07 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:25:05 [end_date_ymd] => 2025-04-07 17:25:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:25:05' and `end` < '2025-04-07 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-04-07 17:25:19] Production.INFO: count ==4734 [2025-04-07 17:25:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:25:05 - End Time 2025-04-07 17:25:05 [2025-04-07 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856376', 'tblTempUsageDetail_20' ) start [2025-04-07 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856376', 'tblTempUsageDetail_20' ) end [2025-04-07 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856376', 'tblTempVendorCDR_20' ) start [2025-04-07 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856376', 'tblTempVendorCDR_20' ) end [2025-04-07 17:25:21] Production.INFO: ProcessCDR(1,14856376,1,1,2) [2025-04-07 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856376', 'tblTempUsageDetail_20' ) start [2025-04-07 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856376', 'tblTempUsageDetail_20' ) end [2025-04-07 17:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:25:26] Production.INFO: ==6893== Releasing lock... [2025-04-07 17:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:25:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-07 17:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:26:06 [end_date_ymd] => 2025-04-07 17:26:06 [RateCDR] => 1 ) [2025-04-07 17: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-04-07 14:26:06' and `end` < '2025-04-07 17: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-04-07 17:26:19] Production.INFO: count ==4735 [2025-04-07 17:26:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:26:06 - End Time 2025-04-07 17:26:06 [2025-04-07 17:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856381', 'tblTempUsageDetail_20' ) start [2025-04-07 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856381', 'tblTempUsageDetail_20' ) end [2025-04-07 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856381', 'tblTempVendorCDR_20' ) start [2025-04-07 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856381', 'tblTempVendorCDR_20' ) end [2025-04-07 17:26:21] Production.INFO: ProcessCDR(1,14856381,1,1,2) [2025-04-07 17:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856381', 'tblTempUsageDetail_20' ) start [2025-04-07 17:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856381', 'tblTempUsageDetail_20' ) end [2025-04-07 17:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:26:26] Production.INFO: ==6972== Releasing lock... [2025-04-07 17:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:26:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-07 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:27:05 [end_date_ymd] => 2025-04-07 17:27:05 [RateCDR] => 1 ) [2025-04-07 17:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 14:27:05' and `end` < '2025-04-07 17:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 17:27:19] Production.INFO: count ==4751 [2025-04-07 17:27:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:27:05 - End Time 2025-04-07 17:27:05 [2025-04-07 17:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856386', 'tblTempUsageDetail_20' ) start [2025-04-07 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856386', 'tblTempUsageDetail_20' ) end [2025-04-07 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856386', 'tblTempVendorCDR_20' ) start [2025-04-07 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856386', 'tblTempVendorCDR_20' ) end [2025-04-07 17:27:21] Production.INFO: ProcessCDR(1,14856386,1,1,2) [2025-04-07 17:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856386', 'tblTempUsageDetail_20' ) start [2025-04-07 17:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856386', 'tblTempUsageDetail_20' ) end [2025-04-07 17:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:27:26] Production.INFO: ==7052== Releasing lock... [2025-04-07 17:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:27:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-07 17:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:28:06 [end_date_ymd] => 2025-04-07 17:28:06 [RateCDR] => 1 ) [2025-04-07 17: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-04-07 14:28:06' and `end` < '2025-04-07 17: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-04-07 17:28:20] Production.INFO: count ==4747 [2025-04-07 17:28:22] Production.ERROR: pbx CDR StartTime 2025-04-07 14:28:06 - End Time 2025-04-07 17:28:06 [2025-04-07 17:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856391', 'tblTempUsageDetail_20' ) start [2025-04-07 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856391', 'tblTempUsageDetail_20' ) end [2025-04-07 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856391', 'tblTempVendorCDR_20' ) start [2025-04-07 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856391', 'tblTempVendorCDR_20' ) end [2025-04-07 17:28:22] Production.INFO: ProcessCDR(1,14856391,1,1,2) [2025-04-07 17:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856391', 'tblTempUsageDetail_20' ) start [2025-04-07 17:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856391', 'tblTempUsageDetail_20' ) end [2025-04-07 17:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:28:26] Production.INFO: ==7133== Releasing lock... [2025-04-07 17:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:28:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-07 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:29:05 [end_date_ymd] => 2025-04-07 17:29:05 [RateCDR] => 1 ) [2025-04-07 17: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-04-07 14:29:05' and `end` < '2025-04-07 17: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-04-07 17:29:19] Production.INFO: count ==4742 [2025-04-07 17:29:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:29:05 - End Time 2025-04-07 17:29:05 [2025-04-07 17:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856396', 'tblTempUsageDetail_20' ) start [2025-04-07 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856396', 'tblTempUsageDetail_20' ) end [2025-04-07 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856396', 'tblTempVendorCDR_20' ) start [2025-04-07 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856396', 'tblTempVendorCDR_20' ) end [2025-04-07 17:29:21] Production.INFO: ProcessCDR(1,14856396,1,1,2) [2025-04-07 17:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856396', 'tblTempUsageDetail_20' ) start [2025-04-07 17:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856396', 'tblTempUsageDetail_20' ) end [2025-04-07 17:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:29:26] Production.INFO: ==7215== Releasing lock... [2025-04-07 17:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:29:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-07 17:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:30:07 [end_date_ymd] => 2025-04-07 17:30:07 [RateCDR] => 1 ) [2025-04-07 17:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 14:30:07' and `end` < '2025-04-07 17:30: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-04-07 17:30:21] Production.INFO: count ==4733 [2025-04-07 17:30:23] Production.ERROR: pbx CDR StartTime 2025-04-07 14:30:07 - End Time 2025-04-07 17:30:07 [2025-04-07 17:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856401', 'tblTempUsageDetail_20' ) start [2025-04-07 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856401', 'tblTempUsageDetail_20' ) end [2025-04-07 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856401', 'tblTempVendorCDR_20' ) start [2025-04-07 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856401', 'tblTempVendorCDR_20' ) end [2025-04-07 17:30:23] Production.INFO: ProcessCDR(1,14856401,1,1,2) [2025-04-07 17:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856401', 'tblTempUsageDetail_20' ) start [2025-04-07 17:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856401', 'tblTempUsageDetail_20' ) end [2025-04-07 17:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:30:26] Production.INFO: ==7303== Releasing lock... [2025-04-07 17:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:30:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-07 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:31:05 [end_date_ymd] => 2025-04-07 17:31:05 [RateCDR] => 1 ) [2025-04-07 17: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-04-07 14:31:05' and `end` < '2025-04-07 17: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-04-07 17:31:19] Production.INFO: count ==4724 [2025-04-07 17:31:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:31:05 - End Time 2025-04-07 17:31:05 [2025-04-07 17:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856407', 'tblTempUsageDetail_20' ) start [2025-04-07 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856407', 'tblTempUsageDetail_20' ) end [2025-04-07 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856407', 'tblTempVendorCDR_20' ) start [2025-04-07 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856407', 'tblTempVendorCDR_20' ) end [2025-04-07 17:31:21] Production.INFO: ProcessCDR(1,14856407,1,1,2) [2025-04-07 17:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856407', 'tblTempUsageDetail_20' ) start [2025-04-07 17:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856407', 'tblTempUsageDetail_20' ) end [2025-04-07 17:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:31:26] Production.INFO: ==7388== Releasing lock... [2025-04-07 17:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:31:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-07 17:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:32:06 [end_date_ymd] => 2025-04-07 17:32:06 [RateCDR] => 1 ) [2025-04-07 17:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 14:32:06' and `end` < '2025-04-07 17:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 17:32:20] Production.INFO: count ==4724 [2025-04-07 17:32:22] Production.ERROR: pbx CDR StartTime 2025-04-07 14:32:06 - End Time 2025-04-07 17:32:06 [2025-04-07 17:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856412', 'tblTempUsageDetail_20' ) start [2025-04-07 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856412', 'tblTempUsageDetail_20' ) end [2025-04-07 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856412', 'tblTempVendorCDR_20' ) start [2025-04-07 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856412', 'tblTempVendorCDR_20' ) end [2025-04-07 17:32:22] Production.INFO: ProcessCDR(1,14856412,1,1,2) [2025-04-07 17:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856412', 'tblTempUsageDetail_20' ) start [2025-04-07 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856412', 'tblTempUsageDetail_20' ) end [2025-04-07 17:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:32:27] Production.INFO: ==7471== Releasing lock... [2025-04-07 17:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:32:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-07 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:33:05 [end_date_ymd] => 2025-04-07 17:33:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:33:05' and `end` < '2025-04-07 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-04-07 17:33:19] Production.INFO: count ==4709 [2025-04-07 17:33:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:33:05 - End Time 2025-04-07 17:33:05 [2025-04-07 17:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856417', 'tblTempUsageDetail_20' ) start [2025-04-07 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856417', 'tblTempUsageDetail_20' ) end [2025-04-07 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856417', 'tblTempVendorCDR_20' ) start [2025-04-07 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856417', 'tblTempVendorCDR_20' ) end [2025-04-07 17:33:21] Production.INFO: ProcessCDR(1,14856417,1,1,2) [2025-04-07 17:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856417', 'tblTempUsageDetail_20' ) start [2025-04-07 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856417', 'tblTempUsageDetail_20' ) end [2025-04-07 17:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:33:26] Production.INFO: ==7551== Releasing lock... [2025-04-07 17:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:33:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-07 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:34:05 [end_date_ymd] => 2025-04-07 17:34:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:34:05' and `end` < '2025-04-07 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-04-07 17:34:19] Production.INFO: count ==4705 [2025-04-07 17:34:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:34:05 - End Time 2025-04-07 17:34:05 [2025-04-07 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856422', 'tblTempUsageDetail_20' ) start [2025-04-07 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856422', 'tblTempUsageDetail_20' ) end [2025-04-07 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856422', 'tblTempVendorCDR_20' ) start [2025-04-07 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856422', 'tblTempVendorCDR_20' ) end [2025-04-07 17:34:21] Production.INFO: ProcessCDR(1,14856422,1,1,2) [2025-04-07 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856422', 'tblTempUsageDetail_20' ) start [2025-04-07 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856422', 'tblTempUsageDetail_20' ) end [2025-04-07 17:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:34:26] Production.INFO: ==7627== Releasing lock... [2025-04-07 17:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:34:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-07 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:35:05 [end_date_ymd] => 2025-04-07 17:35:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:35:05' and `end` < '2025-04-07 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-04-07 17:35:19] Production.INFO: count ==4697 [2025-04-07 17:35:20] Production.ERROR: pbx CDR StartTime 2025-04-07 14:35:05 - End Time 2025-04-07 17:35:05 [2025-04-07 17:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856427', 'tblTempUsageDetail_20' ) start [2025-04-07 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856427', 'tblTempUsageDetail_20' ) end [2025-04-07 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856427', 'tblTempVendorCDR_20' ) start [2025-04-07 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856427', 'tblTempVendorCDR_20' ) end [2025-04-07 17:35:21] Production.INFO: ProcessCDR(1,14856427,1,1,2) [2025-04-07 17:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856427', 'tblTempUsageDetail_20' ) start [2025-04-07 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856427', 'tblTempUsageDetail_20' ) end [2025-04-07 17:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:35:26] Production.INFO: ==7700== Releasing lock... [2025-04-07 17:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:35:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-07 17:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:36:06 [end_date_ymd] => 2025-04-07 17:36:06 [RateCDR] => 1 ) [2025-04-07 17: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-04-07 14:36:06' and `end` < '2025-04-07 17: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-04-07 17:36:20] Production.INFO: count ==4690 [2025-04-07 17:36:22] Production.ERROR: pbx CDR StartTime 2025-04-07 14:36:06 - End Time 2025-04-07 17:36:06 [2025-04-07 17:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856432', 'tblTempUsageDetail_20' ) start [2025-04-07 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856432', 'tblTempUsageDetail_20' ) end [2025-04-07 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856432', 'tblTempVendorCDR_20' ) start [2025-04-07 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856432', 'tblTempVendorCDR_20' ) end [2025-04-07 17:36:22] Production.INFO: ProcessCDR(1,14856432,1,1,2) [2025-04-07 17:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856432', 'tblTempUsageDetail_20' ) start [2025-04-07 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856432', 'tblTempUsageDetail_20' ) end [2025-04-07 17:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:36:26] Production.INFO: ==7773== Releasing lock... [2025-04-07 17:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:36:26] Production.INFO: 63 MB #Memory Used# [2025-04-07 17:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:37:06 [end_date_ymd] => 2025-04-07 17:37:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:37:06' and `end` < '2025-04-07 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-04-07 17:37:19] Production.INFO: count ==4683 [2025-04-07 17:37:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:37:06 - End Time 2025-04-07 17:37:06 [2025-04-07 17:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856437', 'tblTempUsageDetail_20' ) start [2025-04-07 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856437', 'tblTempUsageDetail_20' ) end [2025-04-07 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856437', 'tblTempVendorCDR_20' ) start [2025-04-07 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856437', 'tblTempVendorCDR_20' ) end [2025-04-07 17:37:21] Production.INFO: ProcessCDR(1,14856437,1,1,2) [2025-04-07 17:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856437', 'tblTempUsageDetail_20' ) start [2025-04-07 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856437', 'tblTempUsageDetail_20' ) end [2025-04-07 17:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:37:26] Production.INFO: ==7848== Releasing lock... [2025-04-07 17:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:37:26] Production.INFO: 63 MB #Memory Used# [2025-04-07 17:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:38:06 [end_date_ymd] => 2025-04-07 17:38:06 [RateCDR] => 1 ) [2025-04-07 17: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-04-07 14:38:06' and `end` < '2025-04-07 17: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-04-07 17:38:20] Production.INFO: count ==4678 [2025-04-07 17:38:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:38:06 - End Time 2025-04-07 17:38:06 [2025-04-07 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856442', 'tblTempUsageDetail_20' ) start [2025-04-07 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856442', 'tblTempUsageDetail_20' ) end [2025-04-07 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856442', 'tblTempVendorCDR_20' ) start [2025-04-07 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856442', 'tblTempVendorCDR_20' ) end [2025-04-07 17:38:22] Production.INFO: ProcessCDR(1,14856442,1,1,2) [2025-04-07 17:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856442', 'tblTempUsageDetail_20' ) start [2025-04-07 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856442', 'tblTempUsageDetail_20' ) end [2025-04-07 17:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:38:27] Production.INFO: ==7919== Releasing lock... [2025-04-07 17:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:38:27] Production.INFO: 63 MB #Memory Used# [2025-04-07 17:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:39:06 [end_date_ymd] => 2025-04-07 17:39:06 [RateCDR] => 1 ) [2025-04-07 17:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 14:39:06' and `end` < '2025-04-07 17:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 17:39:20] Production.INFO: count ==4682 [2025-04-07 17:39:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:39:06 - End Time 2025-04-07 17:39:06 [2025-04-07 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856447', 'tblTempUsageDetail_20' ) start [2025-04-07 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856447', 'tblTempUsageDetail_20' ) end [2025-04-07 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856447', 'tblTempVendorCDR_20' ) start [2025-04-07 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856447', 'tblTempVendorCDR_20' ) end [2025-04-07 17:39:21] Production.INFO: ProcessCDR(1,14856447,1,1,2) [2025-04-07 17:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856447', 'tblTempUsageDetail_20' ) start [2025-04-07 17:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856447', 'tblTempUsageDetail_20' ) end [2025-04-07 17:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:39:27] Production.INFO: ==7989== Releasing lock... [2025-04-07 17:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:39:27] Production.INFO: 63 MB #Memory Used# [2025-04-07 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:40:06 [end_date_ymd] => 2025-04-07 17:40:06 [RateCDR] => 1 ) [2025-04-07 17:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 14:40:06' and `end` < '2025-04-07 17:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 17:40:20] Production.INFO: count ==4650 [2025-04-07 17:40:22] Production.ERROR: pbx CDR StartTime 2025-04-07 14:40:06 - End Time 2025-04-07 17:40:06 [2025-04-07 17:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856453', 'tblTempUsageDetail_20' ) start [2025-04-07 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856453', 'tblTempUsageDetail_20' ) end [2025-04-07 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856453', 'tblTempVendorCDR_20' ) start [2025-04-07 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856453', 'tblTempVendorCDR_20' ) end [2025-04-07 17:40:22] Production.INFO: ProcessCDR(1,14856453,1,1,2) [2025-04-07 17:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856453', 'tblTempUsageDetail_20' ) start [2025-04-07 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856453', 'tblTempUsageDetail_20' ) end [2025-04-07 17:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:40:27] Production.INFO: ==8103== Releasing lock... [2025-04-07 17:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:40:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-07 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:41:05 [end_date_ymd] => 2025-04-07 17:41:05 [RateCDR] => 1 ) [2025-04-07 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 14:41:05' and `end` < '2025-04-07 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 17:41:18] Production.INFO: count ==4651 [2025-04-07 17:41:20] Production.ERROR: pbx CDR StartTime 2025-04-07 14:41:05 - End Time 2025-04-07 17:41:05 [2025-04-07 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856458', 'tblTempUsageDetail_20' ) start [2025-04-07 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856458', 'tblTempUsageDetail_20' ) end [2025-04-07 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856458', 'tblTempVendorCDR_20' ) start [2025-04-07 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856458', 'tblTempVendorCDR_20' ) end [2025-04-07 17:41:20] Production.INFO: ProcessCDR(1,14856458,1,1,2) [2025-04-07 17:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856458', 'tblTempUsageDetail_20' ) start [2025-04-07 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856458', 'tblTempUsageDetail_20' ) end [2025-04-07 17:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:41:25] Production.INFO: ==8182== Releasing lock... [2025-04-07 17:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:41:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-07 17:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:42:06 [end_date_ymd] => 2025-04-07 17:42:06 [RateCDR] => 1 ) [2025-04-07 17:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 14:42:06' and `end` < '2025-04-07 17:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 17:42:20] Production.INFO: count ==4621 [2025-04-07 17:42:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:42:06 - End Time 2025-04-07 17:42:06 [2025-04-07 17:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856463', 'tblTempUsageDetail_20' ) start [2025-04-07 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856463', 'tblTempUsageDetail_20' ) end [2025-04-07 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856463', 'tblTempVendorCDR_20' ) start [2025-04-07 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856463', 'tblTempVendorCDR_20' ) end [2025-04-07 17:42:21] Production.INFO: ProcessCDR(1,14856463,1,1,2) [2025-04-07 17:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856463', 'tblTempUsageDetail_20' ) start [2025-04-07 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856463', 'tblTempUsageDetail_20' ) end [2025-04-07 17:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:42:26] Production.INFO: ==8257== Releasing lock... [2025-04-07 17:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:42:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-07 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:43:05 [end_date_ymd] => 2025-04-07 17:43:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:43:05' and `end` < '2025-04-07 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-04-07 17:43:19] Production.INFO: count ==4637 [2025-04-07 17:43:20] Production.ERROR: pbx CDR StartTime 2025-04-07 14:43:05 - End Time 2025-04-07 17:43:05 [2025-04-07 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856468', 'tblTempUsageDetail_20' ) start [2025-04-07 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856468', 'tblTempUsageDetail_20' ) end [2025-04-07 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856468', 'tblTempVendorCDR_20' ) start [2025-04-07 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856468', 'tblTempVendorCDR_20' ) end [2025-04-07 17:43:21] Production.INFO: ProcessCDR(1,14856468,1,1,2) [2025-04-07 17:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856468', 'tblTempUsageDetail_20' ) start [2025-04-07 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856468', 'tblTempUsageDetail_20' ) end [2025-04-07 17:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:43:26] Production.INFO: ==8330== Releasing lock... [2025-04-07 17:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:43:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-07 17:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:44:06 [end_date_ymd] => 2025-04-07 17:44:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:44:06' and `end` < '2025-04-07 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-04-07 17:44:19] Production.INFO: count ==4634 [2025-04-07 17:44:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:44:06 - End Time 2025-04-07 17:44:06 [2025-04-07 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856473', 'tblTempUsageDetail_20' ) start [2025-04-07 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856473', 'tblTempUsageDetail_20' ) end [2025-04-07 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856473', 'tblTempVendorCDR_20' ) start [2025-04-07 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856473', 'tblTempVendorCDR_20' ) end [2025-04-07 17:44:21] Production.INFO: ProcessCDR(1,14856473,1,1,2) [2025-04-07 17:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856473', 'tblTempUsageDetail_20' ) start [2025-04-07 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856473', 'tblTempUsageDetail_20' ) end [2025-04-07 17:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:44:26] Production.INFO: ==8411== Releasing lock... [2025-04-07 17:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:44:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-07 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:45:05 [end_date_ymd] => 2025-04-07 17:45:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:45:05' and `end` < '2025-04-07 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-04-07 17:45:18] Production.INFO: count ==4637 [2025-04-07 17:45:20] Production.ERROR: pbx CDR StartTime 2025-04-07 14:45:05 - End Time 2025-04-07 17:45:05 [2025-04-07 17:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856478', 'tblTempUsageDetail_20' ) start [2025-04-07 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856478', 'tblTempUsageDetail_20' ) end [2025-04-07 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856478', 'tblTempVendorCDR_20' ) start [2025-04-07 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856478', 'tblTempVendorCDR_20' ) end [2025-04-07 17:45:20] Production.INFO: ProcessCDR(1,14856478,1,1,2) [2025-04-07 17:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856478', 'tblTempUsageDetail_20' ) start [2025-04-07 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856478', 'tblTempUsageDetail_20' ) end [2025-04-07 17:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:45:26] Production.INFO: ==8484== Releasing lock... [2025-04-07 17:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:45:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-07 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:46:05 [end_date_ymd] => 2025-04-07 17:46:05 [RateCDR] => 1 ) [2025-04-07 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 14:46:05' and `end` < '2025-04-07 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 17:46:19] Production.INFO: count ==4617 [2025-04-07 17:46:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:46:05 - End Time 2025-04-07 17:46:05 [2025-04-07 17:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856483', 'tblTempUsageDetail_20' ) start [2025-04-07 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856483', 'tblTempUsageDetail_20' ) end [2025-04-07 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856483', 'tblTempVendorCDR_20' ) start [2025-04-07 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856483', 'tblTempVendorCDR_20' ) end [2025-04-07 17:46:21] Production.INFO: ProcessCDR(1,14856483,1,1,2) [2025-04-07 17:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856483', 'tblTempUsageDetail_20' ) start [2025-04-07 17:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856483', 'tblTempUsageDetail_20' ) end [2025-04-07 17:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:46:26] Production.INFO: ==8561== Releasing lock... [2025-04-07 17:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:46:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-07 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:47:05 [end_date_ymd] => 2025-04-07 17:47:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:47:05' and `end` < '2025-04-07 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-04-07 17:47:19] Production.INFO: count ==4625 [2025-04-07 17:47:20] Production.ERROR: pbx CDR StartTime 2025-04-07 14:47:05 - End Time 2025-04-07 17:47:05 [2025-04-07 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856488', 'tblTempUsageDetail_20' ) start [2025-04-07 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856488', 'tblTempUsageDetail_20' ) end [2025-04-07 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856488', 'tblTempVendorCDR_20' ) start [2025-04-07 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856488', 'tblTempVendorCDR_20' ) end [2025-04-07 17:47:20] Production.INFO: ProcessCDR(1,14856488,1,1,2) [2025-04-07 17:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856488', 'tblTempUsageDetail_20' ) start [2025-04-07 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856488', 'tblTempUsageDetail_20' ) end [2025-04-07 17:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:47:26] Production.INFO: ==8633== Releasing lock... [2025-04-07 17:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:47:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-07 17:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:48:06 [end_date_ymd] => 2025-04-07 17:48:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:48:06' and `end` < '2025-04-07 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-04-07 17:48:19] Production.INFO: count ==4626 [2025-04-07 17:48:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:48:06 - End Time 2025-04-07 17:48:06 [2025-04-07 17:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856493', 'tblTempUsageDetail_20' ) start [2025-04-07 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856493', 'tblTempUsageDetail_20' ) end [2025-04-07 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856493', 'tblTempVendorCDR_20' ) start [2025-04-07 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856493', 'tblTempVendorCDR_20' ) end [2025-04-07 17:48:21] Production.INFO: ProcessCDR(1,14856493,1,1,2) [2025-04-07 17:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856493', 'tblTempUsageDetail_20' ) start [2025-04-07 17:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856493', 'tblTempUsageDetail_20' ) end [2025-04-07 17:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:48:26] Production.INFO: ==8707== Releasing lock... [2025-04-07 17:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:48:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-07 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:49:05 [end_date_ymd] => 2025-04-07 17:49:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:49:05' and `end` < '2025-04-07 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-04-07 17:49:19] Production.INFO: count ==4580 [2025-04-07 17:49:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:49:05 - End Time 2025-04-07 17:49:05 [2025-04-07 17:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856498', 'tblTempUsageDetail_20' ) start [2025-04-07 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856498', 'tblTempUsageDetail_20' ) end [2025-04-07 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856498', 'tblTempVendorCDR_20' ) start [2025-04-07 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856498', 'tblTempVendorCDR_20' ) end [2025-04-07 17:49:21] Production.INFO: ProcessCDR(1,14856498,1,1,2) [2025-04-07 17:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856498', 'tblTempUsageDetail_20' ) start [2025-04-07 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856498', 'tblTempUsageDetail_20' ) end [2025-04-07 17:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:49:26] Production.INFO: ==8781== Releasing lock... [2025-04-07 17:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:49:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-07 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:50:06 [end_date_ymd] => 2025-04-07 17:50:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:50:06' and `end` < '2025-04-07 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-04-07 17:50:20] Production.INFO: count ==4562 [2025-04-07 17:50:22] Production.ERROR: pbx CDR StartTime 2025-04-07 14:50:06 - End Time 2025-04-07 17:50:06 [2025-04-07 17:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856504', 'tblTempUsageDetail_20' ) start [2025-04-07 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856504', 'tblTempUsageDetail_20' ) end [2025-04-07 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856504', 'tblTempVendorCDR_20' ) start [2025-04-07 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856504', 'tblTempVendorCDR_20' ) end [2025-04-07 17:50:22] Production.INFO: ProcessCDR(1,14856504,1,1,2) [2025-04-07 17:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856504', 'tblTempUsageDetail_20' ) start [2025-04-07 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856504', 'tblTempUsageDetail_20' ) end [2025-04-07 17:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:50:27] Production.INFO: ==8854== Releasing lock... [2025-04-07 17:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:50:27] Production.INFO: 62.25 MB #Memory Used# [2025-04-07 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:51:05 [end_date_ymd] => 2025-04-07 17:51:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:51:05' and `end` < '2025-04-07 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-04-07 17:51:19] Production.INFO: count ==4574 [2025-04-07 17:51:20] Production.ERROR: pbx CDR StartTime 2025-04-07 14:51:05 - End Time 2025-04-07 17:51:05 [2025-04-07 17:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856509', 'tblTempUsageDetail_20' ) start [2025-04-07 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856509', 'tblTempUsageDetail_20' ) end [2025-04-07 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856509', 'tblTempVendorCDR_20' ) start [2025-04-07 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856509', 'tblTempVendorCDR_20' ) end [2025-04-07 17:51:21] Production.INFO: ProcessCDR(1,14856509,1,1,2) [2025-04-07 17:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856509', 'tblTempUsageDetail_20' ) start [2025-04-07 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856509', 'tblTempUsageDetail_20' ) end [2025-04-07 17:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:51:25] Production.INFO: ==8951== Releasing lock... [2025-04-07 17:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:51:25] Production.INFO: 62.25 MB #Memory Used# [2025-04-07 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:52:05 [end_date_ymd] => 2025-04-07 17:52:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:52:05' and `end` < '2025-04-07 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-04-07 17:52:18] Production.INFO: count ==4565 [2025-04-07 17:52:20] Production.ERROR: pbx CDR StartTime 2025-04-07 14:52:05 - End Time 2025-04-07 17:52:05 [2025-04-07 17:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856514', 'tblTempUsageDetail_20' ) start [2025-04-07 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856514', 'tblTempUsageDetail_20' ) end [2025-04-07 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856514', 'tblTempVendorCDR_20' ) start [2025-04-07 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856514', 'tblTempVendorCDR_20' ) end [2025-04-07 17:52:20] Production.INFO: ProcessCDR(1,14856514,1,1,2) [2025-04-07 17:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856514', 'tblTempUsageDetail_20' ) start [2025-04-07 17:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856514', 'tblTempUsageDetail_20' ) end [2025-04-07 17:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:52:25] Production.INFO: ==9024== Releasing lock... [2025-04-07 17:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:52:25] Production.INFO: 62.25 MB #Memory Used# [2025-04-07 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:53:05 [end_date_ymd] => 2025-04-07 17:53:05 [RateCDR] => 1 ) [2025-04-07 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 14:53:05' and `end` < '2025-04-07 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 17:53:18] Production.INFO: count ==4563 [2025-04-07 17:53:20] Production.ERROR: pbx CDR StartTime 2025-04-07 14:53:05 - End Time 2025-04-07 17:53:05 [2025-04-07 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856519', 'tblTempUsageDetail_20' ) start [2025-04-07 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856519', 'tblTempUsageDetail_20' ) end [2025-04-07 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856519', 'tblTempVendorCDR_20' ) start [2025-04-07 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856519', 'tblTempVendorCDR_20' ) end [2025-04-07 17:53:20] Production.INFO: ProcessCDR(1,14856519,1,1,2) [2025-04-07 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856519', 'tblTempUsageDetail_20' ) start [2025-04-07 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856519', 'tblTempUsageDetail_20' ) end [2025-04-07 17:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:53:25] Production.INFO: ==9097== Releasing lock... [2025-04-07 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:53:25] Production.INFO: 62.25 MB #Memory Used# [2025-04-07 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:54:05 [end_date_ymd] => 2025-04-07 17:54:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:54:05' and `end` < '2025-04-07 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-04-07 17:54:19] Production.INFO: count ==4552 [2025-04-07 17:54:20] Production.ERROR: pbx CDR StartTime 2025-04-07 14:54:05 - End Time 2025-04-07 17:54:05 [2025-04-07 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856524', 'tblTempUsageDetail_20' ) start [2025-04-07 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856524', 'tblTempUsageDetail_20' ) end [2025-04-07 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856524', 'tblTempVendorCDR_20' ) start [2025-04-07 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856524', 'tblTempVendorCDR_20' ) end [2025-04-07 17:54:20] Production.INFO: ProcessCDR(1,14856524,1,1,2) [2025-04-07 17:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856524', 'tblTempUsageDetail_20' ) start [2025-04-07 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856524', 'tblTempUsageDetail_20' ) end [2025-04-07 17:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:54:26] Production.INFO: ==9170== Releasing lock... [2025-04-07 17:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:54:26] Production.INFO: 62 MB #Memory Used# [2025-04-07 17:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:55:06 [end_date_ymd] => 2025-04-07 17:55:06 [RateCDR] => 1 ) [2025-04-07 17: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-04-07 14:55:06' and `end` < '2025-04-07 17: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-04-07 17:55:19] Production.INFO: count ==4530 [2025-04-07 17:55:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:55:06 - End Time 2025-04-07 17:55:06 [2025-04-07 17:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856529', 'tblTempUsageDetail_20' ) start [2025-04-07 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856529', 'tblTempUsageDetail_20' ) end [2025-04-07 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856529', 'tblTempVendorCDR_20' ) start [2025-04-07 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856529', 'tblTempVendorCDR_20' ) end [2025-04-07 17:55:21] Production.INFO: ProcessCDR(1,14856529,1,1,2) [2025-04-07 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856529', 'tblTempUsageDetail_20' ) start [2025-04-07 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856529', 'tblTempUsageDetail_20' ) end [2025-04-07 17:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:55:26] Production.INFO: ==9242== Releasing lock... [2025-04-07 17:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:55:26] Production.INFO: 62 MB #Memory Used# [2025-04-07 17:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:56:06 [end_date_ymd] => 2025-04-07 17:56:06 [RateCDR] => 1 ) [2025-04-07 17: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-04-07 14:56:06' and `end` < '2025-04-07 17: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-04-07 17:56:19] Production.INFO: count ==4525 [2025-04-07 17:56:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:56:06 - End Time 2025-04-07 17:56:06 [2025-04-07 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856534', 'tblTempUsageDetail_20' ) start [2025-04-07 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856534', 'tblTempUsageDetail_20' ) end [2025-04-07 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856534', 'tblTempVendorCDR_20' ) start [2025-04-07 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856534', 'tblTempVendorCDR_20' ) end [2025-04-07 17:56:21] Production.INFO: ProcessCDR(1,14856534,1,1,2) [2025-04-07 17:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856534', 'tblTempUsageDetail_20' ) start [2025-04-07 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856534', 'tblTempUsageDetail_20' ) end [2025-04-07 17:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:56:26] Production.INFO: ==9358== Releasing lock... [2025-04-07 17:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:56:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-07 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:57:05 [end_date_ymd] => 2025-04-07 17:57:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 14:57:05' and `end` < '2025-04-07 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-04-07 17:57:19] Production.INFO: count ==4528 [2025-04-07 17:57:20] Production.ERROR: pbx CDR StartTime 2025-04-07 14:57:05 - End Time 2025-04-07 17:57:05 [2025-04-07 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856539', 'tblTempUsageDetail_20' ) start [2025-04-07 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856539', 'tblTempUsageDetail_20' ) end [2025-04-07 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856539', 'tblTempVendorCDR_20' ) start [2025-04-07 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856539', 'tblTempVendorCDR_20' ) end [2025-04-07 17:57:20] Production.INFO: ProcessCDR(1,14856539,1,1,2) [2025-04-07 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856539', 'tblTempUsageDetail_20' ) start [2025-04-07 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856539', 'tblTempUsageDetail_20' ) end [2025-04-07 17:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:57:25] Production.INFO: ==9431== Releasing lock... [2025-04-07 17:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:57:25] Production.INFO: 62 MB #Memory Used# [2025-04-07 17:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:58:06 [end_date_ymd] => 2025-04-07 17:58:06 [RateCDR] => 1 ) [2025-04-07 17: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-04-07 14:58:06' and `end` < '2025-04-07 17: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-04-07 17:58:19] Production.INFO: count ==4515 [2025-04-07 17:58:21] Production.ERROR: pbx CDR StartTime 2025-04-07 14:58:06 - End Time 2025-04-07 17:58:06 [2025-04-07 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856544', 'tblTempUsageDetail_20' ) start [2025-04-07 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856544', 'tblTempUsageDetail_20' ) end [2025-04-07 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856544', 'tblTempVendorCDR_20' ) start [2025-04-07 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856544', 'tblTempVendorCDR_20' ) end [2025-04-07 17:58:21] Production.INFO: ProcessCDR(1,14856544,1,1,2) [2025-04-07 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856544', 'tblTempUsageDetail_20' ) start [2025-04-07 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856544', 'tblTempUsageDetail_20' ) end [2025-04-07 17:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:58:26] Production.INFO: ==9505== Releasing lock... [2025-04-07 17:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:58:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-07 17:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 14:59:04 [end_date_ymd] => 2025-04-07 17:59:04 [RateCDR] => 1 ) [2025-04-07 17:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 14:59:04' and `end` < '2025-04-07 17:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 17:59:18] Production.INFO: count ==4509 [2025-04-07 17:59:20] Production.ERROR: pbx CDR StartTime 2025-04-07 14:59:04 - End Time 2025-04-07 17:59:04 [2025-04-07 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856549', 'tblTempUsageDetail_20' ) start [2025-04-07 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856549', 'tblTempUsageDetail_20' ) end [2025-04-07 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856549', 'tblTempVendorCDR_20' ) start [2025-04-07 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856549', 'tblTempVendorCDR_20' ) end [2025-04-07 17:59:20] Production.INFO: ProcessCDR(1,14856549,1,1,2) [2025-04-07 17:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 17:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856549', 'tblTempUsageDetail_20' ) start [2025-04-07 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856549', 'tblTempUsageDetail_20' ) end [2025-04-07 17:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 17:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 17:59:24] Production.INFO: ==9579== Releasing lock... [2025-04-07 17:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 17:59:24] Production.INFO: 61.75 MB #Memory Used# [2025-04-07 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:00:06 [end_date_ymd] => 2025-04-07 18:00:06 [RateCDR] => 1 ) [2025-04-07 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 15:00:06' and `end` < '2025-04-07 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 18:00:20] Production.INFO: count ==4503 [2025-04-07 18:00:22] Production.ERROR: pbx CDR StartTime 2025-04-07 15:00:06 - End Time 2025-04-07 18:00:06 [2025-04-07 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856555', 'tblTempUsageDetail_20' ) start [2025-04-07 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856555', 'tblTempUsageDetail_20' ) end [2025-04-07 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856555', 'tblTempVendorCDR_20' ) start [2025-04-07 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856555', 'tblTempVendorCDR_20' ) end [2025-04-07 18:00:22] Production.INFO: ProcessCDR(1,14856555,1,1,2) [2025-04-07 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856555', 'tblTempUsageDetail_20' ) start [2025-04-07 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856555', 'tblTempUsageDetail_20' ) end [2025-04-07 18:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:00:27] Production.INFO: ==9660== Releasing lock... [2025-04-07 18:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:00:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-07 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:01:05 [end_date_ymd] => 2025-04-07 18:01:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:01:05' and `end` < '2025-04-07 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-04-07 18:01:19] Production.INFO: count ==4475 [2025-04-07 18:01:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:01:05 - End Time 2025-04-07 18:01:05 [2025-04-07 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856560', 'tblTempUsageDetail_20' ) start [2025-04-07 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856560', 'tblTempUsageDetail_20' ) end [2025-04-07 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856560', 'tblTempVendorCDR_20' ) start [2025-04-07 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856560', 'tblTempVendorCDR_20' ) end [2025-04-07 18:01:20] Production.INFO: ProcessCDR(1,14856560,1,1,2) [2025-04-07 18:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856560', 'tblTempUsageDetail_20' ) start [2025-04-07 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856560', 'tblTempUsageDetail_20' ) end [2025-04-07 18:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:01:24] Production.INFO: ==9750== Releasing lock... [2025-04-07 18:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:01:24] Production.INFO: 61.5 MB #Memory Used# [2025-04-07 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:02:06 [end_date_ymd] => 2025-04-07 18:02:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:02:06' and `end` < '2025-04-07 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-04-07 18:02:19] Production.INFO: count ==4469 [2025-04-07 18:02:21] Production.ERROR: pbx CDR StartTime 2025-04-07 15:02:06 - End Time 2025-04-07 18:02:06 [2025-04-07 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856565', 'tblTempUsageDetail_20' ) start [2025-04-07 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856565', 'tblTempUsageDetail_20' ) end [2025-04-07 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856565', 'tblTempVendorCDR_20' ) start [2025-04-07 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856565', 'tblTempVendorCDR_20' ) end [2025-04-07 18:02:21] Production.INFO: ProcessCDR(1,14856565,1,1,2) [2025-04-07 18:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856565', 'tblTempUsageDetail_20' ) start [2025-04-07 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856565', 'tblTempUsageDetail_20' ) end [2025-04-07 18:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:02:26] Production.INFO: ==9820== Releasing lock... [2025-04-07 18:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:02:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-07 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:03:05 [end_date_ymd] => 2025-04-07 18:03:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:03:05' and `end` < '2025-04-07 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-04-07 18:03:19] Production.INFO: count ==4442 [2025-04-07 18:03:21] Production.ERROR: pbx CDR StartTime 2025-04-07 15:03:05 - End Time 2025-04-07 18:03:05 [2025-04-07 18:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856570', 'tblTempUsageDetail_20' ) start [2025-04-07 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856570', 'tblTempUsageDetail_20' ) end [2025-04-07 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856570', 'tblTempVendorCDR_20' ) start [2025-04-07 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856570', 'tblTempVendorCDR_20' ) end [2025-04-07 18:03:21] Production.INFO: ProcessCDR(1,14856570,1,1,2) [2025-04-07 18:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856570', 'tblTempUsageDetail_20' ) start [2025-04-07 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856570', 'tblTempUsageDetail_20' ) end [2025-04-07 18:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:03:26] Production.INFO: ==9910== Releasing lock... [2025-04-07 18:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:03:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-07 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:04:05 [end_date_ymd] => 2025-04-07 18:04:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:04:05' and `end` < '2025-04-07 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-04-07 18:04:19] Production.INFO: count ==4426 [2025-04-07 18:04:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:04:05 - End Time 2025-04-07 18:04:05 [2025-04-07 18:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856575', 'tblTempUsageDetail_20' ) start [2025-04-07 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856575', 'tblTempUsageDetail_20' ) end [2025-04-07 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856575', 'tblTempVendorCDR_20' ) start [2025-04-07 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856575', 'tblTempVendorCDR_20' ) end [2025-04-07 18:04:20] Production.INFO: ProcessCDR(1,14856575,1,1,2) [2025-04-07 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856575', 'tblTempUsageDetail_20' ) start [2025-04-07 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856575', 'tblTempUsageDetail_20' ) end [2025-04-07 18:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:04:26] Production.INFO: ==10004== Releasing lock... [2025-04-07 18:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:04:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-07 18:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:05:06 [end_date_ymd] => 2025-04-07 18:05:06 [RateCDR] => 1 ) [2025-04-07 18:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 15:05:06' and `end` < '2025-04-07 18:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 18:05:20] Production.INFO: count ==4425 [2025-04-07 18:05:21] Production.ERROR: pbx CDR StartTime 2025-04-07 15:05:06 - End Time 2025-04-07 18:05:06 [2025-04-07 18:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856580', 'tblTempUsageDetail_20' ) start [2025-04-07 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856580', 'tblTempUsageDetail_20' ) end [2025-04-07 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856580', 'tblTempVendorCDR_20' ) start [2025-04-07 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856580', 'tblTempVendorCDR_20' ) end [2025-04-07 18:05:21] Production.INFO: ProcessCDR(1,14856580,1,1,2) [2025-04-07 18:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856580', 'tblTempUsageDetail_20' ) start [2025-04-07 18:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856580', 'tblTempUsageDetail_20' ) end [2025-04-07 18:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:05:27] Production.INFO: ==10087== Releasing lock... [2025-04-07 18:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:05:27] Production.INFO: 61 MB #Memory Used# [2025-04-07 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:06:05 [end_date_ymd] => 2025-04-07 18:06:05 [RateCDR] => 1 ) [2025-04-07 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 15:06:05' and `end` < '2025-04-07 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 18:06:18] Production.INFO: count ==4414 [2025-04-07 18:06:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:06:05 - End Time 2025-04-07 18:06:05 [2025-04-07 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856585', 'tblTempUsageDetail_20' ) start [2025-04-07 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856585', 'tblTempUsageDetail_20' ) end [2025-04-07 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856585', 'tblTempVendorCDR_20' ) start [2025-04-07 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856585', 'tblTempVendorCDR_20' ) end [2025-04-07 18:06:20] Production.INFO: ProcessCDR(1,14856585,1,1,2) [2025-04-07 18:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856585', 'tblTempUsageDetail_20' ) start [2025-04-07 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856585', 'tblTempUsageDetail_20' ) end [2025-04-07 18:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:06:25] Production.INFO: ==10173== Releasing lock... [2025-04-07 18:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:06:25] Production.INFO: 61 MB #Memory Used# [2025-04-07 18:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:07:06 [end_date_ymd] => 2025-04-07 18:07:06 [RateCDR] => 1 ) [2025-04-07 18: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-04-07 15:07:06' and `end` < '2025-04-07 18: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-04-07 18:07:19] Production.INFO: count ==4395 [2025-04-07 18:07:21] Production.ERROR: pbx CDR StartTime 2025-04-07 15:07:06 - End Time 2025-04-07 18:07:06 [2025-04-07 18:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856590', 'tblTempUsageDetail_20' ) start [2025-04-07 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856590', 'tblTempUsageDetail_20' ) end [2025-04-07 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856590', 'tblTempVendorCDR_20' ) start [2025-04-07 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856590', 'tblTempVendorCDR_20' ) end [2025-04-07 18:07:21] Production.INFO: ProcessCDR(1,14856590,1,1,2) [2025-04-07 18:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856590', 'tblTempUsageDetail_20' ) start [2025-04-07 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856590', 'tblTempUsageDetail_20' ) end [2025-04-07 18:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:07:26] Production.INFO: ==10266== Releasing lock... [2025-04-07 18:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:07:26] Production.INFO: 61 MB #Memory Used# [2025-04-07 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:08:05 [end_date_ymd] => 2025-04-07 18:08:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:08:05' and `end` < '2025-04-07 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-04-07 18:08:19] Production.INFO: count ==4375 [2025-04-07 18:08:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:08:05 - End Time 2025-04-07 18:08:05 [2025-04-07 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856595', 'tblTempUsageDetail_20' ) start [2025-04-07 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856595', 'tblTempUsageDetail_20' ) end [2025-04-07 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856595', 'tblTempVendorCDR_20' ) start [2025-04-07 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856595', 'tblTempVendorCDR_20' ) end [2025-04-07 18:08:20] Production.INFO: ProcessCDR(1,14856595,1,1,2) [2025-04-07 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856595', 'tblTempUsageDetail_20' ) start [2025-04-07 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856595', 'tblTempUsageDetail_20' ) end [2025-04-07 18:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:08:26] Production.INFO: ==10357== Releasing lock... [2025-04-07 18:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:08:26] Production.INFO: 61 MB #Memory Used# [2025-04-07 18:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:09:06 [end_date_ymd] => 2025-04-07 18:09:06 [RateCDR] => 1 ) [2025-04-07 18:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 15:09:06' and `end` < '2025-04-07 18:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 18:09:19] Production.INFO: count ==4370 [2025-04-07 18:09:21] Production.ERROR: pbx CDR StartTime 2025-04-07 15:09:06 - End Time 2025-04-07 18:09:06 [2025-04-07 18:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856600', 'tblTempUsageDetail_20' ) start [2025-04-07 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856600', 'tblTempUsageDetail_20' ) end [2025-04-07 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856600', 'tblTempVendorCDR_20' ) start [2025-04-07 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856600', 'tblTempVendorCDR_20' ) end [2025-04-07 18:09:21] Production.INFO: ProcessCDR(1,14856600,1,1,2) [2025-04-07 18:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856600', 'tblTempUsageDetail_20' ) start [2025-04-07 18:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856600', 'tblTempUsageDetail_20' ) end [2025-04-07 18:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:09:26] Production.INFO: ==10448== Releasing lock... [2025-04-07 18:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:09:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-07 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:10:06 [end_date_ymd] => 2025-04-07 18:10:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:10:06' and `end` < '2025-04-07 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-04-07 18:10:19] Production.INFO: count ==4350 [2025-04-07 18:10:21] Production.ERROR: pbx CDR StartTime 2025-04-07 15:10:06 - End Time 2025-04-07 18:10:06 [2025-04-07 18:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856606', 'tblTempUsageDetail_20' ) start [2025-04-07 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856606', 'tblTempUsageDetail_20' ) end [2025-04-07 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856606', 'tblTempVendorCDR_20' ) start [2025-04-07 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856606', 'tblTempVendorCDR_20' ) end [2025-04-07 18:10:21] Production.INFO: ProcessCDR(1,14856606,1,1,2) [2025-04-07 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856606', 'tblTempUsageDetail_20' ) start [2025-04-07 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856606', 'tblTempUsageDetail_20' ) end [2025-04-07 18:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:10:26] Production.INFO: ==10538== Releasing lock... [2025-04-07 18:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:10:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-07 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:11:05 [end_date_ymd] => 2025-04-07 18:11:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:11:05' and `end` < '2025-04-07 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-04-07 18:11:18] Production.INFO: count ==4273 [2025-04-07 18:11:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:11:05 - End Time 2025-04-07 18:11:05 [2025-04-07 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856611', 'tblTempUsageDetail_20' ) start [2025-04-07 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856611', 'tblTempUsageDetail_20' ) end [2025-04-07 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856611', 'tblTempVendorCDR_20' ) start [2025-04-07 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856611', 'tblTempVendorCDR_20' ) end [2025-04-07 18:11:20] Production.INFO: ProcessCDR(1,14856611,1,1,2) [2025-04-07 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856611', 'tblTempUsageDetail_20' ) start [2025-04-07 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856611', 'tblTempUsageDetail_20' ) end [2025-04-07 18:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:11:25] Production.INFO: ==10676== Releasing lock... [2025-04-07 18:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:11:25] Production.INFO: 60 MB #Memory Used# [2025-04-07 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:12:05 [end_date_ymd] => 2025-04-07 18:12:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:12:05' and `end` < '2025-04-07 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-04-07 18:12:18] Production.INFO: count ==4269 [2025-04-07 18:12:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:12:05 - End Time 2025-04-07 18:12:05 [2025-04-07 18:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856616', 'tblTempUsageDetail_20' ) start [2025-04-07 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856616', 'tblTempUsageDetail_20' ) end [2025-04-07 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856616', 'tblTempVendorCDR_20' ) start [2025-04-07 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856616', 'tblTempVendorCDR_20' ) end [2025-04-07 18:12:20] Production.INFO: ProcessCDR(1,14856616,1,1,2) [2025-04-07 18:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856616', 'tblTempUsageDetail_20' ) start [2025-04-07 18:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856616', 'tblTempUsageDetail_20' ) end [2025-04-07 18:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:12:26] Production.INFO: ==10769== Releasing lock... [2025-04-07 18:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:12:26] Production.INFO: 60 MB #Memory Used# [2025-04-07 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:13:05 [end_date_ymd] => 2025-04-07 18:13:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:13:05' and `end` < '2025-04-07 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-04-07 18:13:18] Production.INFO: count ==4264 [2025-04-07 18:13:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:13:05 - End Time 2025-04-07 18:13:05 [2025-04-07 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856621', 'tblTempUsageDetail_20' ) start [2025-04-07 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856621', 'tblTempUsageDetail_20' ) end [2025-04-07 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856621', 'tblTempVendorCDR_20' ) start [2025-04-07 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856621', 'tblTempVendorCDR_20' ) end [2025-04-07 18:13:20] Production.INFO: ProcessCDR(1,14856621,1,1,2) [2025-04-07 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856621', 'tblTempUsageDetail_20' ) start [2025-04-07 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856621', 'tblTempUsageDetail_20' ) end [2025-04-07 18:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:13:25] Production.INFO: ==10859== Releasing lock... [2025-04-07 18:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:13:25] Production.INFO: 60 MB #Memory Used# [2025-04-07 18:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:14:06 [end_date_ymd] => 2025-04-07 18:14:06 [RateCDR] => 1 ) [2025-04-07 18:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 15:14:06' and `end` < '2025-04-07 18:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 18:14:19] Production.INFO: count ==4273 [2025-04-07 18:14:21] Production.ERROR: pbx CDR StartTime 2025-04-07 15:14:06 - End Time 2025-04-07 18:14:06 [2025-04-07 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856626', 'tblTempUsageDetail_20' ) start [2025-04-07 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856626', 'tblTempUsageDetail_20' ) end [2025-04-07 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856626', 'tblTempVendorCDR_20' ) start [2025-04-07 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856626', 'tblTempVendorCDR_20' ) end [2025-04-07 18:14:21] Production.INFO: ProcessCDR(1,14856626,1,1,2) [2025-04-07 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856626', 'tblTempUsageDetail_20' ) start [2025-04-07 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856626', 'tblTempUsageDetail_20' ) end [2025-04-07 18:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:14:26] Production.INFO: ==10949== Releasing lock... [2025-04-07 18:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:14:26] Production.INFO: 60 MB #Memory Used# [2025-04-07 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:15:05 [end_date_ymd] => 2025-04-07 18:15:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:15:05' and `end` < '2025-04-07 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-04-07 18:15:19] Production.INFO: count ==4260 [2025-04-07 18:15:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:15:05 - End Time 2025-04-07 18:15:05 [2025-04-07 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856631', 'tblTempUsageDetail_20' ) start [2025-04-07 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856631', 'tblTempUsageDetail_20' ) end [2025-04-07 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856631', 'tblTempVendorCDR_20' ) start [2025-04-07 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856631', 'tblTempVendorCDR_20' ) end [2025-04-07 18:15:20] Production.INFO: ProcessCDR(1,14856631,1,1,2) [2025-04-07 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856631', 'tblTempUsageDetail_20' ) start [2025-04-07 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856631', 'tblTempUsageDetail_20' ) end [2025-04-07 18:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:15:24] Production.INFO: ==11047== Releasing lock... [2025-04-07 18:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:15:24] Production.INFO: 60 MB #Memory Used# [2025-04-07 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:16:05 [end_date_ymd] => 2025-04-07 18:16:05 [RateCDR] => 1 ) [2025-04-07 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 15:16:05' and `end` < '2025-04-07 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 18:16:19] Production.INFO: count ==4254 [2025-04-07 18:16:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:16:05 - End Time 2025-04-07 18:16:05 [2025-04-07 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856636', 'tblTempUsageDetail_20' ) start [2025-04-07 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856636', 'tblTempUsageDetail_20' ) end [2025-04-07 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856636', 'tblTempVendorCDR_20' ) start [2025-04-07 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856636', 'tblTempVendorCDR_20' ) end [2025-04-07 18:16:20] Production.INFO: ProcessCDR(1,14856636,1,1,2) [2025-04-07 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856636', 'tblTempUsageDetail_20' ) start [2025-04-07 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856636', 'tblTempUsageDetail_20' ) end [2025-04-07 18:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:16:25] Production.INFO: ==11135== Releasing lock... [2025-04-07 18:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:16:25] Production.INFO: 59.75 MB #Memory Used# [2025-04-07 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:17:05 [end_date_ymd] => 2025-04-07 18:17:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:17:05' and `end` < '2025-04-07 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-04-07 18:17:19] Production.INFO: count ==4230 [2025-04-07 18:17:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:17:05 - End Time 2025-04-07 18:17:05 [2025-04-07 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856641', 'tblTempUsageDetail_20' ) start [2025-04-07 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856641', 'tblTempUsageDetail_20' ) end [2025-04-07 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856641', 'tblTempVendorCDR_20' ) start [2025-04-07 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856641', 'tblTempVendorCDR_20' ) end [2025-04-07 18:17:21] Production.INFO: ProcessCDR(1,14856641,1,1,2) [2025-04-07 18:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856641', 'tblTempUsageDetail_20' ) start [2025-04-07 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856641', 'tblTempUsageDetail_20' ) end [2025-04-07 18:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:17:26] Production.INFO: ==11226== Releasing lock... [2025-04-07 18:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:17:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-07 18:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:18:06 [end_date_ymd] => 2025-04-07 18:18:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:18:06' and `end` < '2025-04-07 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-04-07 18:18:19] Production.INFO: count ==4206 [2025-04-07 18:18:21] Production.ERROR: pbx CDR StartTime 2025-04-07 15:18:06 - End Time 2025-04-07 18:18:06 [2025-04-07 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856646', 'tblTempUsageDetail_20' ) start [2025-04-07 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856646', 'tblTempUsageDetail_20' ) end [2025-04-07 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856646', 'tblTempVendorCDR_20' ) start [2025-04-07 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856646', 'tblTempVendorCDR_20' ) end [2025-04-07 18:18:21] Production.INFO: ProcessCDR(1,14856646,1,1,2) [2025-04-07 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856646', 'tblTempUsageDetail_20' ) start [2025-04-07 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856646', 'tblTempUsageDetail_20' ) end [2025-04-07 18:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:18:26] Production.INFO: ==11311== Releasing lock... [2025-04-07 18:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:18:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-07 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:19:05 [end_date_ymd] => 2025-04-07 18:19:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:19:05' and `end` < '2025-04-07 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-04-07 18:19:18] Production.INFO: count ==4198 [2025-04-07 18:19:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:19:05 - End Time 2025-04-07 18:19:05 [2025-04-07 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856651', 'tblTempUsageDetail_20' ) start [2025-04-07 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856651', 'tblTempUsageDetail_20' ) end [2025-04-07 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856651', 'tblTempVendorCDR_20' ) start [2025-04-07 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856651', 'tblTempVendorCDR_20' ) end [2025-04-07 18:19:20] Production.INFO: ProcessCDR(1,14856651,1,1,2) [2025-04-07 18:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856651', 'tblTempUsageDetail_20' ) start [2025-04-07 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856651', 'tblTempUsageDetail_20' ) end [2025-04-07 18:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:19:25] Production.INFO: ==11406== Releasing lock... [2025-04-07 18:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:19:25] Production.INFO: 59.5 MB #Memory Used# [2025-04-07 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:20:06 [end_date_ymd] => 2025-04-07 18:20:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:20:06' and `end` < '2025-04-07 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-04-07 18:20:20] Production.INFO: count ==4188 [2025-04-07 18:20:21] Production.ERROR: pbx CDR StartTime 2025-04-07 15:20:06 - End Time 2025-04-07 18:20:06 [2025-04-07 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856656', 'tblTempUsageDetail_20' ) start [2025-04-07 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856656', 'tblTempUsageDetail_20' ) end [2025-04-07 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856656', 'tblTempVendorCDR_20' ) start [2025-04-07 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856656', 'tblTempVendorCDR_20' ) end [2025-04-07 18:20:21] Production.INFO: ProcessCDR(1,14856656,1,1,2) [2025-04-07 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856656', 'tblTempUsageDetail_20' ) start [2025-04-07 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856656', 'tblTempUsageDetail_20' ) end [2025-04-07 18:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:20:26] Production.INFO: ==11500== Releasing lock... [2025-04-07 18:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:20:26] Production.INFO: 59.25 MB #Memory Used# [2025-04-07 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:21:05 [end_date_ymd] => 2025-04-07 18:21:05 [RateCDR] => 1 ) [2025-04-07 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 15:21:05' and `end` < '2025-04-07 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 18:21:18] Production.INFO: count ==4123 [2025-04-07 18:21:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:21:05 - End Time 2025-04-07 18:21:05 [2025-04-07 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856662', 'tblTempUsageDetail_20' ) start [2025-04-07 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856662', 'tblTempUsageDetail_20' ) end [2025-04-07 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856662', 'tblTempVendorCDR_20' ) start [2025-04-07 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856662', 'tblTempVendorCDR_20' ) end [2025-04-07 18:21:20] Production.INFO: ProcessCDR(1,14856662,1,1,2) [2025-04-07 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856662', 'tblTempUsageDetail_20' ) start [2025-04-07 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856662', 'tblTempUsageDetail_20' ) end [2025-04-07 18:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:21:23] Production.INFO: ==11591== Releasing lock... [2025-04-07 18:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:21:23] Production.INFO: 58.75 MB #Memory Used# [2025-04-07 18:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:22:06 [end_date_ymd] => 2025-04-07 18:22:06 [RateCDR] => 1 ) [2025-04-07 18: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-04-07 15:22:06' and `end` < '2025-04-07 18: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-04-07 18:22:19] Production.INFO: count ==4114 [2025-04-07 18:22:21] Production.ERROR: pbx CDR StartTime 2025-04-07 15:22:06 - End Time 2025-04-07 18:22:06 [2025-04-07 18:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856667', 'tblTempUsageDetail_20' ) start [2025-04-07 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856667', 'tblTempUsageDetail_20' ) end [2025-04-07 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856667', 'tblTempVendorCDR_20' ) start [2025-04-07 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856667', 'tblTempVendorCDR_20' ) end [2025-04-07 18:22:21] Production.INFO: ProcessCDR(1,14856667,1,1,2) [2025-04-07 18:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856667', 'tblTempUsageDetail_20' ) start [2025-04-07 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856667', 'tblTempUsageDetail_20' ) end [2025-04-07 18:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:22:26] Production.INFO: ==11697== Releasing lock... [2025-04-07 18:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:22:26] Production.INFO: 58.75 MB #Memory Used# [2025-04-07 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:23:05 [end_date_ymd] => 2025-04-07 18:23:05 [RateCDR] => 1 ) [2025-04-07 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 15:23:05' and `end` < '2025-04-07 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 18:23:19] Production.INFO: count ==4106 [2025-04-07 18:23:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:23:05 - End Time 2025-04-07 18:23:05 [2025-04-07 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856672', 'tblTempUsageDetail_20' ) start [2025-04-07 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856672', 'tblTempUsageDetail_20' ) end [2025-04-07 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856672', 'tblTempVendorCDR_20' ) start [2025-04-07 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856672', 'tblTempVendorCDR_20' ) end [2025-04-07 18:23:20] Production.INFO: ProcessCDR(1,14856672,1,1,2) [2025-04-07 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856672', 'tblTempUsageDetail_20' ) start [2025-04-07 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856672', 'tblTempUsageDetail_20' ) end [2025-04-07 18:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:23:24] Production.INFO: ==11790== Releasing lock... [2025-04-07 18:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:23:24] Production.INFO: 59 MB #Memory Used# [2025-04-07 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:24:06 [end_date_ymd] => 2025-04-07 18:24:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:24:06' and `end` < '2025-04-07 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-04-07 18:24:19] Production.INFO: count ==4103 [2025-04-07 18:24:21] Production.ERROR: pbx CDR StartTime 2025-04-07 15:24:06 - End Time 2025-04-07 18:24:06 [2025-04-07 18:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856677', 'tblTempUsageDetail_20' ) start [2025-04-07 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856677', 'tblTempUsageDetail_20' ) end [2025-04-07 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856677', 'tblTempVendorCDR_20' ) start [2025-04-07 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856677', 'tblTempVendorCDR_20' ) end [2025-04-07 18:24:21] Production.INFO: ProcessCDR(1,14856677,1,1,2) [2025-04-07 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856677', 'tblTempUsageDetail_20' ) start [2025-04-07 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856677', 'tblTempUsageDetail_20' ) end [2025-04-07 18:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:24:26] Production.INFO: ==11873== Releasing lock... [2025-04-07 18:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:24:26] Production.INFO: 58.75 MB #Memory Used# [2025-04-07 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:25:05 [end_date_ymd] => 2025-04-07 18:25:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:25:05' and `end` < '2025-04-07 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-04-07 18:25:18] Production.INFO: count ==4108 [2025-04-07 18:25:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:25:05 - End Time 2025-04-07 18:25:05 [2025-04-07 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856682', 'tblTempUsageDetail_20' ) start [2025-04-07 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856682', 'tblTempUsageDetail_20' ) end [2025-04-07 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856682', 'tblTempVendorCDR_20' ) start [2025-04-07 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856682', 'tblTempVendorCDR_20' ) end [2025-04-07 18:25:20] Production.INFO: ProcessCDR(1,14856682,1,1,2) [2025-04-07 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856682', 'tblTempUsageDetail_20' ) start [2025-04-07 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856682', 'tblTempUsageDetail_20' ) end [2025-04-07 18:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:25:25] Production.INFO: ==11963== Releasing lock... [2025-04-07 18:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:25:25] Production.INFO: 58.75 MB #Memory Used# [2025-04-07 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:26:05 [end_date_ymd] => 2025-04-07 18:26:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:26:05' and `end` < '2025-04-07 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-04-07 18:26:18] Production.INFO: count ==4100 [2025-04-07 18:26:40] Production.ERROR: pbx CDR StartTime 2025-04-07 15:26:05 - End Time 2025-04-07 18:26:05 [2025-04-07 18:26:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:26:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856687', 'tblTempUsageDetail_20' ) start [2025-04-07 18:26:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856687', 'tblTempUsageDetail_20' ) end [2025-04-07 18:26:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856687', 'tblTempVendorCDR_20' ) start [2025-04-07 18:26:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856687', 'tblTempVendorCDR_20' ) end [2025-04-07 18:26:46] Production.INFO: ProcessCDR(1,14856687,1,1,2) [2025-04-07 18:26:46] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:26:50] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:26:50] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856687', 'tblTempUsageDetail_20' ) start [2025-04-07 18:27:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856687', 'tblTempUsageDetail_20' ) end [2025-04-07 18:27:37] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:27:37] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:27:41] Production.INFO: ==12063== Releasing lock... [2025-04-07 18:27:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:27:41] Production.INFO: 58.75 MB #Memory Used# [2025-04-07 18:28:15] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:28:15 [end_date_ymd] => 2025-04-07 18:28:15 [RateCDR] => 1 ) [2025-04-07 18:28:15] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 15:28:15' and `end` < '2025-04-07 18:28:15' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 18:28:28] Production.INFO: count ==4047 [2025-04-07 18:28:59] Production.ERROR: pbx CDR StartTime 2025-04-07 15:28:15 - End Time 2025-04-07 18:28:15 [2025-04-07 18:28:59] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:28:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856695', 'tblTempUsageDetail_20' ) start [2025-04-07 18:29:01] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856695', 'tblTempUsageDetail_20' ) end [2025-04-07 18:29:01] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856695', 'tblTempVendorCDR_20' ) start [2025-04-07 18:29:01] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856695', 'tblTempVendorCDR_20' ) end [2025-04-07 18:29:01] Production.INFO: ProcessCDR(1,14856695,1,1,2) [2025-04-07 18:29:01] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:29:08] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:29:08] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856695', 'tblTempUsageDetail_20' ) start [2025-04-07 18:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856695', 'tblTempUsageDetail_20' ) end [2025-04-07 18:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:29:27] Production.INFO: ==12270== Releasing lock... [2025-04-07 18:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:29:27] Production.INFO: 58.25 MB #Memory Used# [2025-04-07 18:30:18] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:30:18 [end_date_ymd] => 2025-04-07 18:30:18 [RateCDR] => 1 ) [2025-04-07 18:30:18] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 15:30:18' and `end` < '2025-04-07 18:30:18' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 18:30:32] Production.INFO: count ==4038 [2025-04-07 18:31:01] Production.ERROR: pbx CDR StartTime 2025-04-07 15:30:18 - End Time 2025-04-07 18:30:18 [2025-04-07 18:31:01] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:31:01] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856704', 'tblTempUsageDetail_20' ) start [2025-04-07 18:31:05] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856704', 'tblTempUsageDetail_20' ) end [2025-04-07 18:31:05] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856704', 'tblTempVendorCDR_20' ) start [2025-04-07 18:31:06] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856704', 'tblTempVendorCDR_20' ) end [2025-04-07 18:31:06] Production.INFO: ProcessCDR(1,14856704,1,1,2) [2025-04-07 18:31:06] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:31:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:31:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856704', 'tblTempUsageDetail_20' ) start [2025-04-07 18:31:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856704', 'tblTempUsageDetail_20' ) end [2025-04-07 18:31:51] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:31:51] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:31:53] Production.INFO: ==12429== Releasing lock... [2025-04-07 18:31:53] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:31:53] Production.INFO: 58.25 MB #Memory Used# [2025-04-07 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:32:05 [end_date_ymd] => 2025-04-07 18:32:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:32:05' and `end` < '2025-04-07 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-04-07 18:32:18] Production.INFO: count ==3964 [2025-04-07 18:32:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:32:05 - End Time 2025-04-07 18:32:05 [2025-04-07 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856712', 'tblTempUsageDetail_20' ) start [2025-04-07 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856712', 'tblTempUsageDetail_20' ) end [2025-04-07 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856712', 'tblTempVendorCDR_20' ) start [2025-04-07 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856712', 'tblTempVendorCDR_20' ) end [2025-04-07 18:32:20] Production.INFO: ProcessCDR(1,14856712,1,1,2) [2025-04-07 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856712', 'tblTempUsageDetail_20' ) start [2025-04-07 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856712', 'tblTempUsageDetail_20' ) end [2025-04-07 18:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:32:25] Production.INFO: ==12579== Releasing lock... [2025-04-07 18:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:32:25] Production.INFO: 57.5 MB #Memory Used# [2025-04-07 18:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:33:06 [end_date_ymd] => 2025-04-07 18:33:06 [RateCDR] => 1 ) [2025-04-07 18:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 15:33:06' and `end` < '2025-04-07 18:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 18:33:19] Production.INFO: count ==3927 [2025-04-07 18:33:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:33:06 - End Time 2025-04-07 18:33:06 [2025-04-07 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856717', 'tblTempUsageDetail_20' ) start [2025-04-07 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856717', 'tblTempUsageDetail_20' ) end [2025-04-07 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856717', 'tblTempVendorCDR_20' ) start [2025-04-07 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856717', 'tblTempVendorCDR_20' ) end [2025-04-07 18:33:20] Production.INFO: ProcessCDR(1,14856717,1,1,2) [2025-04-07 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856717', 'tblTempUsageDetail_20' ) start [2025-04-07 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856717', 'tblTempUsageDetail_20' ) end [2025-04-07 18:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:33:25] Production.INFO: ==12654== Releasing lock... [2025-04-07 18:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:33:25] Production.INFO: 57.25 MB #Memory Used# [2025-04-07 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:34:05 [end_date_ymd] => 2025-04-07 18:34:05 [RateCDR] => 1 ) [2025-04-07 18: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-04-07 15:34:05' and `end` < '2025-04-07 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-04-07 18:34:19] Production.INFO: count ==3902 [2025-04-07 18:34:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:34:05 - End Time 2025-04-07 18:34:05 [2025-04-07 18:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856722', 'tblTempUsageDetail_20' ) start [2025-04-07 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856722', 'tblTempUsageDetail_20' ) end [2025-04-07 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856722', 'tblTempVendorCDR_20' ) start [2025-04-07 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856722', 'tblTempVendorCDR_20' ) end [2025-04-07 18:34:20] Production.INFO: ProcessCDR(1,14856722,1,1,2) [2025-04-07 18:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856722', 'tblTempUsageDetail_20' ) start [2025-04-07 18:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856722', 'tblTempUsageDetail_20' ) end [2025-04-07 18:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:34:26] Production.INFO: ==12733== Releasing lock... [2025-04-07 18:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:34:26] Production.INFO: 57.5 MB #Memory Used# [2025-04-07 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:35:05 [end_date_ymd] => 2025-04-07 18:35:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:35:05' and `end` < '2025-04-07 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-04-07 18:35:19] Production.INFO: count ==3891 [2025-04-07 18:35:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:35:05 - End Time 2025-04-07 18:35:05 [2025-04-07 18:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856727', 'tblTempUsageDetail_20' ) start [2025-04-07 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856727', 'tblTempUsageDetail_20' ) end [2025-04-07 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856727', 'tblTempVendorCDR_20' ) start [2025-04-07 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856727', 'tblTempVendorCDR_20' ) end [2025-04-07 18:35:20] Production.INFO: ProcessCDR(1,14856727,1,1,2) [2025-04-07 18:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856727', 'tblTempUsageDetail_20' ) start [2025-04-07 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856727', 'tblTempUsageDetail_20' ) end [2025-04-07 18:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:35:23] Production.INFO: ==12812== Releasing lock... [2025-04-07 18:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:35:23] Production.INFO: 57 MB #Memory Used# [2025-04-07 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:36:05 [end_date_ymd] => 2025-04-07 18:36:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:36:05' and `end` < '2025-04-07 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-04-07 18:36:19] Production.INFO: count ==3875 [2025-04-07 18:36:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:36:05 - End Time 2025-04-07 18:36:05 [2025-04-07 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856732', 'tblTempUsageDetail_20' ) start [2025-04-07 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856732', 'tblTempUsageDetail_20' ) end [2025-04-07 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856732', 'tblTempVendorCDR_20' ) start [2025-04-07 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856732', 'tblTempVendorCDR_20' ) end [2025-04-07 18:36:20] Production.INFO: ProcessCDR(1,14856732,1,1,2) [2025-04-07 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856732', 'tblTempUsageDetail_20' ) start [2025-04-07 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856732', 'tblTempUsageDetail_20' ) end [2025-04-07 18:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:36:25] Production.INFO: ==12887== Releasing lock... [2025-04-07 18:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:36:25] Production.INFO: 57.5 MB #Memory Used# [2025-04-07 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:37:05 [end_date_ymd] => 2025-04-07 18:37:05 [RateCDR] => 1 ) [2025-04-07 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 15:37:05' and `end` < '2025-04-07 18:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 18:37:19] Production.INFO: count ==3864 [2025-04-07 18:37:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:37:05 - End Time 2025-04-07 18:37:05 [2025-04-07 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856737', 'tblTempUsageDetail_20' ) start [2025-04-07 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856737', 'tblTempUsageDetail_20' ) end [2025-04-07 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856737', 'tblTempVendorCDR_20' ) start [2025-04-07 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856737', 'tblTempVendorCDR_20' ) end [2025-04-07 18:37:20] Production.INFO: ProcessCDR(1,14856737,1,1,2) [2025-04-07 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856737', 'tblTempUsageDetail_20' ) start [2025-04-07 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856737', 'tblTempUsageDetail_20' ) end [2025-04-07 18:37:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:37:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:37:25] Production.INFO: ==12960== Releasing lock... [2025-04-07 18:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:37:25] Production.INFO: 57 MB #Memory Used# [2025-04-07 18:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:38:06 [end_date_ymd] => 2025-04-07 18:38:06 [RateCDR] => 1 ) [2025-04-07 18: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-04-07 15:38:06' and `end` < '2025-04-07 18: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-04-07 18:38:20] Production.INFO: count ==3849 [2025-04-07 18:38:22] Production.ERROR: pbx CDR StartTime 2025-04-07 15:38:06 - End Time 2025-04-07 18:38:06 [2025-04-07 18:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856742', 'tblTempUsageDetail_20' ) start [2025-04-07 18:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856742', 'tblTempUsageDetail_20' ) end [2025-04-07 18:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856742', 'tblTempVendorCDR_20' ) start [2025-04-07 18:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856742', 'tblTempVendorCDR_20' ) end [2025-04-07 18:38:22] Production.INFO: ProcessCDR(1,14856742,1,1,2) [2025-04-07 18:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856742', 'tblTempUsageDetail_20' ) start [2025-04-07 18:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856742', 'tblTempUsageDetail_20' ) end [2025-04-07 18:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:38:27] Production.INFO: ==13039== Releasing lock... [2025-04-07 18:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:38:27] Production.INFO: 56.75 MB #Memory Used# [2025-04-07 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:39:05 [end_date_ymd] => 2025-04-07 18:39:05 [RateCDR] => 1 ) [2025-04-07 18:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 15:39:05' and `end` < '2025-04-07 18:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 18:39:19] Production.INFO: count ==3844 [2025-04-07 18:39:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:39:05 - End Time 2025-04-07 18:39:05 [2025-04-07 18:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856747', 'tblTempUsageDetail_20' ) start [2025-04-07 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856747', 'tblTempUsageDetail_20' ) end [2025-04-07 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856747', 'tblTempVendorCDR_20' ) start [2025-04-07 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856747', 'tblTempVendorCDR_20' ) end [2025-04-07 18:39:20] Production.INFO: ProcessCDR(1,14856747,1,1,2) [2025-04-07 18:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856747', 'tblTempUsageDetail_20' ) start [2025-04-07 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856747', 'tblTempUsageDetail_20' ) end [2025-04-07 18:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:39:25] Production.INFO: ==13113== Releasing lock... [2025-04-07 18:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:39:25] Production.INFO: 56.75 MB #Memory Used# [2025-04-07 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:40:06 [end_date_ymd] => 2025-04-07 18:40:06 [RateCDR] => 1 ) [2025-04-07 18: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-04-07 15:40:06' and `end` < '2025-04-07 18: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-04-07 18:40:20] Production.INFO: count ==3823 [2025-04-07 18:40:21] Production.ERROR: pbx CDR StartTime 2025-04-07 15:40:06 - End Time 2025-04-07 18:40:06 [2025-04-07 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856753', 'tblTempUsageDetail_20' ) start [2025-04-07 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856753', 'tblTempUsageDetail_20' ) end [2025-04-07 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856753', 'tblTempVendorCDR_20' ) start [2025-04-07 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856753', 'tblTempVendorCDR_20' ) end [2025-04-07 18:40:22] Production.INFO: ProcessCDR(1,14856753,1,1,2) [2025-04-07 18:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856753', 'tblTempUsageDetail_20' ) start [2025-04-07 18:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856753', 'tblTempUsageDetail_20' ) end [2025-04-07 18:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:40:27] Production.INFO: ==13189== Releasing lock... [2025-04-07 18:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:40:27] Production.INFO: 57 MB #Memory Used# [2025-04-07 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:41:05 [end_date_ymd] => 2025-04-07 18:41:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:41:05' and `end` < '2025-04-07 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-04-07 18:41:19] Production.INFO: count ==3728 [2025-04-07 18:41:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:41:05 - End Time 2025-04-07 18:41:05 [2025-04-07 18:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856758', 'tblTempUsageDetail_20' ) start [2025-04-07 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856758', 'tblTempUsageDetail_20' ) end [2025-04-07 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856758', 'tblTempVendorCDR_20' ) start [2025-04-07 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856758', 'tblTempVendorCDR_20' ) end [2025-04-07 18:41:20] Production.INFO: ProcessCDR(1,14856758,1,1,2) [2025-04-07 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856758', 'tblTempUsageDetail_20' ) start [2025-04-07 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856758', 'tblTempUsageDetail_20' ) end [2025-04-07 18:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:41:25] Production.INFO: ==13266== Releasing lock... [2025-04-07 18:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:41:25] Production.INFO: 56.25 MB #Memory Used# [2025-04-07 18:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:42:06 [end_date_ymd] => 2025-04-07 18:42:06 [RateCDR] => 1 ) [2025-04-07 18: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-04-07 15:42:06' and `end` < '2025-04-07 18: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-04-07 18:42:19] Production.INFO: count ==3713 [2025-04-07 18:42:21] Production.ERROR: pbx CDR StartTime 2025-04-07 15:42:06 - End Time 2025-04-07 18:42:06 [2025-04-07 18:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856763', 'tblTempUsageDetail_20' ) start [2025-04-07 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856763', 'tblTempUsageDetail_20' ) end [2025-04-07 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856763', 'tblTempVendorCDR_20' ) start [2025-04-07 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856763', 'tblTempVendorCDR_20' ) end [2025-04-07 18:42:21] Production.INFO: ProcessCDR(1,14856763,1,1,2) [2025-04-07 18:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856763', 'tblTempUsageDetail_20' ) start [2025-04-07 18:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856763', 'tblTempUsageDetail_20' ) end [2025-04-07 18:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:42:26] Production.INFO: ==13390== Releasing lock... [2025-04-07 18:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:42:26] Production.INFO: 56.25 MB #Memory Used# [2025-04-07 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:43:05 [end_date_ymd] => 2025-04-07 18:43:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:43:05' and `end` < '2025-04-07 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-04-07 18:43:19] Production.INFO: count ==3689 [2025-04-07 18:43:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:43:05 - End Time 2025-04-07 18:43:05 [2025-04-07 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856768', 'tblTempUsageDetail_20' ) start [2025-04-07 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856768', 'tblTempUsageDetail_20' ) end [2025-04-07 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856768', 'tblTempVendorCDR_20' ) start [2025-04-07 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856768', 'tblTempVendorCDR_20' ) end [2025-04-07 18:43:20] Production.INFO: ProcessCDR(1,14856768,1,1,2) [2025-04-07 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856768', 'tblTempUsageDetail_20' ) start [2025-04-07 18:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856768', 'tblTempUsageDetail_20' ) end [2025-04-07 18:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:43:26] Production.INFO: ==13466== Releasing lock... [2025-04-07 18:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:43:26] Production.INFO: 55.75 MB #Memory Used# [2025-04-07 18:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:44:06 [end_date_ymd] => 2025-04-07 18:44:06 [RateCDR] => 1 ) [2025-04-07 18: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-04-07 15:44:06' and `end` < '2025-04-07 18: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-04-07 18:44:19] Production.INFO: count ==3656 [2025-04-07 18:44:21] Production.ERROR: pbx CDR StartTime 2025-04-07 15:44:06 - End Time 2025-04-07 18:44:06 [2025-04-07 18:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856773', 'tblTempUsageDetail_20' ) start [2025-04-07 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856773', 'tblTempUsageDetail_20' ) end [2025-04-07 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856773', 'tblTempVendorCDR_20' ) start [2025-04-07 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856773', 'tblTempVendorCDR_20' ) end [2025-04-07 18:44:21] Production.INFO: ProcessCDR(1,14856773,1,1,2) [2025-04-07 18:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856773', 'tblTempUsageDetail_20' ) start [2025-04-07 18:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856773', 'tblTempUsageDetail_20' ) end [2025-04-07 18:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:44:26] Production.INFO: ==13545== Releasing lock... [2025-04-07 18:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:44:26] Production.INFO: 55.5 MB #Memory Used# [2025-04-07 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:45:05 [end_date_ymd] => 2025-04-07 18:45:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:45:05' and `end` < '2025-04-07 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-04-07 18:45:18] Production.INFO: count ==3646 [2025-04-07 18:45:19] Production.ERROR: pbx CDR StartTime 2025-04-07 15:45:05 - End Time 2025-04-07 18:45:05 [2025-04-07 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856778', 'tblTempUsageDetail_20' ) start [2025-04-07 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856778', 'tblTempUsageDetail_20' ) end [2025-04-07 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856778', 'tblTempVendorCDR_20' ) start [2025-04-07 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856778', 'tblTempVendorCDR_20' ) end [2025-04-07 18:45:19] Production.INFO: ProcessCDR(1,14856778,1,1,2) [2025-04-07 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856778', 'tblTempUsageDetail_20' ) start [2025-04-07 18:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856778', 'tblTempUsageDetail_20' ) end [2025-04-07 18:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:45:25] Production.INFO: ==13621== Releasing lock... [2025-04-07 18:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:45:25] Production.INFO: 55.75 MB #Memory Used# [2025-04-07 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:46:05 [end_date_ymd] => 2025-04-07 18:46:05 [RateCDR] => 1 ) [2025-04-07 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 15:46:05' and `end` < '2025-04-07 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 18:46:18] Production.INFO: count ==3641 [2025-04-07 18:46:19] Production.ERROR: pbx CDR StartTime 2025-04-07 15:46:05 - End Time 2025-04-07 18:46:05 [2025-04-07 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856783', 'tblTempUsageDetail_20' ) start [2025-04-07 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856783', 'tblTempUsageDetail_20' ) end [2025-04-07 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856783', 'tblTempVendorCDR_20' ) start [2025-04-07 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856783', 'tblTempVendorCDR_20' ) end [2025-04-07 18:46:19] Production.INFO: ProcessCDR(1,14856783,1,1,2) [2025-04-07 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856783', 'tblTempUsageDetail_20' ) start [2025-04-07 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856783', 'tblTempUsageDetail_20' ) end [2025-04-07 18:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:46:24] Production.INFO: ==13692== Releasing lock... [2025-04-07 18:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:46:24] Production.INFO: 55.75 MB #Memory Used# [2025-04-07 18:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:47:06 [end_date_ymd] => 2025-04-07 18:47:06 [RateCDR] => 1 ) [2025-04-07 18: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-04-07 15:47:06' and `end` < '2025-04-07 18: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-04-07 18:47:20] Production.INFO: count ==3624 [2025-04-07 18:47:21] Production.ERROR: pbx CDR StartTime 2025-04-07 15:47:06 - End Time 2025-04-07 18:47:06 [2025-04-07 18:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856788', 'tblTempUsageDetail_20' ) start [2025-04-07 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856788', 'tblTempUsageDetail_20' ) end [2025-04-07 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856788', 'tblTempVendorCDR_20' ) start [2025-04-07 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856788', 'tblTempVendorCDR_20' ) end [2025-04-07 18:47:21] Production.INFO: ProcessCDR(1,14856788,1,1,2) [2025-04-07 18:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856788', 'tblTempUsageDetail_20' ) start [2025-04-07 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856788', 'tblTempUsageDetail_20' ) end [2025-04-07 18:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:47:26] Production.INFO: ==13763== Releasing lock... [2025-04-07 18:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:47:26] Production.INFO: 55 MB #Memory Used# [2025-04-07 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:48:05 [end_date_ymd] => 2025-04-07 18:48:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:48:05' and `end` < '2025-04-07 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-04-07 18:48:19] Production.INFO: count ==3609 [2025-04-07 18:48:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:48:05 - End Time 2025-04-07 18:48:05 [2025-04-07 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856793', 'tblTempUsageDetail_20' ) start [2025-04-07 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856793', 'tblTempUsageDetail_20' ) end [2025-04-07 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856793', 'tblTempVendorCDR_20' ) start [2025-04-07 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856793', 'tblTempVendorCDR_20' ) end [2025-04-07 18:48:20] Production.INFO: ProcessCDR(1,14856793,1,1,2) [2025-04-07 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856793', 'tblTempUsageDetail_20' ) start [2025-04-07 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856793', 'tblTempUsageDetail_20' ) end [2025-04-07 18:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:48:25] Production.INFO: ==13843== Releasing lock... [2025-04-07 18:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:48:25] Production.INFO: 55.25 MB #Memory Used# [2025-04-07 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:49:05 [end_date_ymd] => 2025-04-07 18:49:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:49:05' and `end` < '2025-04-07 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-04-07 18:49:19] Production.INFO: count ==3598 [2025-04-07 18:49:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:49:05 - End Time 2025-04-07 18:49:05 [2025-04-07 18:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856798', 'tblTempUsageDetail_20' ) start [2025-04-07 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856798', 'tblTempUsageDetail_20' ) end [2025-04-07 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856798', 'tblTempVendorCDR_20' ) start [2025-04-07 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856798', 'tblTempVendorCDR_20' ) end [2025-04-07 18:49:20] Production.INFO: ProcessCDR(1,14856798,1,1,2) [2025-04-07 18:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856798', 'tblTempUsageDetail_20' ) start [2025-04-07 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856798', 'tblTempUsageDetail_20' ) end [2025-04-07 18:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:49:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:49:25] Production.INFO: ==13919== Releasing lock... [2025-04-07 18:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:49:25] Production.INFO: 56 MB #Memory Used# [2025-04-07 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:50:06 [end_date_ymd] => 2025-04-07 18:50:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:50:06' and `end` < '2025-04-07 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-04-07 18:50:19] Production.INFO: count ==3598 [2025-04-07 18:50:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:50:06 - End Time 2025-04-07 18:50:06 [2025-04-07 18:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856804', 'tblTempUsageDetail_20' ) start [2025-04-07 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856804', 'tblTempUsageDetail_20' ) end [2025-04-07 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856804', 'tblTempVendorCDR_20' ) start [2025-04-07 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856804', 'tblTempVendorCDR_20' ) end [2025-04-07 18:50:20] Production.INFO: ProcessCDR(1,14856804,1,1,2) [2025-04-07 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856804', 'tblTempUsageDetail_20' ) start [2025-04-07 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856804', 'tblTempUsageDetail_20' ) end [2025-04-07 18:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:50:24] Production.INFO: ==13997== Releasing lock... [2025-04-07 18:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:50:24] Production.INFO: 55.75 MB #Memory Used# [2025-04-07 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:51:05 [end_date_ymd] => 2025-04-07 18:51:05 [RateCDR] => 1 ) [2025-04-07 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 15:51:05' and `end` < '2025-04-07 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 18:51:18] Production.INFO: count ==3547 [2025-04-07 18:51:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:51:05 - End Time 2025-04-07 18:51:05 [2025-04-07 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856809', 'tblTempUsageDetail_20' ) start [2025-04-07 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856809', 'tblTempUsageDetail_20' ) end [2025-04-07 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856809', 'tblTempVendorCDR_20' ) start [2025-04-07 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856809', 'tblTempVendorCDR_20' ) end [2025-04-07 18:51:20] Production.INFO: ProcessCDR(1,14856809,1,1,2) [2025-04-07 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856809', 'tblTempUsageDetail_20' ) start [2025-04-07 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856809', 'tblTempUsageDetail_20' ) end [2025-04-07 18:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:51:25] Production.INFO: ==14078== Releasing lock... [2025-04-07 18:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:51:25] Production.INFO: 55.5 MB #Memory Used# [2025-04-07 18:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:52:06 [end_date_ymd] => 2025-04-07 18:52:06 [RateCDR] => 1 ) [2025-04-07 18: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-04-07 15:52:06' and `end` < '2025-04-07 18: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-04-07 18:52:19] Production.INFO: count ==3558 [2025-04-07 18:52:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:52:06 - End Time 2025-04-07 18:52:06 [2025-04-07 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856814', 'tblTempUsageDetail_20' ) start [2025-04-07 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856814', 'tblTempUsageDetail_20' ) end [2025-04-07 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856814', 'tblTempVendorCDR_20' ) start [2025-04-07 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856814', 'tblTempVendorCDR_20' ) end [2025-04-07 18:52:20] Production.INFO: ProcessCDR(1,14856814,1,1,2) [2025-04-07 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856814', 'tblTempUsageDetail_20' ) start [2025-04-07 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856814', 'tblTempUsageDetail_20' ) end [2025-04-07 18:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:52:25] Production.INFO: ==14154== Releasing lock... [2025-04-07 18:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:52:25] Production.INFO: 55.5 MB #Memory Used# [2025-04-07 18:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:53:06 [end_date_ymd] => 2025-04-07 18:53:06 [RateCDR] => 1 ) [2025-04-07 18: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-04-07 15:53:06' and `end` < '2025-04-07 18: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-04-07 18:53:19] Production.INFO: count ==3553 [2025-04-07 18:53:21] Production.ERROR: pbx CDR StartTime 2025-04-07 15:53:06 - End Time 2025-04-07 18:53:06 [2025-04-07 18:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856819', 'tblTempUsageDetail_20' ) start [2025-04-07 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856819', 'tblTempUsageDetail_20' ) end [2025-04-07 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856819', 'tblTempVendorCDR_20' ) start [2025-04-07 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856819', 'tblTempVendorCDR_20' ) end [2025-04-07 18:53:21] Production.INFO: ProcessCDR(1,14856819,1,1,2) [2025-04-07 18:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856819', 'tblTempUsageDetail_20' ) start [2025-04-07 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856819', 'tblTempUsageDetail_20' ) end [2025-04-07 18:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:53:24] Production.INFO: ==14226== Releasing lock... [2025-04-07 18:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:53:24] Production.INFO: 55.75 MB #Memory Used# [2025-04-07 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:54:05 [end_date_ymd] => 2025-04-07 18:54:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:54:05' and `end` < '2025-04-07 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-04-07 18:54:18] Production.INFO: count ==3551 [2025-04-07 18:54:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:54:05 - End Time 2025-04-07 18:54:05 [2025-04-07 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856824', 'tblTempUsageDetail_20' ) start [2025-04-07 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856824', 'tblTempUsageDetail_20' ) end [2025-04-07 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856824', 'tblTempVendorCDR_20' ) start [2025-04-07 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856824', 'tblTempVendorCDR_20' ) end [2025-04-07 18:54:20] Production.INFO: ProcessCDR(1,14856824,1,1,2) [2025-04-07 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856824', 'tblTempUsageDetail_20' ) start [2025-04-07 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856824', 'tblTempUsageDetail_20' ) end [2025-04-07 18:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:54:25] Production.INFO: ==14303== Releasing lock... [2025-04-07 18:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:54:25] Production.INFO: 55 MB #Memory Used# [2025-04-07 18:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:55:06 [end_date_ymd] => 2025-04-07 18:55:06 [RateCDR] => 1 ) [2025-04-07 18:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 15:55:06' and `end` < '2025-04-07 18:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 18:55:19] Production.INFO: count ==3535 [2025-04-07 18:55:21] Production.ERROR: pbx CDR StartTime 2025-04-07 15:55:06 - End Time 2025-04-07 18:55:06 [2025-04-07 18:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856829', 'tblTempUsageDetail_20' ) start [2025-04-07 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856829', 'tblTempUsageDetail_20' ) end [2025-04-07 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856829', 'tblTempVendorCDR_20' ) start [2025-04-07 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856829', 'tblTempVendorCDR_20' ) end [2025-04-07 18:55:21] Production.INFO: ProcessCDR(1,14856829,1,1,2) [2025-04-07 18:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856829', 'tblTempUsageDetail_20' ) start [2025-04-07 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856829', 'tblTempUsageDetail_20' ) end [2025-04-07 18:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:55:24] Production.INFO: ==14379== Releasing lock... [2025-04-07 18:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:55:24] Production.INFO: 54.5 MB #Memory Used# [2025-04-07 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:56:05 [end_date_ymd] => 2025-04-07 18:56:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:56:05' and `end` < '2025-04-07 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-04-07 18:56:19] Production.INFO: count ==3539 [2025-04-07 18:56:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:56:05 - End Time 2025-04-07 18:56:05 [2025-04-07 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856834', 'tblTempUsageDetail_20' ) start [2025-04-07 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856834', 'tblTempUsageDetail_20' ) end [2025-04-07 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856834', 'tblTempVendorCDR_20' ) start [2025-04-07 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856834', 'tblTempVendorCDR_20' ) end [2025-04-07 18:56:20] Production.INFO: ProcessCDR(1,14856834,1,1,2) [2025-04-07 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856834', 'tblTempUsageDetail_20' ) start [2025-04-07 18:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856834', 'tblTempUsageDetail_20' ) end [2025-04-07 18:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:56:26] Production.INFO: ==14455== Releasing lock... [2025-04-07 18:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:56:26] Production.INFO: 55 MB #Memory Used# [2025-04-07 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:57:05 [end_date_ymd] => 2025-04-07 18:57:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:57:05' and `end` < '2025-04-07 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-04-07 18:57:19] Production.INFO: count ==3534 [2025-04-07 18:57:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:57:05 - End Time 2025-04-07 18:57:05 [2025-04-07 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856839', 'tblTempUsageDetail_20' ) start [2025-04-07 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856839', 'tblTempUsageDetail_20' ) end [2025-04-07 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856839', 'tblTempVendorCDR_20' ) start [2025-04-07 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856839', 'tblTempVendorCDR_20' ) end [2025-04-07 18:57:20] Production.INFO: ProcessCDR(1,14856839,1,1,2) [2025-04-07 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856839', 'tblTempUsageDetail_20' ) start [2025-04-07 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856839', 'tblTempUsageDetail_20' ) end [2025-04-07 18:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:57:25] Production.INFO: ==14527== Releasing lock... [2025-04-07 18:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:57:25] Production.INFO: 54.75 MB #Memory Used# [2025-04-07 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:58:05 [end_date_ymd] => 2025-04-07 18:58:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 15:58:05' and `end` < '2025-04-07 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-04-07 18:58:19] Production.INFO: count ==3514 [2025-04-07 18:58:20] Production.ERROR: pbx CDR StartTime 2025-04-07 15:58:05 - End Time 2025-04-07 18:58:05 [2025-04-07 18:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856844', 'tblTempUsageDetail_20' ) start [2025-04-07 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856844', 'tblTempUsageDetail_20' ) end [2025-04-07 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856844', 'tblTempVendorCDR_20' ) start [2025-04-07 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856844', 'tblTempVendorCDR_20' ) end [2025-04-07 18:58:20] Production.INFO: ProcessCDR(1,14856844,1,1,2) [2025-04-07 18:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856844', 'tblTempUsageDetail_20' ) start [2025-04-07 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856844', 'tblTempUsageDetail_20' ) end [2025-04-07 18:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:58:24] Production.INFO: ==14640== Releasing lock... [2025-04-07 18:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:58:24] Production.INFO: 54.25 MB #Memory Used# [2025-04-07 18:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 15:59:06 [end_date_ymd] => 2025-04-07 18:59:06 [RateCDR] => 1 ) [2025-04-07 18: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-04-07 15:59:06' and `end` < '2025-04-07 18: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-04-07 18:59:19] Production.INFO: count ==3520 [2025-04-07 18:59:21] Production.ERROR: pbx CDR StartTime 2025-04-07 15:59:06 - End Time 2025-04-07 18:59:06 [2025-04-07 18:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856849', 'tblTempUsageDetail_20' ) start [2025-04-07 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856849', 'tblTempUsageDetail_20' ) end [2025-04-07 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856849', 'tblTempVendorCDR_20' ) start [2025-04-07 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856849', 'tblTempVendorCDR_20' ) end [2025-04-07 18:59:21] Production.INFO: ProcessCDR(1,14856849,1,1,2) [2025-04-07 18:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 18:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 18:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856849', 'tblTempUsageDetail_20' ) start [2025-04-07 18:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856849', 'tblTempUsageDetail_20' ) end [2025-04-07 18:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 18:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 18:59:26] Production.INFO: ==14715== Releasing lock... [2025-04-07 18:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 18:59:26] Production.INFO: 54.5 MB #Memory Used# [2025-04-07 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:00:06 [end_date_ymd] => 2025-04-07 19:00:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:00:06' and `end` < '2025-04-07 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-04-07 19:00:19] Production.INFO: count ==3514 [2025-04-07 19:00:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:00:06 - End Time 2025-04-07 19:00:06 [2025-04-07 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856855', 'tblTempUsageDetail_20' ) start [2025-04-07 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856855', 'tblTempUsageDetail_20' ) end [2025-04-07 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856855', 'tblTempVendorCDR_20' ) start [2025-04-07 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856855', 'tblTempVendorCDR_20' ) end [2025-04-07 19:00:21] Production.INFO: ProcessCDR(1,14856855,1,1,2) [2025-04-07 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856855', 'tblTempUsageDetail_20' ) start [2025-04-07 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856855', 'tblTempUsageDetail_20' ) end [2025-04-07 19:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:00:24] Production.INFO: ==14790== Releasing lock... [2025-04-07 19:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:00:24] Production.INFO: 55 MB #Memory Used# [2025-04-07 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:01:05 [end_date_ymd] => 2025-04-07 19:01:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:01:05' and `end` < '2025-04-07 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-04-07 19:01:19] Production.INFO: count ==3456 [2025-04-07 19:01:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:01:05 - End Time 2025-04-07 19:01:05 [2025-04-07 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856860', 'tblTempUsageDetail_20' ) start [2025-04-07 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856860', 'tblTempUsageDetail_20' ) end [2025-04-07 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856860', 'tblTempVendorCDR_20' ) start [2025-04-07 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856860', 'tblTempVendorCDR_20' ) end [2025-04-07 19:01:20] Production.INFO: ProcessCDR(1,14856860,1,1,2) [2025-04-07 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856860', 'tblTempUsageDetail_20' ) start [2025-04-07 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856860', 'tblTempUsageDetail_20' ) end [2025-04-07 19:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:01:25] Production.INFO: ==14879== Releasing lock... [2025-04-07 19:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:01:25] Production.INFO: 54.25 MB #Memory Used# [2025-04-07 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:02:06 [end_date_ymd] => 2025-04-07 19:02:06 [RateCDR] => 1 ) [2025-04-07 19: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-04-07 16:02:06' and `end` < '2025-04-07 19: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-04-07 19:02:19] Production.INFO: count ==3452 [2025-04-07 19:02:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:02:06 - End Time 2025-04-07 19:02:06 [2025-04-07 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856865', 'tblTempUsageDetail_20' ) start [2025-04-07 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856865', 'tblTempUsageDetail_20' ) end [2025-04-07 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856865', 'tblTempVendorCDR_20' ) start [2025-04-07 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856865', 'tblTempVendorCDR_20' ) end [2025-04-07 19:02:21] Production.INFO: ProcessCDR(1,14856865,1,1,2) [2025-04-07 19:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856865', 'tblTempUsageDetail_20' ) start [2025-04-07 19:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856865', 'tblTempUsageDetail_20' ) end [2025-04-07 19:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:02:25] Production.INFO: ==15027== Releasing lock... [2025-04-07 19:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:02:25] Production.INFO: 54 MB #Memory Used# [2025-04-07 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:03:05 [end_date_ymd] => 2025-04-07 19:03:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:03:05' and `end` < '2025-04-07 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-04-07 19:03:19] Production.INFO: count ==3448 [2025-04-07 19:03:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:03:05 - End Time 2025-04-07 19:03:05 [2025-04-07 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856870', 'tblTempUsageDetail_20' ) start [2025-04-07 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856870', 'tblTempUsageDetail_20' ) end [2025-04-07 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856870', 'tblTempVendorCDR_20' ) start [2025-04-07 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856870', 'tblTempVendorCDR_20' ) end [2025-04-07 19:03:20] Production.INFO: ProcessCDR(1,14856870,1,1,2) [2025-04-07 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856870', 'tblTempUsageDetail_20' ) start [2025-04-07 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856870', 'tblTempUsageDetail_20' ) end [2025-04-07 19:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:03:24] Production.INFO: ==15099== Releasing lock... [2025-04-07 19:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:03:24] Production.INFO: 55 MB #Memory Used# [2025-04-07 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:04:06 [end_date_ymd] => 2025-04-07 19:04:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:04:06' and `end` < '2025-04-07 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-04-07 19:04:19] Production.INFO: count ==3441 [2025-04-07 19:04:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:04:06 - End Time 2025-04-07 19:04:06 [2025-04-07 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856875', 'tblTempUsageDetail_20' ) start [2025-04-07 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856875', 'tblTempUsageDetail_20' ) end [2025-04-07 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856875', 'tblTempVendorCDR_20' ) start [2025-04-07 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856875', 'tblTempVendorCDR_20' ) end [2025-04-07 19:04:20] Production.INFO: ProcessCDR(1,14856875,1,1,2) [2025-04-07 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856875', 'tblTempUsageDetail_20' ) start [2025-04-07 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856875', 'tblTempUsageDetail_20' ) end [2025-04-07 19:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:04:25] Production.INFO: ==15172== Releasing lock... [2025-04-07 19:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:04:25] Production.INFO: 54.5 MB #Memory Used# [2025-04-07 19:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:05:06 [end_date_ymd] => 2025-04-07 19:05:06 [RateCDR] => 1 ) [2025-04-07 19: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-04-07 16:05:06' and `end` < '2025-04-07 19: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-04-07 19:05:20] Production.INFO: count ==3438 [2025-04-07 19:05:21] Production.ERROR: pbx CDR StartTime 2025-04-07 16:05:06 - End Time 2025-04-07 19:05:06 [2025-04-07 19:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856880', 'tblTempUsageDetail_20' ) start [2025-04-07 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856880', 'tblTempUsageDetail_20' ) end [2025-04-07 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856880', 'tblTempVendorCDR_20' ) start [2025-04-07 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856880', 'tblTempVendorCDR_20' ) end [2025-04-07 19:05:21] Production.INFO: ProcessCDR(1,14856880,1,1,2) [2025-04-07 19:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856880', 'tblTempUsageDetail_20' ) start [2025-04-07 19:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856880', 'tblTempUsageDetail_20' ) end [2025-04-07 19:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:05:25] Production.INFO: ==15321== Releasing lock... [2025-04-07 19:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:05:25] Production.INFO: 55.75 MB #Memory Used# [2025-04-07 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:06:05 [end_date_ymd] => 2025-04-07 19:06:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:06:05' and `end` < '2025-04-07 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-04-07 19:06:19] Production.INFO: count ==3426 [2025-04-07 19:06:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:06:05 - End Time 2025-04-07 19:06:05 [2025-04-07 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856885', 'tblTempUsageDetail_20' ) start [2025-04-07 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856885', 'tblTempUsageDetail_20' ) end [2025-04-07 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856885', 'tblTempVendorCDR_20' ) start [2025-04-07 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856885', 'tblTempVendorCDR_20' ) end [2025-04-07 19:06:20] Production.INFO: ProcessCDR(1,14856885,1,1,2) [2025-04-07 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856885', 'tblTempUsageDetail_20' ) start [2025-04-07 19:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856885', 'tblTempUsageDetail_20' ) end [2025-04-07 19:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:06:26] Production.INFO: ==15391== Releasing lock... [2025-04-07 19:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:06:26] Production.INFO: 54 MB #Memory Used# [2025-04-07 19:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:07:06 [end_date_ymd] => 2025-04-07 19:07:06 [RateCDR] => 1 ) [2025-04-07 19: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-04-07 16:07:06' and `end` < '2025-04-07 19: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-04-07 19:07:19] Production.INFO: count ==3420 [2025-04-07 19:07:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:07:06 - End Time 2025-04-07 19:07:06 [2025-04-07 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856890', 'tblTempUsageDetail_20' ) start [2025-04-07 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856890', 'tblTempUsageDetail_20' ) end [2025-04-07 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856890', 'tblTempVendorCDR_20' ) start [2025-04-07 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856890', 'tblTempVendorCDR_20' ) end [2025-04-07 19:07:21] Production.INFO: ProcessCDR(1,14856890,1,1,2) [2025-04-07 19:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856890', 'tblTempUsageDetail_20' ) start [2025-04-07 19:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856890', 'tblTempUsageDetail_20' ) end [2025-04-07 19:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:07:26] Production.INFO: ==15461== Releasing lock... [2025-04-07 19:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:07:26] Production.INFO: 54.25 MB #Memory Used# [2025-04-07 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:08:05 [end_date_ymd] => 2025-04-07 19:08:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:08:05' and `end` < '2025-04-07 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-04-07 19:08:18] Production.INFO: count ==3417 [2025-04-07 19:08:19] Production.ERROR: pbx CDR StartTime 2025-04-07 16:08:05 - End Time 2025-04-07 19:08:05 [2025-04-07 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856895', 'tblTempUsageDetail_20' ) start [2025-04-07 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856895', 'tblTempUsageDetail_20' ) end [2025-04-07 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856895', 'tblTempVendorCDR_20' ) start [2025-04-07 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856895', 'tblTempVendorCDR_20' ) end [2025-04-07 19:08:20] Production.INFO: ProcessCDR(1,14856895,1,1,2) [2025-04-07 19:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856895', 'tblTempUsageDetail_20' ) start [2025-04-07 19:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856895', 'tblTempUsageDetail_20' ) end [2025-04-07 19:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:08:25] Production.INFO: ==15612== Releasing lock... [2025-04-07 19:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:08:25] Production.INFO: 53.75 MB #Memory Used# [2025-04-07 19:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:09:06 [end_date_ymd] => 2025-04-07 19:09:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:09:06' and `end` < '2025-04-07 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-04-07 19:09:19] Production.INFO: count ==3420 [2025-04-07 19:09:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:09:06 - End Time 2025-04-07 19:09:06 [2025-04-07 19:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856900', 'tblTempUsageDetail_20' ) start [2025-04-07 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856900', 'tblTempUsageDetail_20' ) end [2025-04-07 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856900', 'tblTempVendorCDR_20' ) start [2025-04-07 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856900', 'tblTempVendorCDR_20' ) end [2025-04-07 19:09:21] Production.INFO: ProcessCDR(1,14856900,1,1,2) [2025-04-07 19:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856900', 'tblTempUsageDetail_20' ) start [2025-04-07 19:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856900', 'tblTempUsageDetail_20' ) end [2025-04-07 19:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:09:26] Production.INFO: ==15695== Releasing lock... [2025-04-07 19:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:09:26] Production.INFO: 54.75 MB #Memory Used# [2025-04-07 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:10:06 [end_date_ymd] => 2025-04-07 19:10:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:10:06' and `end` < '2025-04-07 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-04-07 19:10:19] Production.INFO: count ==3411 [2025-04-07 19:10:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:10:06 - End Time 2025-04-07 19:10:06 [2025-04-07 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856906', 'tblTempUsageDetail_20' ) start [2025-04-07 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856906', 'tblTempUsageDetail_20' ) end [2025-04-07 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856906', 'tblTempVendorCDR_20' ) start [2025-04-07 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856906', 'tblTempVendorCDR_20' ) end [2025-04-07 19:10:21] Production.INFO: ProcessCDR(1,14856906,1,1,2) [2025-04-07 19:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856906', 'tblTempUsageDetail_20' ) start [2025-04-07 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856906', 'tblTempUsageDetail_20' ) end [2025-04-07 19:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:10:24] Production.INFO: ==15799== Releasing lock... [2025-04-07 19:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:10:24] Production.INFO: 54 MB #Memory Used# [2025-04-07 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:11:05 [end_date_ymd] => 2025-04-07 19:11:05 [RateCDR] => 1 ) [2025-04-07 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 16:11:05' and `end` < '2025-04-07 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 19:11:19] Production.INFO: count ==3372 [2025-04-07 19:11:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:11:05 - End Time 2025-04-07 19:11:05 [2025-04-07 19:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856911', 'tblTempUsageDetail_20' ) start [2025-04-07 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856911', 'tblTempUsageDetail_20' ) end [2025-04-07 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856911', 'tblTempVendorCDR_20' ) start [2025-04-07 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856911', 'tblTempVendorCDR_20' ) end [2025-04-07 19:11:20] Production.INFO: ProcessCDR(1,14856911,1,1,2) [2025-04-07 19:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856911', 'tblTempUsageDetail_20' ) start [2025-04-07 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856911', 'tblTempUsageDetail_20' ) end [2025-04-07 19:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:11:25] Production.INFO: ==15901== Releasing lock... [2025-04-07 19:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:11:25] Production.INFO: 53.5 MB #Memory Used# [2025-04-07 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:12:05 [end_date_ymd] => 2025-04-07 19:12:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:12:05' and `end` < '2025-04-07 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-04-07 19:12:18] Production.INFO: count ==3359 [2025-04-07 19:12:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:12:05 - End Time 2025-04-07 19:12:05 [2025-04-07 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856916', 'tblTempUsageDetail_20' ) start [2025-04-07 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856916', 'tblTempUsageDetail_20' ) end [2025-04-07 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856916', 'tblTempVendorCDR_20' ) start [2025-04-07 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856916', 'tblTempVendorCDR_20' ) end [2025-04-07 19:12:20] Production.INFO: ProcessCDR(1,14856916,1,1,2) [2025-04-07 19:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856916', 'tblTempUsageDetail_20' ) start [2025-04-07 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856916', 'tblTempUsageDetail_20' ) end [2025-04-07 19:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:12:23] Production.INFO: ==16079== Releasing lock... [2025-04-07 19:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:12:23] Production.INFO: 53.5 MB #Memory Used# [2025-04-07 19:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:13:06 [end_date_ymd] => 2025-04-07 19:13:06 [RateCDR] => 1 ) [2025-04-07 19:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 16:13:06' and `end` < '2025-04-07 19:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 19:13:19] Production.INFO: count ==3339 [2025-04-07 19:13:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:13:06 - End Time 2025-04-07 19:13:06 [2025-04-07 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856921', 'tblTempUsageDetail_20' ) start [2025-04-07 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856921', 'tblTempUsageDetail_20' ) end [2025-04-07 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856921', 'tblTempVendorCDR_20' ) start [2025-04-07 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856921', 'tblTempVendorCDR_20' ) end [2025-04-07 19:13:20] Production.INFO: ProcessCDR(1,14856921,1,1,2) [2025-04-07 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856921', 'tblTempUsageDetail_20' ) start [2025-04-07 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856921', 'tblTempUsageDetail_20' ) end [2025-04-07 19:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:13:24] Production.INFO: ==16214== Releasing lock... [2025-04-07 19:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:13:24] Production.INFO: 54 MB #Memory Used# [2025-04-07 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:14:05 [end_date_ymd] => 2025-04-07 19:14:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:14:05' and `end` < '2025-04-07 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-04-07 19:14:18] Production.INFO: count ==3316 [2025-04-07 19:14:19] Production.ERROR: pbx CDR StartTime 2025-04-07 16:14:05 - End Time 2025-04-07 19:14:05 [2025-04-07 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856926', 'tblTempUsageDetail_20' ) start [2025-04-07 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856926', 'tblTempUsageDetail_20' ) end [2025-04-07 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856926', 'tblTempVendorCDR_20' ) start [2025-04-07 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856926', 'tblTempVendorCDR_20' ) end [2025-04-07 19:14:19] Production.INFO: ProcessCDR(1,14856926,1,1,2) [2025-04-07 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856926', 'tblTempUsageDetail_20' ) start [2025-04-07 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856926', 'tblTempUsageDetail_20' ) end [2025-04-07 19:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:14:23] Production.INFO: ==16315== Releasing lock... [2025-04-07 19:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:14:23] Production.INFO: 52.75 MB #Memory Used# [2025-04-07 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:15:05 [end_date_ymd] => 2025-04-07 19:15:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:15:05' and `end` < '2025-04-07 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-04-07 19:15:18] Production.INFO: count ==3303 [2025-04-07 19:15:19] Production.ERROR: pbx CDR StartTime 2025-04-07 16:15:05 - End Time 2025-04-07 19:15:05 [2025-04-07 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856931', 'tblTempUsageDetail_20' ) start [2025-04-07 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856931', 'tblTempUsageDetail_20' ) end [2025-04-07 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856931', 'tblTempVendorCDR_20' ) start [2025-04-07 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856931', 'tblTempVendorCDR_20' ) end [2025-04-07 19:15:20] Production.INFO: ProcessCDR(1,14856931,1,1,2) [2025-04-07 19:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856931', 'tblTempUsageDetail_20' ) start [2025-04-07 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856931', 'tblTempUsageDetail_20' ) end [2025-04-07 19:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:15:25] Production.INFO: ==16492== Releasing lock... [2025-04-07 19:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:15:25] Production.INFO: 53 MB #Memory Used# [2025-04-07 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:16:05 [end_date_ymd] => 2025-04-07 19:16:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:16:05' and `end` < '2025-04-07 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-04-07 19:16:19] Production.INFO: count ==3282 [2025-04-07 19:16:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:16:05 - End Time 2025-04-07 19:16:05 [2025-04-07 19:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856936', 'tblTempUsageDetail_20' ) start [2025-04-07 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856936', 'tblTempUsageDetail_20' ) end [2025-04-07 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856936', 'tblTempVendorCDR_20' ) start [2025-04-07 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856936', 'tblTempVendorCDR_20' ) end [2025-04-07 19:16:20] Production.INFO: ProcessCDR(1,14856936,1,1,2) [2025-04-07 19:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856936', 'tblTempUsageDetail_20' ) start [2025-04-07 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856936', 'tblTempUsageDetail_20' ) end [2025-04-07 19:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:16:23] Production.INFO: ==16590== Releasing lock... [2025-04-07 19:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:16:23] Production.INFO: 52.5 MB #Memory Used# [2025-04-07 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:17:05 [end_date_ymd] => 2025-04-07 19:17:05 [RateCDR] => 1 ) [2025-04-07 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 16:17:05' and `end` < '2025-04-07 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 19:17:19] Production.INFO: count ==3262 [2025-04-07 19:17:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:17:05 - End Time 2025-04-07 19:17:05 [2025-04-07 19:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856941', 'tblTempUsageDetail_20' ) start [2025-04-07 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856941', 'tblTempUsageDetail_20' ) end [2025-04-07 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856941', 'tblTempVendorCDR_20' ) start [2025-04-07 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856941', 'tblTempVendorCDR_20' ) end [2025-04-07 19:17:20] Production.INFO: ProcessCDR(1,14856941,1,1,2) [2025-04-07 19:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856941', 'tblTempUsageDetail_20' ) start [2025-04-07 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856941', 'tblTempUsageDetail_20' ) end [2025-04-07 19:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:17:23] Production.INFO: ==16695== Releasing lock... [2025-04-07 19:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:17:23] Production.INFO: 52.5 MB #Memory Used# [2025-04-07 19:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:18:06 [end_date_ymd] => 2025-04-07 19:18:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:18:06' and `end` < '2025-04-07 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-04-07 19:18:19] Production.INFO: count ==3247 [2025-04-07 19:18:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:18:06 - End Time 2025-04-07 19:18:06 [2025-04-07 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856946', 'tblTempUsageDetail_20' ) start [2025-04-07 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856946', 'tblTempUsageDetail_20' ) end [2025-04-07 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856946', 'tblTempVendorCDR_20' ) start [2025-04-07 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856946', 'tblTempVendorCDR_20' ) end [2025-04-07 19:18:20] Production.INFO: ProcessCDR(1,14856946,1,1,2) [2025-04-07 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856946', 'tblTempUsageDetail_20' ) start [2025-04-07 19:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856946', 'tblTempUsageDetail_20' ) end [2025-04-07 19:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:18:26] Production.INFO: ==16799== Releasing lock... [2025-04-07 19:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:18:26] Production.INFO: 52.25 MB #Memory Used# [2025-04-07 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:19:05 [end_date_ymd] => 2025-04-07 19:19:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:19:05' and `end` < '2025-04-07 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-04-07 19:19:18] Production.INFO: count ==3222 [2025-04-07 19:19:19] Production.ERROR: pbx CDR StartTime 2025-04-07 16:19:05 - End Time 2025-04-07 19:19:05 [2025-04-07 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856951', 'tblTempUsageDetail_20' ) start [2025-04-07 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856951', 'tblTempUsageDetail_20' ) end [2025-04-07 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856951', 'tblTempVendorCDR_20' ) start [2025-04-07 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856951', 'tblTempVendorCDR_20' ) end [2025-04-07 19:19:19] Production.INFO: ProcessCDR(1,14856951,1,1,2) [2025-04-07 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856951', 'tblTempUsageDetail_20' ) start [2025-04-07 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856951', 'tblTempUsageDetail_20' ) end [2025-04-07 19:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:19:24] Production.INFO: ==16898== Releasing lock... [2025-04-07 19:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:19:24] Production.INFO: 52 MB #Memory Used# [2025-04-07 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:20:06 [end_date_ymd] => 2025-04-07 19:20:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:20:06' and `end` < '2025-04-07 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-04-07 19:20:20] Production.INFO: count ==3200 [2025-04-07 19:20:21] Production.ERROR: pbx CDR StartTime 2025-04-07 16:20:06 - End Time 2025-04-07 19:20:06 [2025-04-07 19:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856957', 'tblTempUsageDetail_20' ) start [2025-04-07 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856957', 'tblTempUsageDetail_20' ) end [2025-04-07 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856957', 'tblTempVendorCDR_20' ) start [2025-04-07 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856957', 'tblTempVendorCDR_20' ) end [2025-04-07 19:20:21] Production.INFO: ProcessCDR(1,14856957,1,1,2) [2025-04-07 19:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856957', 'tblTempUsageDetail_20' ) start [2025-04-07 19:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856957', 'tblTempUsageDetail_20' ) end [2025-04-07 19:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:20:26] Production.INFO: ==16999== Releasing lock... [2025-04-07 19:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:20:26] Production.INFO: 52.25 MB #Memory Used# [2025-04-07 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:21:05 [end_date_ymd] => 2025-04-07 19:21:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:21:05' and `end` < '2025-04-07 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-04-07 19:21:18] Production.INFO: count ==3139 [2025-04-07 19:21:19] Production.ERROR: pbx CDR StartTime 2025-04-07 16:21:05 - End Time 2025-04-07 19:21:05 [2025-04-07 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856962', 'tblTempUsageDetail_20' ) start [2025-04-07 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856962', 'tblTempUsageDetail_20' ) end [2025-04-07 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856962', 'tblTempVendorCDR_20' ) start [2025-04-07 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856962', 'tblTempVendorCDR_20' ) end [2025-04-07 19:21:19] Production.INFO: ProcessCDR(1,14856962,1,1,2) [2025-04-07 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856962', 'tblTempUsageDetail_20' ) start [2025-04-07 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856962', 'tblTempUsageDetail_20' ) end [2025-04-07 19:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:21:24] Production.INFO: ==17103== Releasing lock... [2025-04-07 19:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:21:24] Production.INFO: 51.5 MB #Memory Used# [2025-04-07 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:22:05 [end_date_ymd] => 2025-04-07 19:22:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:22:05' and `end` < '2025-04-07 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-04-07 19:22:19] Production.INFO: count ==3124 [2025-04-07 19:22:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:22:05 - End Time 2025-04-07 19:22:05 [2025-04-07 19:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856967', 'tblTempUsageDetail_20' ) start [2025-04-07 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856967', 'tblTempUsageDetail_20' ) end [2025-04-07 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856967', 'tblTempVendorCDR_20' ) start [2025-04-07 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856967', 'tblTempVendorCDR_20' ) end [2025-04-07 19:22:20] Production.INFO: ProcessCDR(1,14856967,1,1,2) [2025-04-07 19:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856967', 'tblTempUsageDetail_20' ) start [2025-04-07 19:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856967', 'tblTempUsageDetail_20' ) end [2025-04-07 19:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:22:25] Production.INFO: ==17206== Releasing lock... [2025-04-07 19:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:22:25] Production.INFO: 51.25 MB #Memory Used# [2025-04-07 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:23:05 [end_date_ymd] => 2025-04-07 19:23:05 [RateCDR] => 1 ) [2025-04-07 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 16:23:05' and `end` < '2025-04-07 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 19:23:18] Production.INFO: count ==3115 [2025-04-07 19:23:19] Production.ERROR: pbx CDR StartTime 2025-04-07 16:23:05 - End Time 2025-04-07 19:23:05 [2025-04-07 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856972', 'tblTempUsageDetail_20' ) start [2025-04-07 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856972', 'tblTempUsageDetail_20' ) end [2025-04-07 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856972', 'tblTempVendorCDR_20' ) start [2025-04-07 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856972', 'tblTempVendorCDR_20' ) end [2025-04-07 19:23:20] Production.INFO: ProcessCDR(1,14856972,1,1,2) [2025-04-07 19:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856972', 'tblTempUsageDetail_20' ) start [2025-04-07 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856972', 'tblTempUsageDetail_20' ) end [2025-04-07 19:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:23:24] Production.INFO: ==17307== Releasing lock... [2025-04-07 19:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:23:24] Production.INFO: 51.25 MB #Memory Used# [2025-04-07 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:24:05 [end_date_ymd] => 2025-04-07 19:24:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:24:05' and `end` < '2025-04-07 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-04-07 19:24:19] Production.INFO: count ==3101 [2025-04-07 19:24:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:24:05 - End Time 2025-04-07 19:24:05 [2025-04-07 19:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856977', 'tblTempUsageDetail_20' ) start [2025-04-07 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856977', 'tblTempUsageDetail_20' ) end [2025-04-07 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856977', 'tblTempVendorCDR_20' ) start [2025-04-07 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856977', 'tblTempVendorCDR_20' ) end [2025-04-07 19:24:20] Production.INFO: ProcessCDR(1,14856977,1,1,2) [2025-04-07 19:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856977', 'tblTempUsageDetail_20' ) start [2025-04-07 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856977', 'tblTempUsageDetail_20' ) end [2025-04-07 19:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:24:24] Production.INFO: ==17406== Releasing lock... [2025-04-07 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:24:24] Production.INFO: 51.25 MB #Memory Used# [2025-04-07 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:25:05 [end_date_ymd] => 2025-04-07 19:25:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:25:05' and `end` < '2025-04-07 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-04-07 19:25:18] Production.INFO: count ==3091 [2025-04-07 19:25:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:25:05 - End Time 2025-04-07 19:25:05 [2025-04-07 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856982', 'tblTempUsageDetail_20' ) start [2025-04-07 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856982', 'tblTempUsageDetail_20' ) end [2025-04-07 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856982', 'tblTempVendorCDR_20' ) start [2025-04-07 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856982', 'tblTempVendorCDR_20' ) end [2025-04-07 19:25:20] Production.INFO: ProcessCDR(1,14856982,1,1,2) [2025-04-07 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856982', 'tblTempUsageDetail_20' ) start [2025-04-07 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856982', 'tblTempUsageDetail_20' ) end [2025-04-07 19:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:25:23] Production.INFO: ==17507== Releasing lock... [2025-04-07 19:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:25:23] Production.INFO: 51.25 MB #Memory Used# [2025-04-07 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:26:05 [end_date_ymd] => 2025-04-07 19:26:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:26:05' and `end` < '2025-04-07 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-04-07 19:26:18] Production.INFO: count ==3089 [2025-04-07 19:26:19] Production.ERROR: pbx CDR StartTime 2025-04-07 16:26:05 - End Time 2025-04-07 19:26:05 [2025-04-07 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856987', 'tblTempUsageDetail_20' ) start [2025-04-07 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856987', 'tblTempUsageDetail_20' ) end [2025-04-07 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856987', 'tblTempVendorCDR_20' ) start [2025-04-07 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856987', 'tblTempVendorCDR_20' ) end [2025-04-07 19:26:20] Production.INFO: ProcessCDR(1,14856987,1,1,2) [2025-04-07 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856987', 'tblTempUsageDetail_20' ) start [2025-04-07 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856987', 'tblTempUsageDetail_20' ) end [2025-04-07 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:26:23] Production.INFO: ==17604== Releasing lock... [2025-04-07 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:26:23] Production.INFO: 51 MB #Memory Used# [2025-04-07 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:27:05 [end_date_ymd] => 2025-04-07 19:27:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:27:05' and `end` < '2025-04-07 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-04-07 19:27:18] Production.INFO: count ==3078 [2025-04-07 19:27:19] Production.ERROR: pbx CDR StartTime 2025-04-07 16:27:05 - End Time 2025-04-07 19:27:05 [2025-04-07 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856992', 'tblTempUsageDetail_20' ) start [2025-04-07 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856992', 'tblTempUsageDetail_20' ) end [2025-04-07 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856992', 'tblTempVendorCDR_20' ) start [2025-04-07 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856992', 'tblTempVendorCDR_20' ) end [2025-04-07 19:27:20] Production.INFO: ProcessCDR(1,14856992,1,1,2) [2025-04-07 19:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856992', 'tblTempUsageDetail_20' ) start [2025-04-07 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856992', 'tblTempUsageDetail_20' ) end [2025-04-07 19:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:27:23] Production.INFO: ==17699== Releasing lock... [2025-04-07 19:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:27:23] Production.INFO: 51.5 MB #Memory Used# [2025-04-07 19:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:28:06 [end_date_ymd] => 2025-04-07 19:28:06 [RateCDR] => 1 ) [2025-04-07 19: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-04-07 16:28:06' and `end` < '2025-04-07 19: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-04-07 19:28:19] Production.INFO: count ==3078 [2025-04-07 19:28:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:28:06 - End Time 2025-04-07 19:28:06 [2025-04-07 19:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856997', 'tblTempUsageDetail_20' ) start [2025-04-07 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14856997', 'tblTempUsageDetail_20' ) end [2025-04-07 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856997', 'tblTempVendorCDR_20' ) start [2025-04-07 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14856997', 'tblTempVendorCDR_20' ) end [2025-04-07 19:28:20] Production.INFO: ProcessCDR(1,14856997,1,1,2) [2025-04-07 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14856997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14856997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14856997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14856997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856997', 'tblTempUsageDetail_20' ) start [2025-04-07 19:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14856997', 'tblTempUsageDetail_20' ) end [2025-04-07 19:28:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:28:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:28:25] Production.INFO: ==17798== Releasing lock... [2025-04-07 19:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:28:25] Production.INFO: 51.25 MB #Memory Used# [2025-04-07 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:29:05 [end_date_ymd] => 2025-04-07 19:29:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:29:05' and `end` < '2025-04-07 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-04-07 19:29:18] Production.INFO: count ==3081 [2025-04-07 19:29:19] Production.ERROR: pbx CDR StartTime 2025-04-07 16:29:05 - End Time 2025-04-07 19:29:05 [2025-04-07 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857002', 'tblTempUsageDetail_20' ) start [2025-04-07 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857002', 'tblTempUsageDetail_20' ) end [2025-04-07 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857002', 'tblTempVendorCDR_20' ) start [2025-04-07 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857002', 'tblTempVendorCDR_20' ) end [2025-04-07 19:29:20] Production.INFO: ProcessCDR(1,14857002,1,1,2) [2025-04-07 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857002', 'tblTempUsageDetail_20' ) start [2025-04-07 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857002', 'tblTempUsageDetail_20' ) end [2025-04-07 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:29:23] Production.INFO: ==17944== Releasing lock... [2025-04-07 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:29:23] Production.INFO: 51 MB #Memory Used# [2025-04-07 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:30:06 [end_date_ymd] => 2025-04-07 19:30:06 [RateCDR] => 1 ) [2025-04-07 19: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-04-07 16:30:06' and `end` < '2025-04-07 19: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-04-07 19:30:19] Production.INFO: count ==3054 [2025-04-07 19:30:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:30:06 - End Time 2025-04-07 19:30:06 [2025-04-07 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857008', 'tblTempUsageDetail_20' ) start [2025-04-07 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857008', 'tblTempUsageDetail_20' ) end [2025-04-07 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857008', 'tblTempVendorCDR_20' ) start [2025-04-07 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857008', 'tblTempVendorCDR_20' ) end [2025-04-07 19:30:20] Production.INFO: ProcessCDR(1,14857008,1,1,2) [2025-04-07 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857008', 'tblTempUsageDetail_20' ) start [2025-04-07 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857008', 'tblTempUsageDetail_20' ) end [2025-04-07 19:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:30:24] Production.INFO: ==18051== Releasing lock... [2025-04-07 19:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:30:24] Production.INFO: 50.75 MB #Memory Used# [2025-04-07 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:31:05 [end_date_ymd] => 2025-04-07 19:31:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:31:05' and `end` < '2025-04-07 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-04-07 19:31:19] Production.INFO: count ==3028 [2025-04-07 19:31:19] Production.ERROR: pbx CDR StartTime 2025-04-07 16:31:05 - End Time 2025-04-07 19:31:05 [2025-04-07 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857013', 'tblTempUsageDetail_20' ) start [2025-04-07 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857013', 'tblTempUsageDetail_20' ) end [2025-04-07 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857013', 'tblTempVendorCDR_20' ) start [2025-04-07 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857013', 'tblTempVendorCDR_20' ) end [2025-04-07 19:31:20] Production.INFO: ProcessCDR(1,14857013,1,1,2) [2025-04-07 19:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857013', 'tblTempUsageDetail_20' ) start [2025-04-07 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857013', 'tblTempUsageDetail_20' ) end [2025-04-07 19:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:31:23] Production.INFO: ==18154== Releasing lock... [2025-04-07 19:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:31:23] Production.INFO: 50.5 MB #Memory Used# [2025-04-07 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:32:05 [end_date_ymd] => 2025-04-07 19:32:05 [RateCDR] => 1 ) [2025-04-07 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 16:32:05' and `end` < '2025-04-07 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 19:32:18] Production.INFO: count ==3017 [2025-04-07 19:32:19] Production.ERROR: pbx CDR StartTime 2025-04-07 16:32:05 - End Time 2025-04-07 19:32:05 [2025-04-07 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857018', 'tblTempUsageDetail_20' ) start [2025-04-07 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857018', 'tblTempUsageDetail_20' ) end [2025-04-07 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857018', 'tblTempVendorCDR_20' ) start [2025-04-07 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857018', 'tblTempVendorCDR_20' ) end [2025-04-07 19:32:20] Production.INFO: ProcessCDR(1,14857018,1,1,2) [2025-04-07 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857018', 'tblTempUsageDetail_20' ) start [2025-04-07 19:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857018', 'tblTempUsageDetail_20' ) end [2025-04-07 19:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:32:25] Production.INFO: ==18257== Releasing lock... [2025-04-07 19:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:32:25] Production.INFO: 50.5 MB #Memory Used# [2025-04-07 19:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:33:06 [end_date_ymd] => 2025-04-07 19:33:06 [RateCDR] => 1 ) [2025-04-07 19:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 16:33:06' and `end` < '2025-04-07 19:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 19:33:19] Production.INFO: count ==3001 [2025-04-07 19:33:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:33:06 - End Time 2025-04-07 19:33:06 [2025-04-07 19:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857023', 'tblTempUsageDetail_20' ) start [2025-04-07 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857023', 'tblTempUsageDetail_20' ) end [2025-04-07 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857023', 'tblTempVendorCDR_20' ) start [2025-04-07 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857023', 'tblTempVendorCDR_20' ) end [2025-04-07 19:33:20] Production.INFO: ProcessCDR(1,14857023,1,1,2) [2025-04-07 19:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857023', 'tblTempUsageDetail_20' ) start [2025-04-07 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857023', 'tblTempUsageDetail_20' ) end [2025-04-07 19:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:33:24] Production.INFO: ==18352== Releasing lock... [2025-04-07 19:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:33:24] Production.INFO: 50.5 MB #Memory Used# [2025-04-07 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:34:05 [end_date_ymd] => 2025-04-07 19:34:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:34:05' and `end` < '2025-04-07 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-04-07 19:34:19] Production.INFO: count ==2986 [2025-04-07 19:34:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:34:05 - End Time 2025-04-07 19:34:05 [2025-04-07 19:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857028', 'tblTempUsageDetail_20' ) start [2025-04-07 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857028', 'tblTempUsageDetail_20' ) end [2025-04-07 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857028', 'tblTempVendorCDR_20' ) start [2025-04-07 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857028', 'tblTempVendorCDR_20' ) end [2025-04-07 19:34:20] Production.INFO: ProcessCDR(1,14857028,1,1,2) [2025-04-07 19:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857028', 'tblTempUsageDetail_20' ) start [2025-04-07 19:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857028', 'tblTempUsageDetail_20' ) end [2025-04-07 19:34:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:34:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:34:25] Production.INFO: ==18453== Releasing lock... [2025-04-07 19:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:34:25] Production.INFO: 50.25 MB #Memory Used# [2025-04-07 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:35:05 [end_date_ymd] => 2025-04-07 19:35:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:35:05' and `end` < '2025-04-07 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-04-07 19:35:19] Production.INFO: count ==2958 [2025-04-07 19:35:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:35:05 - End Time 2025-04-07 19:35:05 [2025-04-07 19:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857033', 'tblTempUsageDetail_20' ) start [2025-04-07 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857033', 'tblTempUsageDetail_20' ) end [2025-04-07 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857033', 'tblTempVendorCDR_20' ) start [2025-04-07 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857033', 'tblTempVendorCDR_20' ) end [2025-04-07 19:35:20] Production.INFO: ProcessCDR(1,14857033,1,1,2) [2025-04-07 19:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857033', 'tblTempUsageDetail_20' ) start [2025-04-07 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857033', 'tblTempUsageDetail_20' ) end [2025-04-07 19:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:35:23] Production.INFO: ==18555== Releasing lock... [2025-04-07 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:35:23] Production.INFO: 50 MB #Memory Used# [2025-04-07 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:36:05 [end_date_ymd] => 2025-04-07 19:36:05 [RateCDR] => 1 ) [2025-04-07 19:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 16:36:05' and `end` < '2025-04-07 19:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 19:36:19] Production.INFO: count ==2944 [2025-04-07 19:36:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:36:05 - End Time 2025-04-07 19:36:05 [2025-04-07 19:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857038', 'tblTempUsageDetail_20' ) start [2025-04-07 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857038', 'tblTempUsageDetail_20' ) end [2025-04-07 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857038', 'tblTempVendorCDR_20' ) start [2025-04-07 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857038', 'tblTempVendorCDR_20' ) end [2025-04-07 19:36:20] Production.INFO: ProcessCDR(1,14857038,1,1,2) [2025-04-07 19:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857038', 'tblTempUsageDetail_20' ) start [2025-04-07 19:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857038', 'tblTempUsageDetail_20' ) end [2025-04-07 19:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:36:25] Production.INFO: ==18655== Releasing lock... [2025-04-07 19:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:36:25] Production.INFO: 50 MB #Memory Used# [2025-04-07 19:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:37:06 [end_date_ymd] => 2025-04-07 19:37:06 [RateCDR] => 1 ) [2025-04-07 19: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-04-07 16:37:06' and `end` < '2025-04-07 19: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-04-07 19:37:19] Production.INFO: count ==2925 [2025-04-07 19:37:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:37:06 - End Time 2025-04-07 19:37:06 [2025-04-07 19:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857043', 'tblTempUsageDetail_20' ) start [2025-04-07 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857043', 'tblTempUsageDetail_20' ) end [2025-04-07 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857043', 'tblTempVendorCDR_20' ) start [2025-04-07 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857043', 'tblTempVendorCDR_20' ) end [2025-04-07 19:37:20] Production.INFO: ProcessCDR(1,14857043,1,1,2) [2025-04-07 19:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857043', 'tblTempUsageDetail_20' ) start [2025-04-07 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857043', 'tblTempUsageDetail_20' ) end [2025-04-07 19:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:37:23] Production.INFO: ==18755== Releasing lock... [2025-04-07 19:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:37:23] Production.INFO: 49.75 MB #Memory Used# [2025-04-07 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:38:05 [end_date_ymd] => 2025-04-07 19:38:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:38:05' and `end` < '2025-04-07 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-04-07 19:38:18] Production.INFO: count ==2921 [2025-04-07 19:38:19] Production.ERROR: pbx CDR StartTime 2025-04-07 16:38:05 - End Time 2025-04-07 19:38:05 [2025-04-07 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857048', 'tblTempUsageDetail_20' ) start [2025-04-07 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857048', 'tblTempUsageDetail_20' ) end [2025-04-07 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857048', 'tblTempVendorCDR_20' ) start [2025-04-07 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857048', 'tblTempVendorCDR_20' ) end [2025-04-07 19:38:19] Production.INFO: ProcessCDR(1,14857048,1,1,2) [2025-04-07 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857048', 'tblTempUsageDetail_20' ) start [2025-04-07 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857048', 'tblTempUsageDetail_20' ) end [2025-04-07 19:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:38:23] Production.INFO: ==18854== Releasing lock... [2025-04-07 19:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:38:23] Production.INFO: 49.75 MB #Memory Used# [2025-04-07 19:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:39:06 [end_date_ymd] => 2025-04-07 19:39:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:39:06' and `end` < '2025-04-07 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-04-07 19:39:19] Production.INFO: count ==2916 [2025-04-07 19:39:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:39:06 - End Time 2025-04-07 19:39:06 [2025-04-07 19:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857053', 'tblTempUsageDetail_20' ) start [2025-04-07 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857053', 'tblTempUsageDetail_20' ) end [2025-04-07 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857053', 'tblTempVendorCDR_20' ) start [2025-04-07 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857053', 'tblTempVendorCDR_20' ) end [2025-04-07 19:39:20] Production.INFO: ProcessCDR(1,14857053,1,1,2) [2025-04-07 19:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857053', 'tblTempUsageDetail_20' ) start [2025-04-07 19:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857053', 'tblTempUsageDetail_20' ) end [2025-04-07 19:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:39:25] Production.INFO: ==18951== Releasing lock... [2025-04-07 19:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:39:25] Production.INFO: 49.75 MB #Memory Used# [2025-04-07 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:40:05 [end_date_ymd] => 2025-04-07 19:40:05 [RateCDR] => 1 ) [2025-04-07 19: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-04-07 16:40:05' and `end` < '2025-04-07 19: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-04-07 19:40:19] Production.INFO: count ==2933 [2025-04-07 19:40:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:40:05 - End Time 2025-04-07 19:40:05 [2025-04-07 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857059', 'tblTempUsageDetail_20' ) start [2025-04-07 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857059', 'tblTempUsageDetail_20' ) end [2025-04-07 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857059', 'tblTempVendorCDR_20' ) start [2025-04-07 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857059', 'tblTempVendorCDR_20' ) end [2025-04-07 19:40:20] Production.INFO: ProcessCDR(1,14857059,1,1,2) [2025-04-07 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857059', 'tblTempUsageDetail_20' ) start [2025-04-07 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857059', 'tblTempUsageDetail_20' ) end [2025-04-07 19:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:40:25] Production.INFO: ==19036== Releasing lock... [2025-04-07 19:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:40:25] Production.INFO: 49.75 MB #Memory Used# [2025-04-07 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:41:05 [end_date_ymd] => 2025-04-07 19:41:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:41:05' and `end` < '2025-04-07 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-04-07 19:41:18] Production.INFO: count ==2871 [2025-04-07 19:41:19] Production.ERROR: pbx CDR StartTime 2025-04-07 16:41:05 - End Time 2025-04-07 19:41:05 [2025-04-07 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857064', 'tblTempUsageDetail_20' ) start [2025-04-07 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857064', 'tblTempUsageDetail_20' ) end [2025-04-07 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857064', 'tblTempVendorCDR_20' ) start [2025-04-07 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857064', 'tblTempVendorCDR_20' ) end [2025-04-07 19:41:19] Production.INFO: ProcessCDR(1,14857064,1,1,2) [2025-04-07 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857064', 'tblTempUsageDetail_20' ) start [2025-04-07 19:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857064', 'tblTempUsageDetail_20' ) end [2025-04-07 19:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:41:25] Production.INFO: ==19114== Releasing lock... [2025-04-07 19:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:41:25] Production.INFO: 49.5 MB #Memory Used# [2025-04-07 19:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:42:06 [end_date_ymd] => 2025-04-07 19:42:06 [RateCDR] => 1 ) [2025-04-07 19: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-04-07 16:42:06' and `end` < '2025-04-07 19: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-04-07 19:42:19] Production.INFO: count ==2864 [2025-04-07 19:42:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:42:06 - End Time 2025-04-07 19:42:06 [2025-04-07 19:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857069', 'tblTempUsageDetail_20' ) start [2025-04-07 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857069', 'tblTempUsageDetail_20' ) end [2025-04-07 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857069', 'tblTempVendorCDR_20' ) start [2025-04-07 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857069', 'tblTempVendorCDR_20' ) end [2025-04-07 19:42:20] Production.INFO: ProcessCDR(1,14857069,1,1,2) [2025-04-07 19:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857069', 'tblTempUsageDetail_20' ) start [2025-04-07 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857069', 'tblTempUsageDetail_20' ) end [2025-04-07 19:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:42:23] Production.INFO: ==19187== Releasing lock... [2025-04-07 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:42:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-07 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:43:05 [end_date_ymd] => 2025-04-07 19:43:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:43:05' and `end` < '2025-04-07 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-04-07 19:43:19] Production.INFO: count ==2856 [2025-04-07 19:43:19] Production.ERROR: pbx CDR StartTime 2025-04-07 16:43:05 - End Time 2025-04-07 19:43:05 [2025-04-07 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857074', 'tblTempUsageDetail_20' ) start [2025-04-07 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857074', 'tblTempUsageDetail_20' ) end [2025-04-07 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857074', 'tblTempVendorCDR_20' ) start [2025-04-07 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857074', 'tblTempVendorCDR_20' ) end [2025-04-07 19:43:20] Production.INFO: ProcessCDR(1,14857074,1,1,2) [2025-04-07 19:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857074', 'tblTempUsageDetail_20' ) start [2025-04-07 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857074', 'tblTempUsageDetail_20' ) end [2025-04-07 19:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:43:23] Production.INFO: ==19258== Releasing lock... [2025-04-07 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:43:23] Production.INFO: 49.5 MB #Memory Used# [2025-04-07 19:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:44:06 [end_date_ymd] => 2025-04-07 19:44:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:44:06' and `end` < '2025-04-07 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-04-07 19:44:19] Production.INFO: count ==2833 [2025-04-07 19:44:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:44:06 - End Time 2025-04-07 19:44:06 [2025-04-07 19:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857079', 'tblTempUsageDetail_20' ) start [2025-04-07 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857079', 'tblTempUsageDetail_20' ) end [2025-04-07 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857079', 'tblTempVendorCDR_20' ) start [2025-04-07 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857079', 'tblTempVendorCDR_20' ) end [2025-04-07 19:44:20] Production.INFO: ProcessCDR(1,14857079,1,1,2) [2025-04-07 19:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857079', 'tblTempUsageDetail_20' ) start [2025-04-07 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857079', 'tblTempUsageDetail_20' ) end [2025-04-07 19:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:44:23] Production.INFO: ==19372== Releasing lock... [2025-04-07 19:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:44:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-07 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:45:05 [end_date_ymd] => 2025-04-07 19:45:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:45:05' and `end` < '2025-04-07 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-04-07 19:45:18] Production.INFO: count ==2832 [2025-04-07 19:45:19] Production.ERROR: pbx CDR StartTime 2025-04-07 16:45:05 - End Time 2025-04-07 19:45:05 [2025-04-07 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857084', 'tblTempUsageDetail_20' ) start [2025-04-07 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857084', 'tblTempUsageDetail_20' ) end [2025-04-07 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857084', 'tblTempVendorCDR_20' ) start [2025-04-07 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857084', 'tblTempVendorCDR_20' ) end [2025-04-07 19:45:19] Production.INFO: ProcessCDR(1,14857084,1,1,2) [2025-04-07 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857084', 'tblTempUsageDetail_20' ) start [2025-04-07 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857084', 'tblTempUsageDetail_20' ) end [2025-04-07 19:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:45:24] Production.INFO: ==19444== Releasing lock... [2025-04-07 19:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:45:24] Production.INFO: 49.5 MB #Memory Used# [2025-04-07 19:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:46:06 [end_date_ymd] => 2025-04-07 19:46:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:46:06' and `end` < '2025-04-07 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-04-07 19:46:19] Production.INFO: count ==2818 [2025-04-07 19:46:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:46:06 - End Time 2025-04-07 19:46:06 [2025-04-07 19:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857089', 'tblTempUsageDetail_20' ) start [2025-04-07 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857089', 'tblTempUsageDetail_20' ) end [2025-04-07 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857089', 'tblTempVendorCDR_20' ) start [2025-04-07 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857089', 'tblTempVendorCDR_20' ) end [2025-04-07 19:46:20] Production.INFO: ProcessCDR(1,14857089,1,1,2) [2025-04-07 19:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857089', 'tblTempUsageDetail_20' ) start [2025-04-07 19:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857089', 'tblTempUsageDetail_20' ) end [2025-04-07 19:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:46:25] Production.INFO: ==19517== Releasing lock... [2025-04-07 19:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:46:25] Production.INFO: 49.25 MB #Memory Used# [2025-04-07 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:47:05 [end_date_ymd] => 2025-04-07 19:47:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:47:05' and `end` < '2025-04-07 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-04-07 19:47:18] Production.INFO: count ==2821 [2025-04-07 19:47:19] Production.ERROR: pbx CDR StartTime 2025-04-07 16:47:05 - End Time 2025-04-07 19:47:05 [2025-04-07 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857094', 'tblTempUsageDetail_20' ) start [2025-04-07 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857094', 'tblTempUsageDetail_20' ) end [2025-04-07 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857094', 'tblTempVendorCDR_20' ) start [2025-04-07 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857094', 'tblTempVendorCDR_20' ) end [2025-04-07 19:47:19] Production.INFO: ProcessCDR(1,14857094,1,1,2) [2025-04-07 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857094', 'tblTempUsageDetail_20' ) start [2025-04-07 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857094', 'tblTempUsageDetail_20' ) end [2025-04-07 19:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:47:23] Production.INFO: ==19591== Releasing lock... [2025-04-07 19:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:47:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-07 19:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:48:06 [end_date_ymd] => 2025-04-07 19:48:06 [RateCDR] => 1 ) [2025-04-07 19: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-04-07 16:48:06' and `end` < '2025-04-07 19: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-04-07 19:48:19] Production.INFO: count ==2811 [2025-04-07 19:48:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:48:06 - End Time 2025-04-07 19:48:06 [2025-04-07 19:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857099', 'tblTempUsageDetail_20' ) start [2025-04-07 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857099', 'tblTempUsageDetail_20' ) end [2025-04-07 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857099', 'tblTempVendorCDR_20' ) start [2025-04-07 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857099', 'tblTempVendorCDR_20' ) end [2025-04-07 19:48:20] Production.INFO: ProcessCDR(1,14857099,1,1,2) [2025-04-07 19:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857099', 'tblTempUsageDetail_20' ) start [2025-04-07 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857099', 'tblTempUsageDetail_20' ) end [2025-04-07 19:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:48:24] Production.INFO: ==19666== Releasing lock... [2025-04-07 19:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:48:24] Production.INFO: 49.5 MB #Memory Used# [2025-04-07 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:49:05 [end_date_ymd] => 2025-04-07 19:49:05 [RateCDR] => 1 ) [2025-04-07 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 16:49:05' and `end` < '2025-04-07 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 19:49:18] Production.INFO: count ==2802 [2025-04-07 19:49:19] Production.ERROR: pbx CDR StartTime 2025-04-07 16:49:05 - End Time 2025-04-07 19:49:05 [2025-04-07 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857104', 'tblTempUsageDetail_20' ) start [2025-04-07 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857104', 'tblTempUsageDetail_20' ) end [2025-04-07 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857104', 'tblTempVendorCDR_20' ) start [2025-04-07 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857104', 'tblTempVendorCDR_20' ) end [2025-04-07 19:49:19] Production.INFO: ProcessCDR(1,14857104,1,1,2) [2025-04-07 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857104', 'tblTempUsageDetail_20' ) start [2025-04-07 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857104', 'tblTempUsageDetail_20' ) end [2025-04-07 19:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:49:22] Production.INFO: ==19737== Releasing lock... [2025-04-07 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:49:22] Production.INFO: 49 MB #Memory Used# [2025-04-07 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:50:06 [end_date_ymd] => 2025-04-07 19:50:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:50:06' and `end` < '2025-04-07 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-04-07 19:50:19] Production.INFO: count ==2777 [2025-04-07 19:50:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:50:06 - End Time 2025-04-07 19:50:06 [2025-04-07 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857110', 'tblTempUsageDetail_20' ) start [2025-04-07 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857110', 'tblTempUsageDetail_20' ) end [2025-04-07 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857110', 'tblTempVendorCDR_20' ) start [2025-04-07 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857110', 'tblTempVendorCDR_20' ) end [2025-04-07 19:50:20] Production.INFO: ProcessCDR(1,14857110,1,1,2) [2025-04-07 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857110', 'tblTempUsageDetail_20' ) start [2025-04-07 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857110', 'tblTempUsageDetail_20' ) end [2025-04-07 19:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:50:23] Production.INFO: ==19810== Releasing lock... [2025-04-07 19:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:50:23] Production.INFO: 49 MB #Memory Used# [2025-04-07 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:51:05 [end_date_ymd] => 2025-04-07 19:51:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:51:05' and `end` < '2025-04-07 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-04-07 19:51:18] Production.INFO: count ==2707 [2025-04-07 19:51:19] Production.ERROR: pbx CDR StartTime 2025-04-07 16:51:05 - End Time 2025-04-07 19:51:05 [2025-04-07 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857115', 'tblTempUsageDetail_20' ) start [2025-04-07 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857115', 'tblTempUsageDetail_20' ) end [2025-04-07 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857115', 'tblTempVendorCDR_20' ) start [2025-04-07 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857115', 'tblTempVendorCDR_20' ) end [2025-04-07 19:51:19] Production.INFO: ProcessCDR(1,14857115,1,1,2) [2025-04-07 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857115', 'tblTempUsageDetail_20' ) start [2025-04-07 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857115', 'tblTempUsageDetail_20' ) end [2025-04-07 19:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:51:24] Production.INFO: ==19884== Releasing lock... [2025-04-07 19:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:51:24] Production.INFO: 48.5 MB #Memory Used# [2025-04-07 19:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:52:05 [end_date_ymd] => 2025-04-07 19:52:05 [RateCDR] => 1 ) [2025-04-07 19: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-04-07 16:52:05' and `end` < '2025-04-07 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-04-07 19:52:19] Production.INFO: count ==2684 [2025-04-07 19:52:19] Production.ERROR: pbx CDR StartTime 2025-04-07 16:52:05 - End Time 2025-04-07 19:52:05 [2025-04-07 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857120', 'tblTempUsageDetail_20' ) start [2025-04-07 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857120', 'tblTempUsageDetail_20' ) end [2025-04-07 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857120', 'tblTempVendorCDR_20' ) start [2025-04-07 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857120', 'tblTempVendorCDR_20' ) end [2025-04-07 19:52:20] Production.INFO: ProcessCDR(1,14857120,1,1,2) [2025-04-07 19:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857120', 'tblTempUsageDetail_20' ) start [2025-04-07 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857120', 'tblTempUsageDetail_20' ) end [2025-04-07 19:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:52:24] Production.INFO: ==19956== Releasing lock... [2025-04-07 19:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:52:24] Production.INFO: 48.25 MB #Memory Used# [2025-04-07 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:53:05 [end_date_ymd] => 2025-04-07 19:53:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:53:05' and `end` < '2025-04-07 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-04-07 19:53:18] Production.INFO: count ==2683 [2025-04-07 19:53:19] Production.ERROR: pbx CDR StartTime 2025-04-07 16:53:05 - End Time 2025-04-07 19:53:05 [2025-04-07 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857125', 'tblTempUsageDetail_20' ) start [2025-04-07 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857125', 'tblTempUsageDetail_20' ) end [2025-04-07 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857125', 'tblTempVendorCDR_20' ) start [2025-04-07 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857125', 'tblTempVendorCDR_20' ) end [2025-04-07 19:53:19] Production.INFO: ProcessCDR(1,14857125,1,1,2) [2025-04-07 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857125', 'tblTempUsageDetail_20' ) start [2025-04-07 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857125', 'tblTempUsageDetail_20' ) end [2025-04-07 19:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:53:23] Production.INFO: ==20028== Releasing lock... [2025-04-07 19:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:53:23] Production.INFO: 48.25 MB #Memory Used# [2025-04-07 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:54:05 [end_date_ymd] => 2025-04-07 19:54:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:54:05' and `end` < '2025-04-07 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-04-07 19:54:18] Production.INFO: count ==2677 [2025-04-07 19:54:19] Production.ERROR: pbx CDR StartTime 2025-04-07 16:54:05 - End Time 2025-04-07 19:54:05 [2025-04-07 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857130', 'tblTempUsageDetail_20' ) start [2025-04-07 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857130', 'tblTempUsageDetail_20' ) end [2025-04-07 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857130', 'tblTempVendorCDR_20' ) start [2025-04-07 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857130', 'tblTempVendorCDR_20' ) end [2025-04-07 19:54:19] Production.INFO: ProcessCDR(1,14857130,1,1,2) [2025-04-07 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857130', 'tblTempUsageDetail_20' ) start [2025-04-07 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857130', 'tblTempUsageDetail_20' ) end [2025-04-07 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:54:22] Production.INFO: ==20103== Releasing lock... [2025-04-07 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:54:22] Production.INFO: 48.25 MB #Memory Used# [2025-04-07 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:55:05 [end_date_ymd] => 2025-04-07 19:55:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:55:05' and `end` < '2025-04-07 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-04-07 19:55:18] Production.INFO: count ==2676 [2025-04-07 19:55:19] Production.ERROR: pbx CDR StartTime 2025-04-07 16:55:05 - End Time 2025-04-07 19:55:05 [2025-04-07 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857135', 'tblTempUsageDetail_20' ) start [2025-04-07 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857135', 'tblTempUsageDetail_20' ) end [2025-04-07 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857135', 'tblTempVendorCDR_20' ) start [2025-04-07 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857135', 'tblTempVendorCDR_20' ) end [2025-04-07 19:55:19] Production.INFO: ProcessCDR(1,14857135,1,1,2) [2025-04-07 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857135', 'tblTempUsageDetail_20' ) start [2025-04-07 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857135', 'tblTempUsageDetail_20' ) end [2025-04-07 19:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:55:22] Production.INFO: ==20173== Releasing lock... [2025-04-07 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:55:22] Production.INFO: 48.25 MB #Memory Used# [2025-04-07 19:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:56:06 [end_date_ymd] => 2025-04-07 19:56:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:56:06' and `end` < '2025-04-07 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-04-07 19:56:19] Production.INFO: count ==2670 [2025-04-07 19:56:20] Production.ERROR: pbx CDR StartTime 2025-04-07 16:56:06 - End Time 2025-04-07 19:56:06 [2025-04-07 19:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857140', 'tblTempUsageDetail_20' ) start [2025-04-07 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857140', 'tblTempUsageDetail_20' ) end [2025-04-07 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857140', 'tblTempVendorCDR_20' ) start [2025-04-07 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857140', 'tblTempVendorCDR_20' ) end [2025-04-07 19:56:20] Production.INFO: ProcessCDR(1,14857140,1,1,2) [2025-04-07 19:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857140', 'tblTempUsageDetail_20' ) start [2025-04-07 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857140', 'tblTempUsageDetail_20' ) end [2025-04-07 19:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:56:23] Production.INFO: ==20248== Releasing lock... [2025-04-07 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:56:23] Production.INFO: 48 MB #Memory Used# [2025-04-07 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:57:05 [end_date_ymd] => 2025-04-07 19:57:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:57:05' and `end` < '2025-04-07 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-04-07 19:57:18] Production.INFO: count ==2667 [2025-04-07 19:57:19] Production.ERROR: pbx CDR StartTime 2025-04-07 16:57:05 - End Time 2025-04-07 19:57:05 [2025-04-07 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857145', 'tblTempUsageDetail_20' ) start [2025-04-07 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857145', 'tblTempUsageDetail_20' ) end [2025-04-07 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857145', 'tblTempVendorCDR_20' ) start [2025-04-07 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857145', 'tblTempVendorCDR_20' ) end [2025-04-07 19:57:19] Production.INFO: ProcessCDR(1,14857145,1,1,2) [2025-04-07 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857145', 'tblTempUsageDetail_20' ) start [2025-04-07 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857145', 'tblTempUsageDetail_20' ) end [2025-04-07 19:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:57:24] Production.INFO: ==20318== Releasing lock... [2025-04-07 19:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:57:24] Production.INFO: 48 MB #Memory Used# [2025-04-07 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:58:05 [end_date_ymd] => 2025-04-07 19:58:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:58:05' and `end` < '2025-04-07 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-04-07 19:58:18] Production.INFO: count ==2656 [2025-04-07 19:58:19] Production.ERROR: pbx CDR StartTime 2025-04-07 16:58:05 - End Time 2025-04-07 19:58:05 [2025-04-07 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857150', 'tblTempUsageDetail_20' ) start [2025-04-07 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857150', 'tblTempUsageDetail_20' ) end [2025-04-07 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857150', 'tblTempVendorCDR_20' ) start [2025-04-07 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857150', 'tblTempVendorCDR_20' ) end [2025-04-07 19:58:19] Production.INFO: ProcessCDR(1,14857150,1,1,2) [2025-04-07 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857150', 'tblTempUsageDetail_20' ) start [2025-04-07 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857150', 'tblTempUsageDetail_20' ) end [2025-04-07 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:58:23] Production.INFO: ==20389== Releasing lock... [2025-04-07 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:58:23] Production.INFO: 48 MB #Memory Used# [2025-04-07 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 16:59:05 [end_date_ymd] => 2025-04-07 19:59:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 16:59:05' and `end` < '2025-04-07 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-04-07 19:59:18] Production.INFO: count ==2653 [2025-04-07 19:59:19] Production.ERROR: pbx CDR StartTime 2025-04-07 16:59:05 - End Time 2025-04-07 19:59:05 [2025-04-07 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857155', 'tblTempUsageDetail_20' ) start [2025-04-07 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857155', 'tblTempUsageDetail_20' ) end [2025-04-07 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857155', 'tblTempVendorCDR_20' ) start [2025-04-07 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857155', 'tblTempVendorCDR_20' ) end [2025-04-07 19:59:19] Production.INFO: ProcessCDR(1,14857155,1,1,2) [2025-04-07 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 19:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857155', 'tblTempUsageDetail_20' ) start [2025-04-07 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857155', 'tblTempUsageDetail_20' ) end [2025-04-07 19:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 19:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 19:59:24] Production.INFO: ==20509== Releasing lock... [2025-04-07 19:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 19:59:24] Production.INFO: 48 MB #Memory Used# [2025-04-07 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:00:06 [end_date_ymd] => 2025-04-07 20:00:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:00:06' and `end` < '2025-04-07 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-04-07 20:00:19] Production.INFO: count ==2636 [2025-04-07 20:00:20] Production.ERROR: pbx CDR StartTime 2025-04-07 17:00:06 - End Time 2025-04-07 20:00:06 [2025-04-07 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857161', 'tblTempUsageDetail_20' ) start [2025-04-07 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857161', 'tblTempUsageDetail_20' ) end [2025-04-07 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857161', 'tblTempVendorCDR_20' ) start [2025-04-07 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857161', 'tblTempVendorCDR_20' ) end [2025-04-07 20:00:20] Production.INFO: ProcessCDR(1,14857161,1,1,2) [2025-04-07 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857161', 'tblTempUsageDetail_20' ) start [2025-04-07 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857161', 'tblTempUsageDetail_20' ) end [2025-04-07 20:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:00:25] Production.INFO: ==20585== Releasing lock... [2025-04-07 20:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:00:25] Production.INFO: 47.75 MB #Memory Used# [2025-04-07 20:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:01:06 [end_date_ymd] => 2025-04-07 20:01:06 [RateCDR] => 1 ) [2025-04-07 20:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 17:01:06' and `end` < '2025-04-07 20:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 20:01:19] Production.INFO: count ==2548 [2025-04-07 20:01:20] Production.ERROR: pbx CDR StartTime 2025-04-07 17:01:06 - End Time 2025-04-07 20:01:06 [2025-04-07 20:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857166', 'tblTempUsageDetail_20' ) start [2025-04-07 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857166', 'tblTempUsageDetail_20' ) end [2025-04-07 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857166', 'tblTempVendorCDR_20' ) start [2025-04-07 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857166', 'tblTempVendorCDR_20' ) end [2025-04-07 20:01:20] Production.INFO: ProcessCDR(1,14857166,1,1,2) [2025-04-07 20:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857166', 'tblTempUsageDetail_20' ) start [2025-04-07 20:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857166', 'tblTempUsageDetail_20' ) end [2025-04-07 20:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:01:24] Production.INFO: ==20716== Releasing lock... [2025-04-07 20:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:01:24] Production.INFO: 47.25 MB #Memory Used# [2025-04-07 20:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:02:06 [end_date_ymd] => 2025-04-07 20:02:06 [RateCDR] => 1 ) [2025-04-07 20: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-04-07 17:02:06' and `end` < '2025-04-07 20: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-04-07 20:02:19] Production.INFO: count ==2541 [2025-04-07 20:02:20] Production.ERROR: pbx CDR StartTime 2025-04-07 17:02:06 - End Time 2025-04-07 20:02:06 [2025-04-07 20:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857171', 'tblTempUsageDetail_20' ) start [2025-04-07 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857171', 'tblTempUsageDetail_20' ) end [2025-04-07 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857171', 'tblTempVendorCDR_20' ) start [2025-04-07 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857171', 'tblTempVendorCDR_20' ) end [2025-04-07 20:02:20] Production.INFO: ProcessCDR(1,14857171,1,1,2) [2025-04-07 20:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857171', 'tblTempUsageDetail_20' ) start [2025-04-07 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857171', 'tblTempUsageDetail_20' ) end [2025-04-07 20:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:02:24] Production.INFO: ==20791== Releasing lock... [2025-04-07 20:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:02:24] Production.INFO: 47.25 MB #Memory Used# [2025-04-07 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:03:05 [end_date_ymd] => 2025-04-07 20:03:05 [RateCDR] => 1 ) [2025-04-07 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 17:03:05' and `end` < '2025-04-07 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 20:03:19] Production.INFO: count ==2515 [2025-04-07 20:03:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:03:05 - End Time 2025-04-07 20:03:05 [2025-04-07 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857176', 'tblTempUsageDetail_20' ) start [2025-04-07 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857176', 'tblTempUsageDetail_20' ) end [2025-04-07 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857176', 'tblTempVendorCDR_20' ) start [2025-04-07 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857176', 'tblTempVendorCDR_20' ) end [2025-04-07 20:03:19] Production.INFO: ProcessCDR(1,14857176,1,1,2) [2025-04-07 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857176', 'tblTempUsageDetail_20' ) start [2025-04-07 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857176', 'tblTempUsageDetail_20' ) end [2025-04-07 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:03:23] Production.INFO: ==20862== Releasing lock... [2025-04-07 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:03:23] Production.INFO: 47 MB #Memory Used# [2025-04-07 20:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:04:06 [end_date_ymd] => 2025-04-07 20:04:06 [RateCDR] => 1 ) [2025-04-07 20:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 17:04:06' and `end` < '2025-04-07 20:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 20:04:19] Production.INFO: count ==2503 [2025-04-07 20:04:20] Production.ERROR: pbx CDR StartTime 2025-04-07 17:04:06 - End Time 2025-04-07 20:04:06 [2025-04-07 20:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857181', 'tblTempUsageDetail_20' ) start [2025-04-07 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857181', 'tblTempUsageDetail_20' ) end [2025-04-07 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857181', 'tblTempVendorCDR_20' ) start [2025-04-07 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857181', 'tblTempVendorCDR_20' ) end [2025-04-07 20:04:20] Production.INFO: ProcessCDR(1,14857181,1,1,2) [2025-04-07 20:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857181', 'tblTempUsageDetail_20' ) start [2025-04-07 20:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857181', 'tblTempUsageDetail_20' ) end [2025-04-07 20:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:04:24] Production.INFO: ==20936== Releasing lock... [2025-04-07 20:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:04:24] Production.INFO: 46.75 MB #Memory Used# [2025-04-07 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:05:05 [end_date_ymd] => 2025-04-07 20:05:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:05:05' and `end` < '2025-04-07 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-04-07 20:05:18] Production.INFO: count ==2494 [2025-04-07 20:05:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:05:05 - End Time 2025-04-07 20:05:05 [2025-04-07 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857186', 'tblTempUsageDetail_20' ) start [2025-04-07 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857186', 'tblTempUsageDetail_20' ) end [2025-04-07 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857186', 'tblTempVendorCDR_20' ) start [2025-04-07 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857186', 'tblTempVendorCDR_20' ) end [2025-04-07 20:05:19] Production.INFO: ProcessCDR(1,14857186,1,1,2) [2025-04-07 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857186', 'tblTempUsageDetail_20' ) start [2025-04-07 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857186', 'tblTempUsageDetail_20' ) end [2025-04-07 20:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:05:23] Production.INFO: ==21010== Releasing lock... [2025-04-07 20:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:05:23] Production.INFO: 46.75 MB #Memory Used# [2025-04-07 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:06:05 [end_date_ymd] => 2025-04-07 20:06:05 [RateCDR] => 1 ) [2025-04-07 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 17:06:05' and `end` < '2025-04-07 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 20:06:18] Production.INFO: count ==2484 [2025-04-07 20:06:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:06:05 - End Time 2025-04-07 20:06:05 [2025-04-07 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857191', 'tblTempUsageDetail_20' ) start [2025-04-07 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857191', 'tblTempUsageDetail_20' ) end [2025-04-07 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857191', 'tblTempVendorCDR_20' ) start [2025-04-07 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857191', 'tblTempVendorCDR_20' ) end [2025-04-07 20:06:19] Production.INFO: ProcessCDR(1,14857191,1,1,2) [2025-04-07 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857191', 'tblTempUsageDetail_20' ) start [2025-04-07 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857191', 'tblTempUsageDetail_20' ) end [2025-04-07 20:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:06:23] Production.INFO: ==21085== Releasing lock... [2025-04-07 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:06:23] Production.INFO: 46.75 MB #Memory Used# [2025-04-07 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:07:05 [end_date_ymd] => 2025-04-07 20:07:05 [RateCDR] => 1 ) [2025-04-07 20:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 17:07:05' and `end` < '2025-04-07 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 20:07:18] Production.INFO: count ==2481 [2025-04-07 20:07:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:07:05 - End Time 2025-04-07 20:07:05 [2025-04-07 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857196', 'tblTempUsageDetail_20' ) start [2025-04-07 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857196', 'tblTempUsageDetail_20' ) end [2025-04-07 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857196', 'tblTempVendorCDR_20' ) start [2025-04-07 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857196', 'tblTempVendorCDR_20' ) end [2025-04-07 20:07:19] Production.INFO: ProcessCDR(1,14857196,1,1,2) [2025-04-07 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857196', 'tblTempUsageDetail_20' ) start [2025-04-07 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857196', 'tblTempUsageDetail_20' ) end [2025-04-07 20:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:07:24] Production.INFO: ==21158== Releasing lock... [2025-04-07 20:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:07:24] Production.INFO: 46.75 MB #Memory Used# [2025-04-07 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:08:05 [end_date_ymd] => 2025-04-07 20:08:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:08:05' and `end` < '2025-04-07 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-04-07 20:08:18] Production.INFO: count ==2479 [2025-04-07 20:08:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:08:05 - End Time 2025-04-07 20:08:05 [2025-04-07 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857201', 'tblTempUsageDetail_20' ) start [2025-04-07 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857201', 'tblTempUsageDetail_20' ) end [2025-04-07 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857201', 'tblTempVendorCDR_20' ) start [2025-04-07 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857201', 'tblTempVendorCDR_20' ) end [2025-04-07 20:08:19] Production.INFO: ProcessCDR(1,14857201,1,1,2) [2025-04-07 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857201', 'tblTempUsageDetail_20' ) start [2025-04-07 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857201', 'tblTempUsageDetail_20' ) end [2025-04-07 20:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:08:24] Production.INFO: ==21233== Releasing lock... [2025-04-07 20:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:08:24] Production.INFO: 46.75 MB #Memory Used# [2025-04-07 20:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:09:06 [end_date_ymd] => 2025-04-07 20:09:06 [RateCDR] => 1 ) [2025-04-07 20:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 17:09:06' and `end` < '2025-04-07 20:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 20:09:19] Production.INFO: count ==2466 [2025-04-07 20:09:20] Production.ERROR: pbx CDR StartTime 2025-04-07 17:09:06 - End Time 2025-04-07 20:09:06 [2025-04-07 20:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857206', 'tblTempUsageDetail_20' ) start [2025-04-07 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857206', 'tblTempUsageDetail_20' ) end [2025-04-07 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857206', 'tblTempVendorCDR_20' ) start [2025-04-07 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857206', 'tblTempVendorCDR_20' ) end [2025-04-07 20:09:20] Production.INFO: ProcessCDR(1,14857206,1,1,2) [2025-04-07 20:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857206', 'tblTempUsageDetail_20' ) start [2025-04-07 20:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857206', 'tblTempUsageDetail_20' ) end [2025-04-07 20:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:09:25] Production.INFO: ==21307== Releasing lock... [2025-04-07 20:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:09:25] Production.INFO: 46.5 MB #Memory Used# [2025-04-07 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:10:06 [end_date_ymd] => 2025-04-07 20:10:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:10:06' and `end` < '2025-04-07 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-04-07 20:10:20] Production.INFO: count ==2458 [2025-04-07 20:10:20] Production.ERROR: pbx CDR StartTime 2025-04-07 17:10:06 - End Time 2025-04-07 20:10:06 [2025-04-07 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857212', 'tblTempUsageDetail_20' ) start [2025-04-07 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857212', 'tblTempUsageDetail_20' ) end [2025-04-07 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857212', 'tblTempVendorCDR_20' ) start [2025-04-07 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857212', 'tblTempVendorCDR_20' ) end [2025-04-07 20:10:20] Production.INFO: ProcessCDR(1,14857212,1,1,2) [2025-04-07 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857212', 'tblTempUsageDetail_20' ) start [2025-04-07 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857212', 'tblTempUsageDetail_20' ) end [2025-04-07 20:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:10:24] Production.INFO: ==21381== Releasing lock... [2025-04-07 20:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:10:24] Production.INFO: 46.5 MB #Memory Used# [2025-04-07 20:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:11:06 [end_date_ymd] => 2025-04-07 20:11:06 [RateCDR] => 1 ) [2025-04-07 20:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 17:11:06' and `end` < '2025-04-07 20:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 20:11:19] Production.INFO: count ==2388 [2025-04-07 20:11:20] Production.ERROR: pbx CDR StartTime 2025-04-07 17:11:06 - End Time 2025-04-07 20:11:06 [2025-04-07 20:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857217', 'tblTempUsageDetail_20' ) start [2025-04-07 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857217', 'tblTempUsageDetail_20' ) end [2025-04-07 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857217', 'tblTempVendorCDR_20' ) start [2025-04-07 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857217', 'tblTempVendorCDR_20' ) end [2025-04-07 20:11:20] Production.INFO: ProcessCDR(1,14857217,1,1,2) [2025-04-07 20:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857217', 'tblTempUsageDetail_20' ) start [2025-04-07 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857217', 'tblTempUsageDetail_20' ) end [2025-04-07 20:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:11:23] Production.INFO: ==21456== Releasing lock... [2025-04-07 20:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:11:23] Production.INFO: 46 MB #Memory Used# [2025-04-07 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:12:05 [end_date_ymd] => 2025-04-07 20:12:05 [RateCDR] => 1 ) [2025-04-07 20:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 17:12:05' and `end` < '2025-04-07 20:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 20:12:19] Production.INFO: count ==2391 [2025-04-07 20:12:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:12:05 - End Time 2025-04-07 20:12:05 [2025-04-07 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857222', 'tblTempUsageDetail_20' ) start [2025-04-07 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857222', 'tblTempUsageDetail_20' ) end [2025-04-07 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857222', 'tblTempVendorCDR_20' ) start [2025-04-07 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857222', 'tblTempVendorCDR_20' ) end [2025-04-07 20:12:19] Production.INFO: ProcessCDR(1,14857222,1,1,2) [2025-04-07 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857222', 'tblTempUsageDetail_20' ) start [2025-04-07 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857222', 'tblTempUsageDetail_20' ) end [2025-04-07 20:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:12:24] Production.INFO: ==21532== Releasing lock... [2025-04-07 20:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:12:24] Production.INFO: 46 MB #Memory Used# [2025-04-07 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:13:05 [end_date_ymd] => 2025-04-07 20:13:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:13:05' and `end` < '2025-04-07 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-04-07 20:13:19] Production.INFO: count ==2390 [2025-04-07 20:13:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:13:05 - End Time 2025-04-07 20:13:05 [2025-04-07 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857227', 'tblTempUsageDetail_20' ) start [2025-04-07 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857227', 'tblTempUsageDetail_20' ) end [2025-04-07 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857227', 'tblTempVendorCDR_20' ) start [2025-04-07 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857227', 'tblTempVendorCDR_20' ) end [2025-04-07 20:13:19] Production.INFO: ProcessCDR(1,14857227,1,1,2) [2025-04-07 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857227', 'tblTempUsageDetail_20' ) start [2025-04-07 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857227', 'tblTempUsageDetail_20' ) end [2025-04-07 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:13:23] Production.INFO: ==21605== Releasing lock... [2025-04-07 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:13:23] Production.INFO: 46.25 MB #Memory Used# [2025-04-07 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:14:05 [end_date_ymd] => 2025-04-07 20:14:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:14:05' and `end` < '2025-04-07 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-04-07 20:14:18] Production.INFO: count ==2383 [2025-04-07 20:14:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:14:05 - End Time 2025-04-07 20:14:05 [2025-04-07 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857232', 'tblTempUsageDetail_20' ) start [2025-04-07 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857232', 'tblTempUsageDetail_20' ) end [2025-04-07 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857232', 'tblTempVendorCDR_20' ) start [2025-04-07 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857232', 'tblTempVendorCDR_20' ) end [2025-04-07 20:14:19] Production.INFO: ProcessCDR(1,14857232,1,1,2) [2025-04-07 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857232', 'tblTempUsageDetail_20' ) start [2025-04-07 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857232', 'tblTempUsageDetail_20' ) end [2025-04-07 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:14:22] Production.INFO: ==21682== Releasing lock... [2025-04-07 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:14:22] Production.INFO: 46 MB #Memory Used# [2025-04-07 20:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:15:06 [end_date_ymd] => 2025-04-07 20:15:06 [RateCDR] => 1 ) [2025-04-07 20:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 17:15:06' and `end` < '2025-04-07 20:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 20:15:19] Production.INFO: count ==2380 [2025-04-07 20:15:20] Production.ERROR: pbx CDR StartTime 2025-04-07 17:15:06 - End Time 2025-04-07 20:15:06 [2025-04-07 20:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857237', 'tblTempUsageDetail_20' ) start [2025-04-07 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857237', 'tblTempUsageDetail_20' ) end [2025-04-07 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857237', 'tblTempVendorCDR_20' ) start [2025-04-07 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857237', 'tblTempVendorCDR_20' ) end [2025-04-07 20:15:20] Production.INFO: ProcessCDR(1,14857237,1,1,2) [2025-04-07 20:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857237', 'tblTempUsageDetail_20' ) start [2025-04-07 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857237', 'tblTempUsageDetail_20' ) end [2025-04-07 20:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:15:23] Production.INFO: ==21797== Releasing lock... [2025-04-07 20:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:15:23] Production.INFO: 46 MB #Memory Used# [2025-04-07 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:16:05 [end_date_ymd] => 2025-04-07 20:16:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:16:05' and `end` < '2025-04-07 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-04-07 20:16:18] Production.INFO: count ==2388 [2025-04-07 20:16:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:16:05 - End Time 2025-04-07 20:16:05 [2025-04-07 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857242', 'tblTempUsageDetail_20' ) start [2025-04-07 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857242', 'tblTempUsageDetail_20' ) end [2025-04-07 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857242', 'tblTempVendorCDR_20' ) start [2025-04-07 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857242', 'tblTempVendorCDR_20' ) end [2025-04-07 20:16:19] Production.INFO: ProcessCDR(1,14857242,1,1,2) [2025-04-07 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857242', 'tblTempUsageDetail_20' ) start [2025-04-07 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857242', 'tblTempUsageDetail_20' ) end [2025-04-07 20:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:16:24] Production.INFO: ==21868== Releasing lock... [2025-04-07 20:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:16:24] Production.INFO: 46 MB #Memory Used# [2025-04-07 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:17:05 [end_date_ymd] => 2025-04-07 20:17:05 [RateCDR] => 1 ) [2025-04-07 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 17:17:05' and `end` < '2025-04-07 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 20:17:19] Production.INFO: count ==2381 [2025-04-07 20:17:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:17:05 - End Time 2025-04-07 20:17:05 [2025-04-07 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857247', 'tblTempUsageDetail_20' ) start [2025-04-07 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857247', 'tblTempUsageDetail_20' ) end [2025-04-07 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857247', 'tblTempVendorCDR_20' ) start [2025-04-07 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857247', 'tblTempVendorCDR_20' ) end [2025-04-07 20:17:19] Production.INFO: ProcessCDR(1,14857247,1,1,2) [2025-04-07 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857247', 'tblTempUsageDetail_20' ) start [2025-04-07 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857247', 'tblTempUsageDetail_20' ) end [2025-04-07 20:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:17:23] Production.INFO: ==21939== Releasing lock... [2025-04-07 20:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:17:23] Production.INFO: 46 MB #Memory Used# [2025-04-07 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:18:05 [end_date_ymd] => 2025-04-07 20:18:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:18:05' and `end` < '2025-04-07 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-04-07 20:18:18] Production.INFO: count ==2378 [2025-04-07 20:18:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:18:05 - End Time 2025-04-07 20:18:05 [2025-04-07 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857252', 'tblTempUsageDetail_20' ) start [2025-04-07 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857252', 'tblTempUsageDetail_20' ) end [2025-04-07 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857252', 'tblTempVendorCDR_20' ) start [2025-04-07 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857252', 'tblTempVendorCDR_20' ) end [2025-04-07 20:18:19] Production.INFO: ProcessCDR(1,14857252,1,1,2) [2025-04-07 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857252', 'tblTempUsageDetail_20' ) start [2025-04-07 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857252', 'tblTempUsageDetail_20' ) end [2025-04-07 20:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:18:24] Production.INFO: ==22010== Releasing lock... [2025-04-07 20:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:18:24] Production.INFO: 45.75 MB #Memory Used# [2025-04-07 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:19:05 [end_date_ymd] => 2025-04-07 20:19:05 [RateCDR] => 1 ) [2025-04-07 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 17:19:05' and `end` < '2025-04-07 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 20:19:18] Production.INFO: count ==2370 [2025-04-07 20:19:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:19:05 - End Time 2025-04-07 20:19:05 [2025-04-07 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857257', 'tblTempUsageDetail_20' ) start [2025-04-07 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857257', 'tblTempUsageDetail_20' ) end [2025-04-07 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857257', 'tblTempVendorCDR_20' ) start [2025-04-07 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857257', 'tblTempVendorCDR_20' ) end [2025-04-07 20:19:19] Production.INFO: ProcessCDR(1,14857257,1,1,2) [2025-04-07 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857257', 'tblTempUsageDetail_20' ) start [2025-04-07 20:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857257', 'tblTempUsageDetail_20' ) end [2025-04-07 20:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:19:25] Production.INFO: ==22092== Releasing lock... [2025-04-07 20:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:19:25] Production.INFO: 45.75 MB #Memory Used# [2025-04-07 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:20:06 [end_date_ymd] => 2025-04-07 20:20:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:20:06' and `end` < '2025-04-07 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-04-07 20:20:20] Production.INFO: count ==2376 [2025-04-07 20:20:20] Production.ERROR: pbx CDR StartTime 2025-04-07 17:20:06 - End Time 2025-04-07 20:20:06 [2025-04-07 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857263', 'tblTempUsageDetail_20' ) start [2025-04-07 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857263', 'tblTempUsageDetail_20' ) end [2025-04-07 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857263', 'tblTempVendorCDR_20' ) start [2025-04-07 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857263', 'tblTempVendorCDR_20' ) end [2025-04-07 20:20:20] Production.INFO: ProcessCDR(1,14857263,1,1,2) [2025-04-07 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857263', 'tblTempUsageDetail_20' ) start [2025-04-07 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857263', 'tblTempUsageDetail_20' ) end [2025-04-07 20:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:20:24] Production.INFO: ==22166== Releasing lock... [2025-04-07 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:20:24] Production.INFO: 45.75 MB #Memory Used# [2025-04-07 20:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:21:06 [end_date_ymd] => 2025-04-07 20:21:06 [RateCDR] => 1 ) [2025-04-07 20:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 17:21:06' and `end` < '2025-04-07 20:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 20:21:19] Production.INFO: count ==2305 [2025-04-07 20:21:20] Production.ERROR: pbx CDR StartTime 2025-04-07 17:21:06 - End Time 2025-04-07 20:21:06 [2025-04-07 20:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857268', 'tblTempUsageDetail_20' ) start [2025-04-07 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857268', 'tblTempUsageDetail_20' ) end [2025-04-07 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857268', 'tblTempVendorCDR_20' ) start [2025-04-07 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857268', 'tblTempVendorCDR_20' ) end [2025-04-07 20:21:20] Production.INFO: ProcessCDR(1,14857268,1,1,2) [2025-04-07 20:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857268', 'tblTempUsageDetail_20' ) start [2025-04-07 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857268', 'tblTempUsageDetail_20' ) end [2025-04-07 20:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:21:24] Production.INFO: ==22238== Releasing lock... [2025-04-07 20:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:21:24] Production.INFO: 45.5 MB #Memory Used# [2025-04-07 20:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:22:06 [end_date_ymd] => 2025-04-07 20:22:06 [RateCDR] => 1 ) [2025-04-07 20: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-04-07 17:22:06' and `end` < '2025-04-07 20: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-04-07 20:22:20] Production.INFO: count ==2299 [2025-04-07 20:22:20] Production.ERROR: pbx CDR StartTime 2025-04-07 17:22:06 - End Time 2025-04-07 20:22:06 [2025-04-07 20:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857273', 'tblTempUsageDetail_20' ) start [2025-04-07 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857273', 'tblTempUsageDetail_20' ) end [2025-04-07 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857273', 'tblTempVendorCDR_20' ) start [2025-04-07 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857273', 'tblTempVendorCDR_20' ) end [2025-04-07 20:22:20] Production.INFO: ProcessCDR(1,14857273,1,1,2) [2025-04-07 20:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857273', 'tblTempUsageDetail_20' ) start [2025-04-07 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857273', 'tblTempUsageDetail_20' ) end [2025-04-07 20:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:22:24] Production.INFO: ==22312== Releasing lock... [2025-04-07 20:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:22:24] Production.INFO: 45.25 MB #Memory Used# [2025-04-07 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:23:05 [end_date_ymd] => 2025-04-07 20:23:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:23:05' and `end` < '2025-04-07 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-04-07 20:23:19] Production.INFO: count ==2259 [2025-04-07 20:23:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:23:05 - End Time 2025-04-07 20:23:05 [2025-04-07 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857278', 'tblTempUsageDetail_20' ) start [2025-04-07 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857278', 'tblTempUsageDetail_20' ) end [2025-04-07 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857278', 'tblTempVendorCDR_20' ) start [2025-04-07 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857278', 'tblTempVendorCDR_20' ) end [2025-04-07 20:23:19] Production.INFO: ProcessCDR(1,14857278,1,1,2) [2025-04-07 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857278', 'tblTempUsageDetail_20' ) start [2025-04-07 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857278', 'tblTempUsageDetail_20' ) end [2025-04-07 20:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:23:24] Production.INFO: ==22387== Releasing lock... [2025-04-07 20:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:23:24] Production.INFO: 45 MB #Memory Used# [2025-04-07 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:24:06 [end_date_ymd] => 2025-04-07 20:24:06 [RateCDR] => 1 ) [2025-04-07 20: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-04-07 17:24:06' and `end` < '2025-04-07 20: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-04-07 20:24:19] Production.INFO: count ==2222 [2025-04-07 20:24:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:24:06 - End Time 2025-04-07 20:24:06 [2025-04-07 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857283', 'tblTempUsageDetail_20' ) start [2025-04-07 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857283', 'tblTempUsageDetail_20' ) end [2025-04-07 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857283', 'tblTempVendorCDR_20' ) start [2025-04-07 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857283', 'tblTempVendorCDR_20' ) end [2025-04-07 20:24:19] Production.INFO: ProcessCDR(1,14857283,1,1,2) [2025-04-07 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857283', 'tblTempUsageDetail_20' ) start [2025-04-07 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857283', 'tblTempUsageDetail_20' ) end [2025-04-07 20:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:24:23] Production.INFO: ==22463== Releasing lock... [2025-04-07 20:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:24:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-07 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:25:05 [end_date_ymd] => 2025-04-07 20:25:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:25:05' and `end` < '2025-04-07 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-04-07 20:25:18] Production.INFO: count ==2216 [2025-04-07 20:25:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:25:05 - End Time 2025-04-07 20:25:05 [2025-04-07 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857288', 'tblTempUsageDetail_20' ) start [2025-04-07 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857288', 'tblTempUsageDetail_20' ) end [2025-04-07 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857288', 'tblTempVendorCDR_20' ) start [2025-04-07 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857288', 'tblTempVendorCDR_20' ) end [2025-04-07 20:25:19] Production.INFO: ProcessCDR(1,14857288,1,1,2) [2025-04-07 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857288', 'tblTempUsageDetail_20' ) start [2025-04-07 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857288', 'tblTempUsageDetail_20' ) end [2025-04-07 20:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:25:22] Production.INFO: ==22532== Releasing lock... [2025-04-07 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:25:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-07 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:26:05 [end_date_ymd] => 2025-04-07 20:26:05 [RateCDR] => 1 ) [2025-04-07 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 17:26:05' and `end` < '2025-04-07 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 20:26:18] Production.INFO: count ==2207 [2025-04-07 20:26:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:26:05 - End Time 2025-04-07 20:26:05 [2025-04-07 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857293', 'tblTempUsageDetail_20' ) start [2025-04-07 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857293', 'tblTempUsageDetail_20' ) end [2025-04-07 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857293', 'tblTempVendorCDR_20' ) start [2025-04-07 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857293', 'tblTempVendorCDR_20' ) end [2025-04-07 20:26:19] Production.INFO: ProcessCDR(1,14857293,1,1,2) [2025-04-07 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857293', 'tblTempUsageDetail_20' ) start [2025-04-07 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857293', 'tblTempUsageDetail_20' ) end [2025-04-07 20:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:26:24] Production.INFO: ==22607== Releasing lock... [2025-04-07 20:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:26:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-07 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:27:05 [end_date_ymd] => 2025-04-07 20:27:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:27:05' and `end` < '2025-04-07 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-04-07 20:27:18] Production.INFO: count ==2203 [2025-04-07 20:27:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:27:05 - End Time 2025-04-07 20:27:05 [2025-04-07 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857298', 'tblTempUsageDetail_20' ) start [2025-04-07 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857298', 'tblTempUsageDetail_20' ) end [2025-04-07 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857298', 'tblTempVendorCDR_20' ) start [2025-04-07 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857298', 'tblTempVendorCDR_20' ) end [2025-04-07 20:27:19] Production.INFO: ProcessCDR(1,14857298,1,1,2) [2025-04-07 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857298', 'tblTempUsageDetail_20' ) start [2025-04-07 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857298', 'tblTempUsageDetail_20' ) end [2025-04-07 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:27:22] Production.INFO: ==22679== Releasing lock... [2025-04-07 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:27:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-07 20:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:28:06 [end_date_ymd] => 2025-04-07 20:28:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:28:06' and `end` < '2025-04-07 20: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-04-07 20:28:19] Production.INFO: count ==2201 [2025-04-07 20:28:20] Production.ERROR: pbx CDR StartTime 2025-04-07 17:28:06 - End Time 2025-04-07 20:28:06 [2025-04-07 20:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857303', 'tblTempUsageDetail_20' ) start [2025-04-07 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857303', 'tblTempUsageDetail_20' ) end [2025-04-07 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857303', 'tblTempVendorCDR_20' ) start [2025-04-07 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857303', 'tblTempVendorCDR_20' ) end [2025-04-07 20:28:20] Production.INFO: ProcessCDR(1,14857303,1,1,2) [2025-04-07 20:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857303', 'tblTempUsageDetail_20' ) start [2025-04-07 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857303', 'tblTempUsageDetail_20' ) end [2025-04-07 20:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:28:23] Production.INFO: ==22751== Releasing lock... [2025-04-07 20:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:28:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-07 20:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:29:04 [end_date_ymd] => 2025-04-07 20:29:04 [RateCDR] => 1 ) [2025-04-07 20: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-04-07 17:29:04' and `end` < '2025-04-07 20: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-04-07 20:29:17] Production.INFO: count ==2197 [2025-04-07 20:29:18] Production.ERROR: pbx CDR StartTime 2025-04-07 17:29:04 - End Time 2025-04-07 20:29:04 [2025-04-07 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857308', 'tblTempUsageDetail_20' ) start [2025-04-07 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857308', 'tblTempUsageDetail_20' ) end [2025-04-07 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857308', 'tblTempVendorCDR_20' ) start [2025-04-07 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857308', 'tblTempVendorCDR_20' ) end [2025-04-07 20:29:18] Production.INFO: ProcessCDR(1,14857308,1,1,2) [2025-04-07 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857308', 'tblTempUsageDetail_20' ) start [2025-04-07 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857308', 'tblTempUsageDetail_20' ) end [2025-04-07 20:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:29:21] Production.INFO: ==22825== Releasing lock... [2025-04-07 20:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:29:21] Production.INFO: 44.5 MB #Memory Used# [2025-04-07 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:30:06 [end_date_ymd] => 2025-04-07 20:30:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:30:06' and `end` < '2025-04-07 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-04-07 20:30:19] Production.INFO: count ==2201 [2025-04-07 20:30:20] Production.ERROR: pbx CDR StartTime 2025-04-07 17:30:06 - End Time 2025-04-07 20:30:06 [2025-04-07 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857313', 'tblTempUsageDetail_20' ) start [2025-04-07 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857313', 'tblTempUsageDetail_20' ) end [2025-04-07 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857313', 'tblTempVendorCDR_20' ) start [2025-04-07 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857313', 'tblTempVendorCDR_20' ) end [2025-04-07 20:30:20] Production.INFO: ProcessCDR(1,14857313,1,1,2) [2025-04-07 20:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857313', 'tblTempUsageDetail_20' ) start [2025-04-07 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857313', 'tblTempUsageDetail_20' ) end [2025-04-07 20:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:30:23] Production.INFO: ==22943== Releasing lock... [2025-04-07 20:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:30:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-07 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:31:05 [end_date_ymd] => 2025-04-07 20:31:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:31:05' and `end` < '2025-04-07 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-04-07 20:31:18] Production.INFO: count ==2172 [2025-04-07 20:31:18] Production.ERROR: pbx CDR StartTime 2025-04-07 17:31:05 - End Time 2025-04-07 20:31:05 [2025-04-07 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857319', 'tblTempUsageDetail_20' ) start [2025-04-07 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857319', 'tblTempUsageDetail_20' ) end [2025-04-07 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857319', 'tblTempVendorCDR_20' ) start [2025-04-07 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857319', 'tblTempVendorCDR_20' ) end [2025-04-07 20:31:18] Production.INFO: ProcessCDR(1,14857319,1,1,2) [2025-04-07 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857319', 'tblTempUsageDetail_20' ) start [2025-04-07 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857319', 'tblTempUsageDetail_20' ) end [2025-04-07 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:31:22] Production.INFO: ==23018== Releasing lock... [2025-04-07 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:31:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-07 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:32:05 [end_date_ymd] => 2025-04-07 20:32:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:32:05' and `end` < '2025-04-07 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-04-07 20:32:18] Production.INFO: count ==2161 [2025-04-07 20:32:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:32:05 - End Time 2025-04-07 20:32:05 [2025-04-07 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857324', 'tblTempUsageDetail_20' ) start [2025-04-07 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857324', 'tblTempUsageDetail_20' ) end [2025-04-07 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857324', 'tblTempVendorCDR_20' ) start [2025-04-07 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857324', 'tblTempVendorCDR_20' ) end [2025-04-07 20:32:19] Production.INFO: ProcessCDR(1,14857324,1,1,2) [2025-04-07 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857324', 'tblTempUsageDetail_20' ) start [2025-04-07 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857324', 'tblTempUsageDetail_20' ) end [2025-04-07 20:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:32:23] Production.INFO: ==23092== Releasing lock... [2025-04-07 20:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:32:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-07 20:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:33:06 [end_date_ymd] => 2025-04-07 20:33:06 [RateCDR] => 1 ) [2025-04-07 20:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 17:33:06' and `end` < '2025-04-07 20:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 20:33:19] Production.INFO: count ==2152 [2025-04-07 20:33:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:33:06 - End Time 2025-04-07 20:33:06 [2025-04-07 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857329', 'tblTempUsageDetail_20' ) start [2025-04-07 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857329', 'tblTempUsageDetail_20' ) end [2025-04-07 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857329', 'tblTempVendorCDR_20' ) start [2025-04-07 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857329', 'tblTempVendorCDR_20' ) end [2025-04-07 20:33:19] Production.INFO: ProcessCDR(1,14857329,1,1,2) [2025-04-07 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857329', 'tblTempUsageDetail_20' ) start [2025-04-07 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857329', 'tblTempUsageDetail_20' ) end [2025-04-07 20:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:33:23] Production.INFO: ==23166== Releasing lock... [2025-04-07 20:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:33:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-07 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:34:05 [end_date_ymd] => 2025-04-07 20:34:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:34:05' and `end` < '2025-04-07 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-04-07 20:34:18] Production.INFO: count ==2145 [2025-04-07 20:34:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:34:05 - End Time 2025-04-07 20:34:05 [2025-04-07 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857334', 'tblTempUsageDetail_20' ) start [2025-04-07 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857334', 'tblTempUsageDetail_20' ) end [2025-04-07 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857334', 'tblTempVendorCDR_20' ) start [2025-04-07 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857334', 'tblTempVendorCDR_20' ) end [2025-04-07 20:34:19] Production.INFO: ProcessCDR(1,14857334,1,1,2) [2025-04-07 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857334', 'tblTempUsageDetail_20' ) start [2025-04-07 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857334', 'tblTempUsageDetail_20' ) end [2025-04-07 20:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:34:23] Production.INFO: ==23238== Releasing lock... [2025-04-07 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:34:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-07 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:35:05 [end_date_ymd] => 2025-04-07 20:35:05 [RateCDR] => 1 ) [2025-04-07 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 17:35:05' and `end` < '2025-04-07 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 20:35:18] Production.INFO: count ==2140 [2025-04-07 20:35:18] Production.ERROR: pbx CDR StartTime 2025-04-07 17:35:05 - End Time 2025-04-07 20:35:05 [2025-04-07 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857339', 'tblTempUsageDetail_20' ) start [2025-04-07 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857339', 'tblTempUsageDetail_20' ) end [2025-04-07 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857339', 'tblTempVendorCDR_20' ) start [2025-04-07 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857339', 'tblTempVendorCDR_20' ) end [2025-04-07 20:35:19] Production.INFO: ProcessCDR(1,14857339,1,1,2) [2025-04-07 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857339', 'tblTempUsageDetail_20' ) start [2025-04-07 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857339', 'tblTempUsageDetail_20' ) end [2025-04-07 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:35:22] Production.INFO: ==23308== Releasing lock... [2025-04-07 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:35:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-07 20:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:36:06 [end_date_ymd] => 2025-04-07 20:36:06 [RateCDR] => 1 ) [2025-04-07 20: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-04-07 17:36:06' and `end` < '2025-04-07 20: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-04-07 20:36:19] Production.INFO: count ==2143 [2025-04-07 20:36:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:36:06 - End Time 2025-04-07 20:36:06 [2025-04-07 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857344', 'tblTempUsageDetail_20' ) start [2025-04-07 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857344', 'tblTempUsageDetail_20' ) end [2025-04-07 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857344', 'tblTempVendorCDR_20' ) start [2025-04-07 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857344', 'tblTempVendorCDR_20' ) end [2025-04-07 20:36:19] Production.INFO: ProcessCDR(1,14857344,1,1,2) [2025-04-07 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857344', 'tblTempUsageDetail_20' ) start [2025-04-07 20:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857344', 'tblTempUsageDetail_20' ) end [2025-04-07 20:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:36:24] Production.INFO: ==23381== Releasing lock... [2025-04-07 20:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:36:24] Production.INFO: 44.5 MB #Memory Used# [2025-04-07 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:37:05 [end_date_ymd] => 2025-04-07 20:37:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:37:05' and `end` < '2025-04-07 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-04-07 20:37:18] Production.INFO: count ==2132 [2025-04-07 20:37:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:37:05 - End Time 2025-04-07 20:37:05 [2025-04-07 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857349', 'tblTempUsageDetail_20' ) start [2025-04-07 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857349', 'tblTempUsageDetail_20' ) end [2025-04-07 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857349', 'tblTempVendorCDR_20' ) start [2025-04-07 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857349', 'tblTempVendorCDR_20' ) end [2025-04-07 20:37:19] Production.INFO: ProcessCDR(1,14857349,1,1,2) [2025-04-07 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857349', 'tblTempUsageDetail_20' ) start [2025-04-07 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857349', 'tblTempUsageDetail_20' ) end [2025-04-07 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:37:23] Production.INFO: ==23458== Releasing lock... [2025-04-07 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:37:23] Production.INFO: 44 MB #Memory Used# [2025-04-07 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:38:05 [end_date_ymd] => 2025-04-07 20:38:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:38:05' and `end` < '2025-04-07 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-04-07 20:38:18] Production.INFO: count ==2121 [2025-04-07 20:38:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:38:05 - End Time 2025-04-07 20:38:05 [2025-04-07 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857354', 'tblTempUsageDetail_20' ) start [2025-04-07 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857354', 'tblTempUsageDetail_20' ) end [2025-04-07 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857354', 'tblTempVendorCDR_20' ) start [2025-04-07 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857354', 'tblTempVendorCDR_20' ) end [2025-04-07 20:38:19] Production.INFO: ProcessCDR(1,14857354,1,1,2) [2025-04-07 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857354', 'tblTempUsageDetail_20' ) start [2025-04-07 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857354', 'tblTempUsageDetail_20' ) end [2025-04-07 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:38:22] Production.INFO: ==23539== Releasing lock... [2025-04-07 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:38:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-07 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:39:05 [end_date_ymd] => 2025-04-07 20:39:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:39:05' and `end` < '2025-04-07 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-04-07 20:39:18] Production.INFO: count ==2115 [2025-04-07 20:39:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:39:05 - End Time 2025-04-07 20:39:05 [2025-04-07 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857359', 'tblTempUsageDetail_20' ) start [2025-04-07 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857359', 'tblTempUsageDetail_20' ) end [2025-04-07 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857359', 'tblTempVendorCDR_20' ) start [2025-04-07 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857359', 'tblTempVendorCDR_20' ) end [2025-04-07 20:39:19] Production.INFO: ProcessCDR(1,14857359,1,1,2) [2025-04-07 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857359', 'tblTempUsageDetail_20' ) start [2025-04-07 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857359', 'tblTempUsageDetail_20' ) end [2025-04-07 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:39:22] Production.INFO: ==23612== Releasing lock... [2025-04-07 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:39:22] Production.INFO: 44 MB #Memory Used# [2025-04-07 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:40:06 [end_date_ymd] => 2025-04-07 20:40:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:40:06' and `end` < '2025-04-07 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-04-07 20:40:19] Production.INFO: count ==2119 [2025-04-07 20:40:20] Production.ERROR: pbx CDR StartTime 2025-04-07 17:40:06 - End Time 2025-04-07 20:40:06 [2025-04-07 20:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857364', 'tblTempUsageDetail_20' ) start [2025-04-07 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857364', 'tblTempUsageDetail_20' ) end [2025-04-07 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857364', 'tblTempVendorCDR_20' ) start [2025-04-07 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857364', 'tblTempVendorCDR_20' ) end [2025-04-07 20:40:20] Production.INFO: ProcessCDR(1,14857364,1,1,2) [2025-04-07 20:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857364', 'tblTempUsageDetail_20' ) start [2025-04-07 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857364', 'tblTempUsageDetail_20' ) end [2025-04-07 20:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:40:23] Production.INFO: ==23685== Releasing lock... [2025-04-07 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:40:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-07 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:41:05 [end_date_ymd] => 2025-04-07 20:41:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:41:05' and `end` < '2025-04-07 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-04-07 20:41:17] Production.INFO: count ==2035 [2025-04-07 20:41:18] Production.ERROR: pbx CDR StartTime 2025-04-07 17:41:05 - End Time 2025-04-07 20:41:05 [2025-04-07 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857370', 'tblTempUsageDetail_20' ) start [2025-04-07 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857370', 'tblTempUsageDetail_20' ) end [2025-04-07 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857370', 'tblTempVendorCDR_20' ) start [2025-04-07 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857370', 'tblTempVendorCDR_20' ) end [2025-04-07 20:41:18] Production.INFO: ProcessCDR(1,14857370,1,1,2) [2025-04-07 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857370', 'tblTempUsageDetail_20' ) start [2025-04-07 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857370', 'tblTempUsageDetail_20' ) end [2025-04-07 20:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:41:23] Production.INFO: ==23764== Releasing lock... [2025-04-07 20:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:41:23] Production.INFO: 43.25 MB #Memory Used# [2025-04-07 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:42:05 [end_date_ymd] => 2025-04-07 20:42:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:42:05' and `end` < '2025-04-07 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-04-07 20:42:19] Production.INFO: count ==2043 [2025-04-07 20:42:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:42:05 - End Time 2025-04-07 20:42:05 [2025-04-07 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857375', 'tblTempUsageDetail_20' ) start [2025-04-07 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857375', 'tblTempUsageDetail_20' ) end [2025-04-07 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857375', 'tblTempVendorCDR_20' ) start [2025-04-07 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857375', 'tblTempVendorCDR_20' ) end [2025-04-07 20:42:19] Production.INFO: ProcessCDR(1,14857375,1,1,2) [2025-04-07 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857375', 'tblTempUsageDetail_20' ) start [2025-04-07 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857375', 'tblTempUsageDetail_20' ) end [2025-04-07 20:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:42:24] Production.INFO: ==23836== Releasing lock... [2025-04-07 20:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:42:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-07 20:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:43:06 [end_date_ymd] => 2025-04-07 20:43:06 [RateCDR] => 1 ) [2025-04-07 20: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-04-07 17:43:06' and `end` < '2025-04-07 20: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-04-07 20:43:19] Production.INFO: count ==2043 [2025-04-07 20:43:20] Production.ERROR: pbx CDR StartTime 2025-04-07 17:43:06 - End Time 2025-04-07 20:43:06 [2025-04-07 20:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857380', 'tblTempUsageDetail_20' ) start [2025-04-07 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857380', 'tblTempUsageDetail_20' ) end [2025-04-07 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857380', 'tblTempVendorCDR_20' ) start [2025-04-07 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857380', 'tblTempVendorCDR_20' ) end [2025-04-07 20:43:20] Production.INFO: ProcessCDR(1,14857380,1,1,2) [2025-04-07 20:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857380', 'tblTempUsageDetail_20' ) start [2025-04-07 20:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857380', 'tblTempUsageDetail_20' ) end [2025-04-07 20:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:43:25] Production.INFO: ==23907== Releasing lock... [2025-04-07 20:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:43:25] Production.INFO: 43.5 MB #Memory Used# [2025-04-07 20:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:44:06 [end_date_ymd] => 2025-04-07 20:44:06 [RateCDR] => 1 ) [2025-04-07 20: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-04-07 17:44:06' and `end` < '2025-04-07 20: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-04-07 20:44:19] Production.INFO: count ==2044 [2025-04-07 20:44:20] Production.ERROR: pbx CDR StartTime 2025-04-07 17:44:06 - End Time 2025-04-07 20:44:06 [2025-04-07 20:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857385', 'tblTempUsageDetail_20' ) start [2025-04-07 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857385', 'tblTempUsageDetail_20' ) end [2025-04-07 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857385', 'tblTempVendorCDR_20' ) start [2025-04-07 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857385', 'tblTempVendorCDR_20' ) end [2025-04-07 20:44:20] Production.INFO: ProcessCDR(1,14857385,1,1,2) [2025-04-07 20:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857385', 'tblTempUsageDetail_20' ) start [2025-04-07 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857385', 'tblTempUsageDetail_20' ) end [2025-04-07 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:44:23] Production.INFO: ==23983== Releasing lock... [2025-04-07 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:44:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-07 20:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:45:04 [end_date_ymd] => 2025-04-07 20:45:04 [RateCDR] => 1 ) [2025-04-07 20: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-04-07 17:45:04' and `end` < '2025-04-07 20: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-04-07 20:45:17] Production.INFO: count ==2040 [2025-04-07 20:45:18] Production.ERROR: pbx CDR StartTime 2025-04-07 17:45:04 - End Time 2025-04-07 20:45:04 [2025-04-07 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857390', 'tblTempUsageDetail_20' ) start [2025-04-07 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857390', 'tblTempUsageDetail_20' ) end [2025-04-07 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857390', 'tblTempVendorCDR_20' ) start [2025-04-07 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857390', 'tblTempVendorCDR_20' ) end [2025-04-07 20:45:18] Production.INFO: ProcessCDR(1,14857390,1,1,2) [2025-04-07 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857390', 'tblTempUsageDetail_20' ) start [2025-04-07 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857390', 'tblTempUsageDetail_20' ) end [2025-04-07 20:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:45:21] Production.INFO: ==24058== Releasing lock... [2025-04-07 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:45:21] Production.INFO: 43.25 MB #Memory Used# [2025-04-07 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:46:05 [end_date_ymd] => 2025-04-07 20:46:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:46:05' and `end` < '2025-04-07 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-04-07 20:46:18] Production.INFO: count ==2025 [2025-04-07 20:46:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:46:05 - End Time 2025-04-07 20:46:05 [2025-04-07 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857395', 'tblTempUsageDetail_20' ) start [2025-04-07 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857395', 'tblTempUsageDetail_20' ) end [2025-04-07 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857395', 'tblTempVendorCDR_20' ) start [2025-04-07 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857395', 'tblTempVendorCDR_20' ) end [2025-04-07 20:46:19] Production.INFO: ProcessCDR(1,14857395,1,1,2) [2025-04-07 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857395', 'tblTempUsageDetail_20' ) start [2025-04-07 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857395', 'tblTempUsageDetail_20' ) end [2025-04-07 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:46:22] Production.INFO: ==24173== Releasing lock... [2025-04-07 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:46:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-07 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:47:05 [end_date_ymd] => 2025-04-07 20:47:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:47:05' and `end` < '2025-04-07 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-04-07 20:47:18] Production.INFO: count ==2033 [2025-04-07 20:47:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:47:05 - End Time 2025-04-07 20:47:05 [2025-04-07 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857400', 'tblTempUsageDetail_20' ) start [2025-04-07 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857400', 'tblTempUsageDetail_20' ) end [2025-04-07 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857400', 'tblTempVendorCDR_20' ) start [2025-04-07 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857400', 'tblTempVendorCDR_20' ) end [2025-04-07 20:47:19] Production.INFO: ProcessCDR(1,14857400,1,1,2) [2025-04-07 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857400', 'tblTempUsageDetail_20' ) start [2025-04-07 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857400', 'tblTempUsageDetail_20' ) end [2025-04-07 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:47:22] Production.INFO: ==24245== Releasing lock... [2025-04-07 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:47:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-07 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:48:05 [end_date_ymd] => 2025-04-07 20:48:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:48:05' and `end` < '2025-04-07 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-04-07 20:48:18] Production.INFO: count ==2018 [2025-04-07 20:48:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:48:05 - End Time 2025-04-07 20:48:05 [2025-04-07 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857405', 'tblTempUsageDetail_20' ) start [2025-04-07 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857405', 'tblTempUsageDetail_20' ) end [2025-04-07 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857405', 'tblTempVendorCDR_20' ) start [2025-04-07 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857405', 'tblTempVendorCDR_20' ) end [2025-04-07 20:48:19] Production.INFO: ProcessCDR(1,14857405,1,1,2) [2025-04-07 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857405', 'tblTempUsageDetail_20' ) start [2025-04-07 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857405', 'tblTempUsageDetail_20' ) end [2025-04-07 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:48:22] Production.INFO: ==24316== Releasing lock... [2025-04-07 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:48:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-07 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:49:05 [end_date_ymd] => 2025-04-07 20:49:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:49:05' and `end` < '2025-04-07 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-04-07 20:49:18] Production.INFO: count ==2018 [2025-04-07 20:49:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:49:05 - End Time 2025-04-07 20:49:05 [2025-04-07 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857410', 'tblTempUsageDetail_20' ) start [2025-04-07 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857410', 'tblTempUsageDetail_20' ) end [2025-04-07 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857410', 'tblTempVendorCDR_20' ) start [2025-04-07 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857410', 'tblTempVendorCDR_20' ) end [2025-04-07 20:49:19] Production.INFO: ProcessCDR(1,14857410,1,1,2) [2025-04-07 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857410', 'tblTempUsageDetail_20' ) start [2025-04-07 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857410', 'tblTempUsageDetail_20' ) end [2025-04-07 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:49:22] Production.INFO: ==24387== Releasing lock... [2025-04-07 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:49:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-07 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:50:06 [end_date_ymd] => 2025-04-07 20:50:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:50:06' and `end` < '2025-04-07 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-04-07 20:50:19] Production.INFO: count ==2018 [2025-04-07 20:50:20] Production.ERROR: pbx CDR StartTime 2025-04-07 17:50:06 - End Time 2025-04-07 20:50:06 [2025-04-07 20:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857416', 'tblTempUsageDetail_20' ) start [2025-04-07 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857416', 'tblTempUsageDetail_20' ) end [2025-04-07 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857416', 'tblTempVendorCDR_20' ) start [2025-04-07 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857416', 'tblTempVendorCDR_20' ) end [2025-04-07 20:50:20] Production.INFO: ProcessCDR(1,14857416,1,1,2) [2025-04-07 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857416', 'tblTempUsageDetail_20' ) start [2025-04-07 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857416', 'tblTempUsageDetail_20' ) end [2025-04-07 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:50:23] Production.INFO: ==24460== Releasing lock... [2025-04-07 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:50:23] Production.INFO: 43.25 MB #Memory Used# [2025-04-07 20:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:51:06 [end_date_ymd] => 2025-04-07 20:51:06 [RateCDR] => 1 ) [2025-04-07 20:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 17:51:06' and `end` < '2025-04-07 20:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 20:51:19] Production.INFO: count ==1930 [2025-04-07 20:51:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:51:06 - End Time 2025-04-07 20:51:06 [2025-04-07 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857421', 'tblTempUsageDetail_20' ) start [2025-04-07 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857421', 'tblTempUsageDetail_20' ) end [2025-04-07 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857421', 'tblTempVendorCDR_20' ) start [2025-04-07 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857421', 'tblTempVendorCDR_20' ) end [2025-04-07 20:51:20] Production.INFO: ProcessCDR(1,14857421,1,1,2) [2025-04-07 20:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857421', 'tblTempUsageDetail_20' ) start [2025-04-07 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857421', 'tblTempUsageDetail_20' ) end [2025-04-07 20:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:51:23] Production.INFO: ==24540== Releasing lock... [2025-04-07 20:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:51:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-07 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:52:05 [end_date_ymd] => 2025-04-07 20:52:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:52:05' and `end` < '2025-04-07 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-04-07 20:52:18] Production.INFO: count ==1926 [2025-04-07 20:52:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:52:05 - End Time 2025-04-07 20:52:05 [2025-04-07 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857426', 'tblTempUsageDetail_20' ) start [2025-04-07 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857426', 'tblTempUsageDetail_20' ) end [2025-04-07 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857426', 'tblTempVendorCDR_20' ) start [2025-04-07 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857426', 'tblTempVendorCDR_20' ) end [2025-04-07 20:52:19] Production.INFO: ProcessCDR(1,14857426,1,1,2) [2025-04-07 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857426', 'tblTempUsageDetail_20' ) start [2025-04-07 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857426', 'tblTempUsageDetail_20' ) end [2025-04-07 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:52:22] Production.INFO: ==24609== Releasing lock... [2025-04-07 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:52:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-07 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:53:05 [end_date_ymd] => 2025-04-07 20:53:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:53:05' and `end` < '2025-04-07 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-04-07 20:53:18] Production.INFO: count ==1920 [2025-04-07 20:53:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:53:05 - End Time 2025-04-07 20:53:05 [2025-04-07 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857431', 'tblTempUsageDetail_20' ) start [2025-04-07 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857431', 'tblTempUsageDetail_20' ) end [2025-04-07 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857431', 'tblTempVendorCDR_20' ) start [2025-04-07 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857431', 'tblTempVendorCDR_20' ) end [2025-04-07 20:53:19] Production.INFO: ProcessCDR(1,14857431,1,1,2) [2025-04-07 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857431', 'tblTempUsageDetail_20' ) start [2025-04-07 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857431', 'tblTempUsageDetail_20' ) end [2025-04-07 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:53:22] Production.INFO: ==24685== Releasing lock... [2025-04-07 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:53:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-07 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:54:05 [end_date_ymd] => 2025-04-07 20:54:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:54:05' and `end` < '2025-04-07 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-04-07 20:54:18] Production.INFO: count ==1913 [2025-04-07 20:54:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:54:05 - End Time 2025-04-07 20:54:05 [2025-04-07 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857436', 'tblTempUsageDetail_20' ) start [2025-04-07 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857436', 'tblTempUsageDetail_20' ) end [2025-04-07 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857436', 'tblTempVendorCDR_20' ) start [2025-04-07 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857436', 'tblTempVendorCDR_20' ) end [2025-04-07 20:54:19] Production.INFO: ProcessCDR(1,14857436,1,1,2) [2025-04-07 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857436', 'tblTempUsageDetail_20' ) start [2025-04-07 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857436', 'tblTempUsageDetail_20' ) end [2025-04-07 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:54:22] Production.INFO: ==24756== Releasing lock... [2025-04-07 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:54:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-07 20:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:55:06 [end_date_ymd] => 2025-04-07 20:55:06 [RateCDR] => 1 ) [2025-04-07 20: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-04-07 17:55:06' and `end` < '2025-04-07 20: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-04-07 20:55:19] Production.INFO: count ==1912 [2025-04-07 20:55:20] Production.ERROR: pbx CDR StartTime 2025-04-07 17:55:06 - End Time 2025-04-07 20:55:06 [2025-04-07 20:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857441', 'tblTempUsageDetail_20' ) start [2025-04-07 20:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857441', 'tblTempUsageDetail_20' ) end [2025-04-07 20:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857441', 'tblTempVendorCDR_20' ) start [2025-04-07 20:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857441', 'tblTempVendorCDR_20' ) end [2025-04-07 20:55:20] Production.INFO: ProcessCDR(1,14857441,1,1,2) [2025-04-07 20:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857441', 'tblTempUsageDetail_20' ) start [2025-04-07 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857441', 'tblTempUsageDetail_20' ) end [2025-04-07 20:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:55:23] Production.INFO: ==24833== Releasing lock... [2025-04-07 20:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:55:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-07 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:56:05 [end_date_ymd] => 2025-04-07 20:56:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:56:05' and `end` < '2025-04-07 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-04-07 20:56:18] Production.INFO: count ==1909 [2025-04-07 20:56:18] Production.ERROR: pbx CDR StartTime 2025-04-07 17:56:05 - End Time 2025-04-07 20:56:05 [2025-04-07 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857446', 'tblTempUsageDetail_20' ) start [2025-04-07 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857446', 'tblTempUsageDetail_20' ) end [2025-04-07 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857446', 'tblTempVendorCDR_20' ) start [2025-04-07 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857446', 'tblTempVendorCDR_20' ) end [2025-04-07 20:56:18] Production.INFO: ProcessCDR(1,14857446,1,1,2) [2025-04-07 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857446', 'tblTempUsageDetail_20' ) start [2025-04-07 20:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857446', 'tblTempUsageDetail_20' ) end [2025-04-07 20:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:56:24] Production.INFO: ==24904== Releasing lock... [2025-04-07 20:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:56:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-07 20:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:57:05 [end_date_ymd] => 2025-04-07 20:57:05 [RateCDR] => 1 ) [2025-04-07 20: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-04-07 17:57:05' and `end` < '2025-04-07 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-04-07 20:57:19] Production.INFO: count ==1908 [2025-04-07 20:57:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:57:05 - End Time 2025-04-07 20:57:05 [2025-04-07 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857451', 'tblTempUsageDetail_20' ) start [2025-04-07 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857451', 'tblTempUsageDetail_20' ) end [2025-04-07 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857451', 'tblTempVendorCDR_20' ) start [2025-04-07 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857451', 'tblTempVendorCDR_20' ) end [2025-04-07 20:57:19] Production.INFO: ProcessCDR(1,14857451,1,1,2) [2025-04-07 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857451', 'tblTempUsageDetail_20' ) start [2025-04-07 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857451', 'tblTempUsageDetail_20' ) end [2025-04-07 20:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:57:23] Production.INFO: ==24981== Releasing lock... [2025-04-07 20:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:57:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-07 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:58:05 [end_date_ymd] => 2025-04-07 20:58:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 17:58:05' and `end` < '2025-04-07 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-04-07 20:58:18] Production.INFO: count ==1897 [2025-04-07 20:58:18] Production.ERROR: pbx CDR StartTime 2025-04-07 17:58:05 - End Time 2025-04-07 20:58:05 [2025-04-07 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857456', 'tblTempUsageDetail_20' ) start [2025-04-07 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857456', 'tblTempUsageDetail_20' ) end [2025-04-07 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857456', 'tblTempVendorCDR_20' ) start [2025-04-07 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857456', 'tblTempVendorCDR_20' ) end [2025-04-07 20:58:18] Production.INFO: ProcessCDR(1,14857456,1,1,2) [2025-04-07 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857456', 'tblTempUsageDetail_20' ) start [2025-04-07 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857456', 'tblTempUsageDetail_20' ) end [2025-04-07 20:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:58:22] Production.INFO: ==25053== Releasing lock... [2025-04-07 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:58:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-07 20:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 17:59:06 [end_date_ymd] => 2025-04-07 20:59:06 [RateCDR] => 1 ) [2025-04-07 20: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-04-07 17:59:06' and `end` < '2025-04-07 20: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-04-07 20:59:19] Production.INFO: count ==1891 [2025-04-07 20:59:19] Production.ERROR: pbx CDR StartTime 2025-04-07 17:59:06 - End Time 2025-04-07 20:59:06 [2025-04-07 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857461', 'tblTempUsageDetail_20' ) start [2025-04-07 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857461', 'tblTempUsageDetail_20' ) end [2025-04-07 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857461', 'tblTempVendorCDR_20' ) start [2025-04-07 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857461', 'tblTempVendorCDR_20' ) end [2025-04-07 20:59:19] Production.INFO: ProcessCDR(1,14857461,1,1,2) [2025-04-07 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 20:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 20:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857461', 'tblTempUsageDetail_20' ) start [2025-04-07 20:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857461', 'tblTempUsageDetail_20' ) end [2025-04-07 20:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 20:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 20:59:25] Production.INFO: ==25131== Releasing lock... [2025-04-07 20:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 20:59:25] Production.INFO: 42.5 MB #Memory Used# [2025-04-07 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:00:06 [end_date_ymd] => 2025-04-07 21:00:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:00:06' and `end` < '2025-04-07 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-04-07 21:00:20] Production.INFO: count ==1888 [2025-04-07 21:00:20] Production.ERROR: pbx CDR StartTime 2025-04-07 18:00:06 - End Time 2025-04-07 21:00:06 [2025-04-07 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857467', 'tblTempUsageDetail_20' ) start [2025-04-07 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857467', 'tblTempUsageDetail_20' ) end [2025-04-07 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857467', 'tblTempVendorCDR_20' ) start [2025-04-07 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857467', 'tblTempVendorCDR_20' ) end [2025-04-07 21:00:20] Production.INFO: ProcessCDR(1,14857467,1,1,2) [2025-04-07 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857467', 'tblTempUsageDetail_20' ) start [2025-04-07 21:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857467', 'tblTempUsageDetail_20' ) end [2025-04-07 21:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:00:24] Production.INFO: ==25211== Releasing lock... [2025-04-07 21:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:00:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-07 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:01:05 [end_date_ymd] => 2025-04-07 21:01:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:01:05' and `end` < '2025-04-07 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-04-07 21:01:18] Production.INFO: count ==1864 [2025-04-07 21:01:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:01:05 - End Time 2025-04-07 21:01:05 [2025-04-07 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857472', 'tblTempUsageDetail_20' ) start [2025-04-07 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857472', 'tblTempUsageDetail_20' ) end [2025-04-07 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857472', 'tblTempVendorCDR_20' ) start [2025-04-07 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857472', 'tblTempVendorCDR_20' ) end [2025-04-07 21:01:19] Production.INFO: ProcessCDR(1,14857472,1,1,2) [2025-04-07 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857472', 'tblTempUsageDetail_20' ) start [2025-04-07 21:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857472', 'tblTempUsageDetail_20' ) end [2025-04-07 21:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:01:24] Production.INFO: ==25336== Releasing lock... [2025-04-07 21:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:01:24] Production.INFO: 42 MB #Memory Used# [2025-04-07 21:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:02:06 [end_date_ymd] => 2025-04-07 21:02:06 [RateCDR] => 1 ) [2025-04-07 21:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 18:02:06' and `end` < '2025-04-07 21:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 21:02:19] Production.INFO: count ==1863 [2025-04-07 21:02:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:02:06 - End Time 2025-04-07 21:02:06 [2025-04-07 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857477', 'tblTempUsageDetail_20' ) start [2025-04-07 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857477', 'tblTempUsageDetail_20' ) end [2025-04-07 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857477', 'tblTempVendorCDR_20' ) start [2025-04-07 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857477', 'tblTempVendorCDR_20' ) end [2025-04-07 21:02:19] Production.INFO: ProcessCDR(1,14857477,1,1,2) [2025-04-07 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857477', 'tblTempUsageDetail_20' ) start [2025-04-07 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857477', 'tblTempUsageDetail_20' ) end [2025-04-07 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:02:22] Production.INFO: ==25410== Releasing lock... [2025-04-07 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:02:22] Production.INFO: 42 MB #Memory Used# [2025-04-07 21:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:03:04 [end_date_ymd] => 2025-04-07 21:03:04 [RateCDR] => 1 ) [2025-04-07 21:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 18:03:04' and `end` < '2025-04-07 21:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 21:03:17] Production.INFO: count ==1861 [2025-04-07 21:03:18] Production.ERROR: pbx CDR StartTime 2025-04-07 18:03:04 - End Time 2025-04-07 21:03:04 [2025-04-07 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857482', 'tblTempUsageDetail_20' ) start [2025-04-07 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857482', 'tblTempUsageDetail_20' ) end [2025-04-07 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857482', 'tblTempVendorCDR_20' ) start [2025-04-07 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857482', 'tblTempVendorCDR_20' ) end [2025-04-07 21:03:18] Production.INFO: ProcessCDR(1,14857482,1,1,2) [2025-04-07 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857482', 'tblTempUsageDetail_20' ) start [2025-04-07 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857482', 'tblTempUsageDetail_20' ) end [2025-04-07 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:03:22] Production.INFO: ==25480== Releasing lock... [2025-04-07 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:03:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-07 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:04:05 [end_date_ymd] => 2025-04-07 21:04:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:04:05' and `end` < '2025-04-07 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-04-07 21:04:18] Production.INFO: count ==1854 [2025-04-07 21:04:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:04:05 - End Time 2025-04-07 21:04:05 [2025-04-07 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857487', 'tblTempUsageDetail_20' ) start [2025-04-07 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857487', 'tblTempUsageDetail_20' ) end [2025-04-07 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857487', 'tblTempVendorCDR_20' ) start [2025-04-07 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857487', 'tblTempVendorCDR_20' ) end [2025-04-07 21:04:19] Production.INFO: ProcessCDR(1,14857487,1,1,2) [2025-04-07 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857487', 'tblTempUsageDetail_20' ) start [2025-04-07 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857487', 'tblTempUsageDetail_20' ) end [2025-04-07 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:04:22] Production.INFO: ==25554== Releasing lock... [2025-04-07 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:04:22] Production.INFO: 42 MB #Memory Used# [2025-04-07 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:05:05 [end_date_ymd] => 2025-04-07 21:05:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:05:05' and `end` < '2025-04-07 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-04-07 21:05:18] Production.INFO: count ==1836 [2025-04-07 21:05:18] Production.ERROR: pbx CDR StartTime 2025-04-07 18:05:05 - End Time 2025-04-07 21:05:05 [2025-04-07 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857492', 'tblTempUsageDetail_20' ) start [2025-04-07 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857492', 'tblTempUsageDetail_20' ) end [2025-04-07 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857492', 'tblTempVendorCDR_20' ) start [2025-04-07 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857492', 'tblTempVendorCDR_20' ) end [2025-04-07 21:05:18] Production.INFO: ProcessCDR(1,14857492,1,1,2) [2025-04-07 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857492', 'tblTempUsageDetail_20' ) start [2025-04-07 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857492', 'tblTempUsageDetail_20' ) end [2025-04-07 21:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:05:24] Production.INFO: ==25624== Releasing lock... [2025-04-07 21:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:05:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-07 21:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:06:05 [end_date_ymd] => 2025-04-07 21:06:05 [RateCDR] => 1 ) [2025-04-07 21:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 18:06:05' and `end` < '2025-04-07 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-04-07 21:06:19] Production.INFO: count ==1818 [2025-04-07 21:06:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:06:05 - End Time 2025-04-07 21:06:05 [2025-04-07 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857497', 'tblTempUsageDetail_20' ) start [2025-04-07 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857497', 'tblTempUsageDetail_20' ) end [2025-04-07 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857497', 'tblTempVendorCDR_20' ) start [2025-04-07 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857497', 'tblTempVendorCDR_20' ) end [2025-04-07 21:06:19] Production.INFO: ProcessCDR(1,14857497,1,1,2) [2025-04-07 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857497', 'tblTempUsageDetail_20' ) start [2025-04-07 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857497', 'tblTempUsageDetail_20' ) end [2025-04-07 21:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:06:23] Production.INFO: ==25695== Releasing lock... [2025-04-07 21:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:06:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-07 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:07:05 [end_date_ymd] => 2025-04-07 21:07:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:07:05' and `end` < '2025-04-07 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-04-07 21:07:18] Production.INFO: count ==1817 [2025-04-07 21:07:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:07:05 - End Time 2025-04-07 21:07:05 [2025-04-07 21:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857502', 'tblTempUsageDetail_20' ) start [2025-04-07 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857502', 'tblTempUsageDetail_20' ) end [2025-04-07 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857502', 'tblTempVendorCDR_20' ) start [2025-04-07 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857502', 'tblTempVendorCDR_20' ) end [2025-04-07 21:07:19] Production.INFO: ProcessCDR(1,14857502,1,1,2) [2025-04-07 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857502', 'tblTempUsageDetail_20' ) start [2025-04-07 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857502', 'tblTempUsageDetail_20' ) end [2025-04-07 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:07:22] Production.INFO: ==25767== Releasing lock... [2025-04-07 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:07:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-07 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:08:05 [end_date_ymd] => 2025-04-07 21:08:05 [RateCDR] => 1 ) [2025-04-07 21:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 18:08:05' and `end` < '2025-04-07 21:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 21:08:18] Production.INFO: count ==1818 [2025-04-07 21:08:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:08:05 - End Time 2025-04-07 21:08:05 [2025-04-07 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857507', 'tblTempUsageDetail_20' ) start [2025-04-07 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857507', 'tblTempUsageDetail_20' ) end [2025-04-07 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857507', 'tblTempVendorCDR_20' ) start [2025-04-07 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857507', 'tblTempVendorCDR_20' ) end [2025-04-07 21:08:19] Production.INFO: ProcessCDR(1,14857507,1,1,2) [2025-04-07 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857507', 'tblTempUsageDetail_20' ) start [2025-04-07 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857507', 'tblTempUsageDetail_20' ) end [2025-04-07 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:08:22] Production.INFO: ==25844== Releasing lock... [2025-04-07 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:08:22] Production.INFO: 42 MB #Memory Used# [2025-04-07 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:09:05 [end_date_ymd] => 2025-04-07 21:09:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:09:05' and `end` < '2025-04-07 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-04-07 21:09:18] Production.INFO: count ==1823 [2025-04-07 21:09:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:09:05 - End Time 2025-04-07 21:09:05 [2025-04-07 21:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857512', 'tblTempUsageDetail_20' ) start [2025-04-07 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857512', 'tblTempUsageDetail_20' ) end [2025-04-07 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857512', 'tblTempVendorCDR_20' ) start [2025-04-07 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857512', 'tblTempVendorCDR_20' ) end [2025-04-07 21:09:19] Production.INFO: ProcessCDR(1,14857512,1,1,2) [2025-04-07 21:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857512', 'tblTempUsageDetail_20' ) start [2025-04-07 21:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857512', 'tblTempUsageDetail_20' ) end [2025-04-07 21:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:09:24] Production.INFO: ==25917== Releasing lock... [2025-04-07 21:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:09:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-07 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:10:06 [end_date_ymd] => 2025-04-07 21:10:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:10:06' and `end` < '2025-04-07 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-04-07 21:10:19] Production.INFO: count ==1825 [2025-04-07 21:10:20] Production.ERROR: pbx CDR StartTime 2025-04-07 18:10:06 - End Time 2025-04-07 21:10:06 [2025-04-07 21:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857518', 'tblTempUsageDetail_20' ) start [2025-04-07 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857518', 'tblTempUsageDetail_20' ) end [2025-04-07 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857518', 'tblTempVendorCDR_20' ) start [2025-04-07 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857518', 'tblTempVendorCDR_20' ) end [2025-04-07 21:10:20] Production.INFO: ProcessCDR(1,14857518,1,1,2) [2025-04-07 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857518', 'tblTempUsageDetail_20' ) start [2025-04-07 21:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857518', 'tblTempUsageDetail_20' ) end [2025-04-07 21:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:10:25] Production.INFO: ==25994== Releasing lock... [2025-04-07 21:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:10:25] Production.INFO: 41.75 MB #Memory Used# [2025-04-07 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:11:05 [end_date_ymd] => 2025-04-07 21:11:05 [RateCDR] => 1 ) [2025-04-07 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 18:11:05' and `end` < '2025-04-07 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 21:11:18] Production.INFO: count ==1782 [2025-04-07 21:11:18] Production.ERROR: pbx CDR StartTime 2025-04-07 18:11:05 - End Time 2025-04-07 21:11:05 [2025-04-07 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857523', 'tblTempUsageDetail_20' ) start [2025-04-07 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857523', 'tblTempUsageDetail_20' ) end [2025-04-07 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857523', 'tblTempVendorCDR_20' ) start [2025-04-07 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857523', 'tblTempVendorCDR_20' ) end [2025-04-07 21:11:19] Production.INFO: ProcessCDR(1,14857523,1,1,2) [2025-04-07 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857523', 'tblTempUsageDetail_20' ) start [2025-04-07 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857523', 'tblTempUsageDetail_20' ) end [2025-04-07 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:11:22] Production.INFO: ==26067== Releasing lock... [2025-04-07 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:11:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-07 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:12:05 [end_date_ymd] => 2025-04-07 21:12:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:12:05' and `end` < '2025-04-07 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-04-07 21:12:18] Production.INFO: count ==1785 [2025-04-07 21:12:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:12:05 - End Time 2025-04-07 21:12:05 [2025-04-07 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857528', 'tblTempUsageDetail_20' ) start [2025-04-07 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857528', 'tblTempUsageDetail_20' ) end [2025-04-07 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857528', 'tblTempVendorCDR_20' ) start [2025-04-07 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857528', 'tblTempVendorCDR_20' ) end [2025-04-07 21:12:19] Production.INFO: ProcessCDR(1,14857528,1,1,2) [2025-04-07 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857528', 'tblTempUsageDetail_20' ) start [2025-04-07 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857528', 'tblTempUsageDetail_20' ) end [2025-04-07 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:12:22] Production.INFO: ==26137== Releasing lock... [2025-04-07 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:12:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-07 21:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:13:06 [end_date_ymd] => 2025-04-07 21:13:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:13:06' and `end` < '2025-04-07 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-04-07 21:13:19] Production.INFO: count ==1788 [2025-04-07 21:13:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:13:06 - End Time 2025-04-07 21:13:06 [2025-04-07 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857533', 'tblTempUsageDetail_20' ) start [2025-04-07 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857533', 'tblTempUsageDetail_20' ) end [2025-04-07 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857533', 'tblTempVendorCDR_20' ) start [2025-04-07 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857533', 'tblTempVendorCDR_20' ) end [2025-04-07 21:13:19] Production.INFO: ProcessCDR(1,14857533,1,1,2) [2025-04-07 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857533', 'tblTempUsageDetail_20' ) start [2025-04-07 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857533', 'tblTempUsageDetail_20' ) end [2025-04-07 21:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:13:23] Production.INFO: ==26217== Releasing lock... [2025-04-07 21:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:13:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-07 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:14:05 [end_date_ymd] => 2025-04-07 21:14:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:14:05' and `end` < '2025-04-07 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-04-07 21:14:18] Production.INFO: count ==1787 [2025-04-07 21:14:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:14:05 - End Time 2025-04-07 21:14:05 [2025-04-07 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857538', 'tblTempUsageDetail_20' ) start [2025-04-07 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857538', 'tblTempUsageDetail_20' ) end [2025-04-07 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857538', 'tblTempVendorCDR_20' ) start [2025-04-07 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857538', 'tblTempVendorCDR_20' ) end [2025-04-07 21:14:19] Production.INFO: ProcessCDR(1,14857538,1,1,2) [2025-04-07 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857538', 'tblTempUsageDetail_20' ) start [2025-04-07 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857538', 'tblTempUsageDetail_20' ) end [2025-04-07 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:14:22] Production.INFO: ==26290== Releasing lock... [2025-04-07 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:14:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-07 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:15:05 [end_date_ymd] => 2025-04-07 21:15:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:15:05' and `end` < '2025-04-07 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-04-07 21:15:18] Production.INFO: count ==1782 [2025-04-07 21:15:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:15:05 - End Time 2025-04-07 21:15:05 [2025-04-07 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857543', 'tblTempUsageDetail_20' ) start [2025-04-07 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857543', 'tblTempUsageDetail_20' ) end [2025-04-07 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857543', 'tblTempVendorCDR_20' ) start [2025-04-07 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857543', 'tblTempVendorCDR_20' ) end [2025-04-07 21:15:19] Production.INFO: ProcessCDR(1,14857543,1,1,2) [2025-04-07 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857543', 'tblTempUsageDetail_20' ) start [2025-04-07 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857543', 'tblTempUsageDetail_20' ) end [2025-04-07 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:15:22] Production.INFO: ==26370== Releasing lock... [2025-04-07 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:15:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-07 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:16:05 [end_date_ymd] => 2025-04-07 21:16:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:16:05' and `end` < '2025-04-07 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-04-07 21:16:18] Production.INFO: count ==1781 [2025-04-07 21:16:18] Production.ERROR: pbx CDR StartTime 2025-04-07 18:16:05 - End Time 2025-04-07 21:16:05 [2025-04-07 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857548', 'tblTempUsageDetail_20' ) start [2025-04-07 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857548', 'tblTempUsageDetail_20' ) end [2025-04-07 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857548', 'tblTempVendorCDR_20' ) start [2025-04-07 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857548', 'tblTempVendorCDR_20' ) end [2025-04-07 21:16:18] Production.INFO: ProcessCDR(1,14857548,1,1,2) [2025-04-07 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857548', 'tblTempUsageDetail_20' ) start [2025-04-07 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857548', 'tblTempUsageDetail_20' ) end [2025-04-07 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:16:22] Production.INFO: ==26445== Releasing lock... [2025-04-07 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:16:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-07 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:17:05 [end_date_ymd] => 2025-04-07 21:17:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:17:05' and `end` < '2025-04-07 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-04-07 21:17:18] Production.INFO: count ==1775 [2025-04-07 21:17:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:17:05 - End Time 2025-04-07 21:17:05 [2025-04-07 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857553', 'tblTempUsageDetail_20' ) start [2025-04-07 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857553', 'tblTempUsageDetail_20' ) end [2025-04-07 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857553', 'tblTempVendorCDR_20' ) start [2025-04-07 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857553', 'tblTempVendorCDR_20' ) end [2025-04-07 21:17:19] Production.INFO: ProcessCDR(1,14857553,1,1,2) [2025-04-07 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857553', 'tblTempUsageDetail_20' ) start [2025-04-07 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857553', 'tblTempUsageDetail_20' ) end [2025-04-07 21:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:17:22] Production.INFO: ==26562== Releasing lock... [2025-04-07 21:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:17:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-07 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:18:05 [end_date_ymd] => 2025-04-07 21:18:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:18:05' and `end` < '2025-04-07 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-04-07 21:18:17] Production.INFO: count ==1782 [2025-04-07 21:18:18] Production.ERROR: pbx CDR StartTime 2025-04-07 18:18:05 - End Time 2025-04-07 21:18:05 [2025-04-07 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857558', 'tblTempUsageDetail_20' ) start [2025-04-07 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857558', 'tblTempUsageDetail_20' ) end [2025-04-07 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857558', 'tblTempVendorCDR_20' ) start [2025-04-07 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857558', 'tblTempVendorCDR_20' ) end [2025-04-07 21:18:18] Production.INFO: ProcessCDR(1,14857558,1,1,2) [2025-04-07 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857558', 'tblTempUsageDetail_20' ) start [2025-04-07 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857558', 'tblTempUsageDetail_20' ) end [2025-04-07 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:18:22] Production.INFO: ==26641== Releasing lock... [2025-04-07 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:18:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-07 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:19:05 [end_date_ymd] => 2025-04-07 21:19:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:19:05' and `end` < '2025-04-07 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-04-07 21:19:18] Production.INFO: count ==1800 [2025-04-07 21:19:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:19:05 - End Time 2025-04-07 21:19:05 [2025-04-07 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857563', 'tblTempUsageDetail_20' ) start [2025-04-07 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857563', 'tblTempUsageDetail_20' ) end [2025-04-07 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857563', 'tblTempVendorCDR_20' ) start [2025-04-07 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857563', 'tblTempVendorCDR_20' ) end [2025-04-07 21:19:19] Production.INFO: ProcessCDR(1,14857563,1,1,2) [2025-04-07 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857563', 'tblTempUsageDetail_20' ) start [2025-04-07 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857563', 'tblTempUsageDetail_20' ) end [2025-04-07 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:19:22] Production.INFO: ==26714== Releasing lock... [2025-04-07 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:19:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-07 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:20:06 [end_date_ymd] => 2025-04-07 21:20:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:20:06' and `end` < '2025-04-07 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-04-07 21:20:19] Production.INFO: count ==1796 [2025-04-07 21:20:20] Production.ERROR: pbx CDR StartTime 2025-04-07 18:20:06 - End Time 2025-04-07 21:20:06 [2025-04-07 21:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857569', 'tblTempUsageDetail_20' ) start [2025-04-07 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857569', 'tblTempUsageDetail_20' ) end [2025-04-07 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857569', 'tblTempVendorCDR_20' ) start [2025-04-07 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857569', 'tblTempVendorCDR_20' ) end [2025-04-07 21:20:20] Production.INFO: ProcessCDR(1,14857569,1,1,2) [2025-04-07 21:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857569', 'tblTempUsageDetail_20' ) start [2025-04-07 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857569', 'tblTempUsageDetail_20' ) end [2025-04-07 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:20:23] Production.INFO: ==26791== Releasing lock... [2025-04-07 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:20:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-07 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:21:05 [end_date_ymd] => 2025-04-07 21:21:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:21:05' and `end` < '2025-04-07 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-04-07 21:21:18] Production.INFO: count ==1746 [2025-04-07 21:21:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:21:05 - End Time 2025-04-07 21:21:05 [2025-04-07 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857574', 'tblTempUsageDetail_20' ) start [2025-04-07 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857574', 'tblTempUsageDetail_20' ) end [2025-04-07 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857574', 'tblTempVendorCDR_20' ) start [2025-04-07 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857574', 'tblTempVendorCDR_20' ) end [2025-04-07 21:21:19] Production.INFO: ProcessCDR(1,14857574,1,1,2) [2025-04-07 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857574', 'tblTempUsageDetail_20' ) start [2025-04-07 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857574', 'tblTempUsageDetail_20' ) end [2025-04-07 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:21:22] Production.INFO: ==26864== Releasing lock... [2025-04-07 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:21:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-07 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:22:05 [end_date_ymd] => 2025-04-07 21:22:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:22:05' and `end` < '2025-04-07 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-04-07 21:22:18] Production.INFO: count ==1746 [2025-04-07 21:22:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:22:05 - End Time 2025-04-07 21:22:05 [2025-04-07 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857579', 'tblTempUsageDetail_20' ) start [2025-04-07 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857579', 'tblTempUsageDetail_20' ) end [2025-04-07 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857579', 'tblTempVendorCDR_20' ) start [2025-04-07 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857579', 'tblTempVendorCDR_20' ) end [2025-04-07 21:22:19] Production.INFO: ProcessCDR(1,14857579,1,1,2) [2025-04-07 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857579', 'tblTempUsageDetail_20' ) start [2025-04-07 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857579', 'tblTempUsageDetail_20' ) end [2025-04-07 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:22:22] Production.INFO: ==26940== Releasing lock... [2025-04-07 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:22:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-07 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:23:05 [end_date_ymd] => 2025-04-07 21:23:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:23:05' and `end` < '2025-04-07 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-04-07 21:23:18] Production.INFO: count ==1745 [2025-04-07 21:23:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:23:05 - End Time 2025-04-07 21:23:05 [2025-04-07 21:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857584', 'tblTempUsageDetail_20' ) start [2025-04-07 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857584', 'tblTempUsageDetail_20' ) end [2025-04-07 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857584', 'tblTempVendorCDR_20' ) start [2025-04-07 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857584', 'tblTempVendorCDR_20' ) end [2025-04-07 21:23:19] Production.INFO: ProcessCDR(1,14857584,1,1,2) [2025-04-07 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857584', 'tblTempUsageDetail_20' ) start [2025-04-07 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857584', 'tblTempUsageDetail_20' ) end [2025-04-07 21:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:23:23] Production.INFO: ==27013== Releasing lock... [2025-04-07 21:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:23:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-07 21:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:24:04 [end_date_ymd] => 2025-04-07 21:24:04 [RateCDR] => 1 ) [2025-04-07 21:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 18:24:04' and `end` < '2025-04-07 21:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 21:24:17] Production.INFO: count ==1733 [2025-04-07 21:24:18] Production.ERROR: pbx CDR StartTime 2025-04-07 18:24:04 - End Time 2025-04-07 21:24:04 [2025-04-07 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857589', 'tblTempUsageDetail_20' ) start [2025-04-07 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857589', 'tblTempUsageDetail_20' ) end [2025-04-07 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857589', 'tblTempVendorCDR_20' ) start [2025-04-07 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857589', 'tblTempVendorCDR_20' ) end [2025-04-07 21:24:18] Production.INFO: ProcessCDR(1,14857589,1,1,2) [2025-04-07 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857589', 'tblTempUsageDetail_20' ) start [2025-04-07 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857589', 'tblTempUsageDetail_20' ) end [2025-04-07 21:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:24:21] Production.INFO: ==27086== Releasing lock... [2025-04-07 21:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:24:21] Production.INFO: 41 MB #Memory Used# [2025-04-07 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:25:05 [end_date_ymd] => 2025-04-07 21:25:05 [RateCDR] => 1 ) [2025-04-07 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 18:25:05' and `end` < '2025-04-07 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 21:25:18] Production.INFO: count ==1725 [2025-04-07 21:25:18] Production.ERROR: pbx CDR StartTime 2025-04-07 18:25:05 - End Time 2025-04-07 21:25:05 [2025-04-07 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857594', 'tblTempUsageDetail_20' ) start [2025-04-07 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857594', 'tblTempUsageDetail_20' ) end [2025-04-07 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857594', 'tblTempVendorCDR_20' ) start [2025-04-07 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857594', 'tblTempVendorCDR_20' ) end [2025-04-07 21:25:18] Production.INFO: ProcessCDR(1,14857594,1,1,2) [2025-04-07 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857594', 'tblTempUsageDetail_20' ) start [2025-04-07 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857594', 'tblTempUsageDetail_20' ) end [2025-04-07 21:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:25:22] Production.INFO: ==27157== Releasing lock... [2025-04-07 21:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:25:22] Production.INFO: 41 MB #Memory Used# [2025-04-07 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:26:05 [end_date_ymd] => 2025-04-07 21:26:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:26:05' and `end` < '2025-04-07 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-04-07 21:26:18] Production.INFO: count ==1728 [2025-04-07 21:26:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:26:05 - End Time 2025-04-07 21:26:05 [2025-04-07 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857599', 'tblTempUsageDetail_20' ) start [2025-04-07 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857599', 'tblTempUsageDetail_20' ) end [2025-04-07 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857599', 'tblTempVendorCDR_20' ) start [2025-04-07 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857599', 'tblTempVendorCDR_20' ) end [2025-04-07 21:26:19] Production.INFO: ProcessCDR(1,14857599,1,1,2) [2025-04-07 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857599', 'tblTempUsageDetail_20' ) start [2025-04-07 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857599', 'tblTempUsageDetail_20' ) end [2025-04-07 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:26:22] Production.INFO: ==27229== Releasing lock... [2025-04-07 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:26:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-07 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:27:05 [end_date_ymd] => 2025-04-07 21:27:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:27:05' and `end` < '2025-04-07 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-04-07 21:27:18] Production.INFO: count ==1734 [2025-04-07 21:27:18] Production.ERROR: pbx CDR StartTime 2025-04-07 18:27:05 - End Time 2025-04-07 21:27:05 [2025-04-07 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857604', 'tblTempUsageDetail_20' ) start [2025-04-07 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857604', 'tblTempUsageDetail_20' ) end [2025-04-07 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857604', 'tblTempVendorCDR_20' ) start [2025-04-07 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857604', 'tblTempVendorCDR_20' ) end [2025-04-07 21:27:19] Production.INFO: ProcessCDR(1,14857604,1,1,2) [2025-04-07 21:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857604', 'tblTempUsageDetail_20' ) start [2025-04-07 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857604', 'tblTempUsageDetail_20' ) end [2025-04-07 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:27:22] Production.INFO: ==27302== Releasing lock... [2025-04-07 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:27:22] Production.INFO: 41 MB #Memory Used# [2025-04-07 21:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:28:06 [end_date_ymd] => 2025-04-07 21:28:06 [RateCDR] => 1 ) [2025-04-07 21:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 18:28:06' and `end` < '2025-04-07 21:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 21:28:19] Production.INFO: count ==1729 [2025-04-07 21:28:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:28:06 - End Time 2025-04-07 21:28:06 [2025-04-07 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857609', 'tblTempUsageDetail_20' ) start [2025-04-07 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857609', 'tblTempUsageDetail_20' ) end [2025-04-07 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857609', 'tblTempVendorCDR_20' ) start [2025-04-07 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857609', 'tblTempVendorCDR_20' ) end [2025-04-07 21:28:19] Production.INFO: ProcessCDR(1,14857609,1,1,2) [2025-04-07 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857609', 'tblTempUsageDetail_20' ) start [2025-04-07 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857609', 'tblTempUsageDetail_20' ) end [2025-04-07 21:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:28:23] Production.INFO: ==27374== Releasing lock... [2025-04-07 21:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:28:23] Production.INFO: 41 MB #Memory Used# [2025-04-07 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:29:05 [end_date_ymd] => 2025-04-07 21:29:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:29:05' and `end` < '2025-04-07 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-04-07 21:29:18] Production.INFO: count ==1729 [2025-04-07 21:29:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:29:05 - End Time 2025-04-07 21:29:05 [2025-04-07 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857614', 'tblTempUsageDetail_20' ) start [2025-04-07 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857614', 'tblTempUsageDetail_20' ) end [2025-04-07 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857614', 'tblTempVendorCDR_20' ) start [2025-04-07 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857614', 'tblTempVendorCDR_20' ) end [2025-04-07 21:29:19] Production.INFO: ProcessCDR(1,14857614,1,1,2) [2025-04-07 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857614', 'tblTempUsageDetail_20' ) start [2025-04-07 21:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857614', 'tblTempUsageDetail_20' ) end [2025-04-07 21:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:29:24] Production.INFO: ==27449== Releasing lock... [2025-04-07 21:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:29:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-07 21:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:30:07 [end_date_ymd] => 2025-04-07 21:30:07 [RateCDR] => 1 ) [2025-04-07 21:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 18:30:07' and `end` < '2025-04-07 21:30: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-04-07 21:30:20] Production.INFO: count ==1725 [2025-04-07 21:30:20] Production.ERROR: pbx CDR StartTime 2025-04-07 18:30:07 - End Time 2025-04-07 21:30:07 [2025-04-07 21:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857620', 'tblTempUsageDetail_20' ) start [2025-04-07 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857620', 'tblTempUsageDetail_20' ) end [2025-04-07 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857620', 'tblTempVendorCDR_20' ) start [2025-04-07 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857620', 'tblTempVendorCDR_20' ) end [2025-04-07 21:30:20] Production.INFO: ProcessCDR(1,14857620,1,1,2) [2025-04-07 21:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857620', 'tblTempUsageDetail_20' ) start [2025-04-07 21:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857620', 'tblTempUsageDetail_20' ) end [2025-04-07 21:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:30:25] Production.INFO: ==27528== Releasing lock... [2025-04-07 21:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:30:25] Production.INFO: 41 MB #Memory Used# [2025-04-07 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:31:05 [end_date_ymd] => 2025-04-07 21:31:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:31:05' and `end` < '2025-04-07 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-04-07 21:31:18] Production.INFO: count ==1681 [2025-04-07 21:31:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:31:05 - End Time 2025-04-07 21:31:05 [2025-04-07 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857625', 'tblTempUsageDetail_20' ) start [2025-04-07 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857625', 'tblTempUsageDetail_20' ) end [2025-04-07 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857625', 'tblTempVendorCDR_20' ) start [2025-04-07 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857625', 'tblTempVendorCDR_20' ) end [2025-04-07 21:31:19] Production.INFO: ProcessCDR(1,14857625,1,1,2) [2025-04-07 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857625', 'tblTempUsageDetail_20' ) start [2025-04-07 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857625', 'tblTempUsageDetail_20' ) end [2025-04-07 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:31:22] Production.INFO: ==27603== Releasing lock... [2025-04-07 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:31:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-07 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:32:05 [end_date_ymd] => 2025-04-07 21:32:05 [RateCDR] => 1 ) [2025-04-07 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 18:32:05' and `end` < '2025-04-07 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 21:32:19] Production.INFO: count ==1690 [2025-04-07 21:32:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:32:05 - End Time 2025-04-07 21:32:05 [2025-04-07 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857630', 'tblTempUsageDetail_20' ) start [2025-04-07 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857630', 'tblTempUsageDetail_20' ) end [2025-04-07 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857630', 'tblTempVendorCDR_20' ) start [2025-04-07 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857630', 'tblTempVendorCDR_20' ) end [2025-04-07 21:32:19] Production.INFO: ProcessCDR(1,14857630,1,1,2) [2025-04-07 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857630', 'tblTempUsageDetail_20' ) start [2025-04-07 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857630', 'tblTempUsageDetail_20' ) end [2025-04-07 21:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:32:23] Production.INFO: ==27713== Releasing lock... [2025-04-07 21:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:32:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-07 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:33:05 [end_date_ymd] => 2025-04-07 21:33:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:33:05' and `end` < '2025-04-07 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-04-07 21:33:18] Production.INFO: count ==1687 [2025-04-07 21:33:18] Production.ERROR: pbx CDR StartTime 2025-04-07 18:33:05 - End Time 2025-04-07 21:33:05 [2025-04-07 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857635', 'tblTempUsageDetail_20' ) start [2025-04-07 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857635', 'tblTempUsageDetail_20' ) end [2025-04-07 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857635', 'tblTempVendorCDR_20' ) start [2025-04-07 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857635', 'tblTempVendorCDR_20' ) end [2025-04-07 21:33:18] Production.INFO: ProcessCDR(1,14857635,1,1,2) [2025-04-07 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857635', 'tblTempUsageDetail_20' ) start [2025-04-07 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857635', 'tblTempUsageDetail_20' ) end [2025-04-07 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:33:22] Production.INFO: ==27784== Releasing lock... [2025-04-07 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:33:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-07 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:34:05 [end_date_ymd] => 2025-04-07 21:34:05 [RateCDR] => 1 ) [2025-04-07 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 18:34:05' and `end` < '2025-04-07 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 21:34:18] Production.INFO: count ==1681 [2025-04-07 21:34:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:34:05 - End Time 2025-04-07 21:34:05 [2025-04-07 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857640', 'tblTempUsageDetail_20' ) start [2025-04-07 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857640', 'tblTempUsageDetail_20' ) end [2025-04-07 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857640', 'tblTempVendorCDR_20' ) start [2025-04-07 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857640', 'tblTempVendorCDR_20' ) end [2025-04-07 21:34:19] Production.INFO: ProcessCDR(1,14857640,1,1,2) [2025-04-07 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857640', 'tblTempUsageDetail_20' ) start [2025-04-07 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857640', 'tblTempUsageDetail_20' ) end [2025-04-07 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:34:22] Production.INFO: ==27859== Releasing lock... [2025-04-07 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:34:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-07 21:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:35:04 [end_date_ymd] => 2025-04-07 21:35:04 [RateCDR] => 1 ) [2025-04-07 21:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 18:35:04' and `end` < '2025-04-07 21:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 21:35:17] Production.INFO: count ==1684 [2025-04-07 21:35:18] Production.ERROR: pbx CDR StartTime 2025-04-07 18:35:04 - End Time 2025-04-07 21:35:04 [2025-04-07 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857645', 'tblTempUsageDetail_20' ) start [2025-04-07 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857645', 'tblTempUsageDetail_20' ) end [2025-04-07 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857645', 'tblTempVendorCDR_20' ) start [2025-04-07 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857645', 'tblTempVendorCDR_20' ) end [2025-04-07 21:35:18] Production.INFO: ProcessCDR(1,14857645,1,1,2) [2025-04-07 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857645', 'tblTempUsageDetail_20' ) start [2025-04-07 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857645', 'tblTempUsageDetail_20' ) end [2025-04-07 21:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:35:23] Production.INFO: ==27932== Releasing lock... [2025-04-07 21:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:35:23] Production.INFO: 41 MB #Memory Used# [2025-04-07 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:36:05 [end_date_ymd] => 2025-04-07 21:36:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:36:05' and `end` < '2025-04-07 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-04-07 21:36:18] Production.INFO: count ==1678 [2025-04-07 21:36:18] Production.ERROR: pbx CDR StartTime 2025-04-07 18:36:05 - End Time 2025-04-07 21:36:05 [2025-04-07 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857650', 'tblTempUsageDetail_20' ) start [2025-04-07 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857650', 'tblTempUsageDetail_20' ) end [2025-04-07 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857650', 'tblTempVendorCDR_20' ) start [2025-04-07 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857650', 'tblTempVendorCDR_20' ) end [2025-04-07 21:36:18] Production.INFO: ProcessCDR(1,14857650,1,1,2) [2025-04-07 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857650', 'tblTempUsageDetail_20' ) start [2025-04-07 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857650', 'tblTempUsageDetail_20' ) end [2025-04-07 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:36:22] Production.INFO: ==28011== Releasing lock... [2025-04-07 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:36:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-07 21:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:37:06 [end_date_ymd] => 2025-04-07 21:37:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:37:06' and `end` < '2025-04-07 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-04-07 21:37:19] Production.INFO: count ==1664 [2025-04-07 21:37:20] Production.ERROR: pbx CDR StartTime 2025-04-07 18:37:06 - End Time 2025-04-07 21:37:06 [2025-04-07 21:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857655', 'tblTempUsageDetail_20' ) start [2025-04-07 21:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857655', 'tblTempUsageDetail_20' ) end [2025-04-07 21:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857655', 'tblTempVendorCDR_20' ) start [2025-04-07 21:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857655', 'tblTempVendorCDR_20' ) end [2025-04-07 21:37:20] Production.INFO: ProcessCDR(1,14857655,1,1,2) [2025-04-07 21:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857655', 'tblTempUsageDetail_20' ) start [2025-04-07 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857655', 'tblTempUsageDetail_20' ) end [2025-04-07 21:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:37:23] Production.INFO: ==28085== Releasing lock... [2025-04-07 21:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:37:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-07 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:38:05 [end_date_ymd] => 2025-04-07 21:38:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:38:05' and `end` < '2025-04-07 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-04-07 21:38:18] Production.INFO: count ==1665 [2025-04-07 21:38:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:38:05 - End Time 2025-04-07 21:38:05 [2025-04-07 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857660', 'tblTempUsageDetail_20' ) start [2025-04-07 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857660', 'tblTempUsageDetail_20' ) end [2025-04-07 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857660', 'tblTempVendorCDR_20' ) start [2025-04-07 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857660', 'tblTempVendorCDR_20' ) end [2025-04-07 21:38:19] Production.INFO: ProcessCDR(1,14857660,1,1,2) [2025-04-07 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857660', 'tblTempUsageDetail_20' ) start [2025-04-07 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857660', 'tblTempUsageDetail_20' ) end [2025-04-07 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:38:22] Production.INFO: ==28158== Releasing lock... [2025-04-07 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:38:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-07 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:39:05 [end_date_ymd] => 2025-04-07 21:39:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:39:05' and `end` < '2025-04-07 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-04-07 21:39:18] Production.INFO: count ==1657 [2025-04-07 21:39:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:39:05 - End Time 2025-04-07 21:39:05 [2025-04-07 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857665', 'tblTempUsageDetail_20' ) start [2025-04-07 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857665', 'tblTempUsageDetail_20' ) end [2025-04-07 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857665', 'tblTempVendorCDR_20' ) start [2025-04-07 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857665', 'tblTempVendorCDR_20' ) end [2025-04-07 21:39:19] Production.INFO: ProcessCDR(1,14857665,1,1,2) [2025-04-07 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857665', 'tblTempUsageDetail_20' ) start [2025-04-07 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857665', 'tblTempUsageDetail_20' ) end [2025-04-07 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:39:22] Production.INFO: ==28227== Releasing lock... [2025-04-07 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:39:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-07 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:40:06 [end_date_ymd] => 2025-04-07 21:40:06 [RateCDR] => 1 ) [2025-04-07 21: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-04-07 18:40:06' and `end` < '2025-04-07 21: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-04-07 21:40:19] Production.INFO: count ==1663 [2025-04-07 21:40:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:40:06 - End Time 2025-04-07 21:40:06 [2025-04-07 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857670', 'tblTempUsageDetail_20' ) start [2025-04-07 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857670', 'tblTempUsageDetail_20' ) end [2025-04-07 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857670', 'tblTempVendorCDR_20' ) start [2025-04-07 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857670', 'tblTempVendorCDR_20' ) end [2025-04-07 21:40:19] Production.INFO: ProcessCDR(1,14857670,1,1,2) [2025-04-07 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857670', 'tblTempUsageDetail_20' ) start [2025-04-07 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857670', 'tblTempUsageDetail_20' ) end [2025-04-07 21:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:40:23] Production.INFO: ==28302== Releasing lock... [2025-04-07 21:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:40:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-07 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:41:05 [end_date_ymd] => 2025-04-07 21:41:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:41:05' and `end` < '2025-04-07 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-04-07 21:41:18] Production.INFO: count ==1634 [2025-04-07 21:41:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:41:05 - End Time 2025-04-07 21:41:05 [2025-04-07 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857676', 'tblTempUsageDetail_20' ) start [2025-04-07 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857676', 'tblTempUsageDetail_20' ) end [2025-04-07 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857676', 'tblTempVendorCDR_20' ) start [2025-04-07 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857676', 'tblTempVendorCDR_20' ) end [2025-04-07 21:41:19] Production.INFO: ProcessCDR(1,14857676,1,1,2) [2025-04-07 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857676', 'tblTempUsageDetail_20' ) start [2025-04-07 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857676', 'tblTempUsageDetail_20' ) end [2025-04-07 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:41:23] Production.INFO: ==28377== Releasing lock... [2025-04-07 21:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:41:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-07 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:42:05 [end_date_ymd] => 2025-04-07 21:42:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:42:05' and `end` < '2025-04-07 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-04-07 21:42:18] Production.INFO: count ==1632 [2025-04-07 21:42:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:42:05 - End Time 2025-04-07 21:42:05 [2025-04-07 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857681', 'tblTempUsageDetail_20' ) start [2025-04-07 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857681', 'tblTempUsageDetail_20' ) end [2025-04-07 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857681', 'tblTempVendorCDR_20' ) start [2025-04-07 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857681', 'tblTempVendorCDR_20' ) end [2025-04-07 21:42:19] Production.INFO: ProcessCDR(1,14857681,1,1,2) [2025-04-07 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857681', 'tblTempUsageDetail_20' ) start [2025-04-07 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857681', 'tblTempUsageDetail_20' ) end [2025-04-07 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:42:22] Production.INFO: ==28450== Releasing lock... [2025-04-07 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:42:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-07 21:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:43:06 [end_date_ymd] => 2025-04-07 21:43:06 [RateCDR] => 1 ) [2025-04-07 21:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 18:43:06' and `end` < '2025-04-07 21:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 21:43:19] Production.INFO: count ==1634 [2025-04-07 21:43:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:43:06 - End Time 2025-04-07 21:43:06 [2025-04-07 21:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857686', 'tblTempUsageDetail_20' ) start [2025-04-07 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857686', 'tblTempUsageDetail_20' ) end [2025-04-07 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857686', 'tblTempVendorCDR_20' ) start [2025-04-07 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857686', 'tblTempVendorCDR_20' ) end [2025-04-07 21:43:19] Production.INFO: ProcessCDR(1,14857686,1,1,2) [2025-04-07 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857686', 'tblTempUsageDetail_20' ) start [2025-04-07 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857686', 'tblTempUsageDetail_20' ) end [2025-04-07 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:43:22] Production.INFO: ==28523== Releasing lock... [2025-04-07 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:43:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-07 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:44:05 [end_date_ymd] => 2025-04-07 21:44:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:44:05' and `end` < '2025-04-07 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-04-07 21:44:18] Production.INFO: count ==1645 [2025-04-07 21:44:18] Production.ERROR: pbx CDR StartTime 2025-04-07 18:44:05 - End Time 2025-04-07 21:44:05 [2025-04-07 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857691', 'tblTempUsageDetail_20' ) start [2025-04-07 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857691', 'tblTempUsageDetail_20' ) end [2025-04-07 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857691', 'tblTempVendorCDR_20' ) start [2025-04-07 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857691', 'tblTempVendorCDR_20' ) end [2025-04-07 21:44:19] Production.INFO: ProcessCDR(1,14857691,1,1,2) [2025-04-07 21:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857691', 'tblTempUsageDetail_20' ) start [2025-04-07 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857691', 'tblTempUsageDetail_20' ) end [2025-04-07 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:44:22] Production.INFO: ==28596== Releasing lock... [2025-04-07 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:44:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-07 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:45:05 [end_date_ymd] => 2025-04-07 21:45:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:45:05' and `end` < '2025-04-07 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-04-07 21:45:18] Production.INFO: count ==1645 [2025-04-07 21:45:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:45:05 - End Time 2025-04-07 21:45:05 [2025-04-07 21:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857696', 'tblTempUsageDetail_20' ) start [2025-04-07 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857696', 'tblTempUsageDetail_20' ) end [2025-04-07 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857696', 'tblTempVendorCDR_20' ) start [2025-04-07 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857696', 'tblTempVendorCDR_20' ) end [2025-04-07 21:45:19] Production.INFO: ProcessCDR(1,14857696,1,1,2) [2025-04-07 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857696', 'tblTempUsageDetail_20' ) start [2025-04-07 21:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857696', 'tblTempUsageDetail_20' ) end [2025-04-07 21:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:45:24] Production.INFO: ==28675== Releasing lock... [2025-04-07 21:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:45:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-07 21:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:46:06 [end_date_ymd] => 2025-04-07 21:46:06 [RateCDR] => 1 ) [2025-04-07 21:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 18:46:06' and `end` < '2025-04-07 21:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 21:46:19] Production.INFO: count ==1646 [2025-04-07 21:46:20] Production.ERROR: pbx CDR StartTime 2025-04-07 18:46:06 - End Time 2025-04-07 21:46:06 [2025-04-07 21:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857701', 'tblTempUsageDetail_20' ) start [2025-04-07 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857701', 'tblTempUsageDetail_20' ) end [2025-04-07 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857701', 'tblTempVendorCDR_20' ) start [2025-04-07 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857701', 'tblTempVendorCDR_20' ) end [2025-04-07 21:46:20] Production.INFO: ProcessCDR(1,14857701,1,1,2) [2025-04-07 21:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857701', 'tblTempUsageDetail_20' ) start [2025-04-07 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857701', 'tblTempUsageDetail_20' ) end [2025-04-07 21:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:46:23] Production.INFO: ==28746== Releasing lock... [2025-04-07 21:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:46:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-07 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:47:05 [end_date_ymd] => 2025-04-07 21:47:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:47:05' and `end` < '2025-04-07 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-04-07 21:47:18] Production.INFO: count ==1660 [2025-04-07 21:47:18] Production.ERROR: pbx CDR StartTime 2025-04-07 18:47:05 - End Time 2025-04-07 21:47:05 [2025-04-07 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857706', 'tblTempUsageDetail_20' ) start [2025-04-07 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857706', 'tblTempUsageDetail_20' ) end [2025-04-07 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857706', 'tblTempVendorCDR_20' ) start [2025-04-07 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857706', 'tblTempVendorCDR_20' ) end [2025-04-07 21:47:19] Production.INFO: ProcessCDR(1,14857706,1,1,2) [2025-04-07 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857706', 'tblTempUsageDetail_20' ) start [2025-04-07 21:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857706', 'tblTempUsageDetail_20' ) end [2025-04-07 21:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:47:24] Production.INFO: ==28818== Releasing lock... [2025-04-07 21:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:47:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-07 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:48:05 [end_date_ymd] => 2025-04-07 21:48:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:48:05' and `end` < '2025-04-07 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-04-07 21:48:17] Production.INFO: count ==1656 [2025-04-07 21:48:18] Production.ERROR: pbx CDR StartTime 2025-04-07 18:48:05 - End Time 2025-04-07 21:48:05 [2025-04-07 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857711', 'tblTempUsageDetail_20' ) start [2025-04-07 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857711', 'tblTempUsageDetail_20' ) end [2025-04-07 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857711', 'tblTempVendorCDR_20' ) start [2025-04-07 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857711', 'tblTempVendorCDR_20' ) end [2025-04-07 21:48:18] Production.INFO: ProcessCDR(1,14857711,1,1,2) [2025-04-07 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857711', 'tblTempUsageDetail_20' ) start [2025-04-07 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857711', 'tblTempUsageDetail_20' ) end [2025-04-07 21:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:48:22] Production.INFO: ==28926== Releasing lock... [2025-04-07 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:48:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-07 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:49:05 [end_date_ymd] => 2025-04-07 21:49:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:49:05' and `end` < '2025-04-07 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-04-07 21:49:18] Production.INFO: count ==1660 [2025-04-07 21:49:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:49:05 - End Time 2025-04-07 21:49:05 [2025-04-07 21:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857716', 'tblTempUsageDetail_20' ) start [2025-04-07 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857716', 'tblTempUsageDetail_20' ) end [2025-04-07 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857716', 'tblTempVendorCDR_20' ) start [2025-04-07 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857716', 'tblTempVendorCDR_20' ) end [2025-04-07 21:49:19] Production.INFO: ProcessCDR(1,14857716,1,1,2) [2025-04-07 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857716', 'tblTempUsageDetail_20' ) start [2025-04-07 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857716', 'tblTempUsageDetail_20' ) end [2025-04-07 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:49:22] Production.INFO: ==28997== Releasing lock... [2025-04-07 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:49:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-07 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:50:06 [end_date_ymd] => 2025-04-07 21:50:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:50:06' and `end` < '2025-04-07 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-04-07 21:50:19] Production.INFO: count ==1667 [2025-04-07 21:50:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:50:06 - End Time 2025-04-07 21:50:06 [2025-04-07 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857721', 'tblTempUsageDetail_20' ) start [2025-04-07 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857721', 'tblTempUsageDetail_20' ) end [2025-04-07 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857721', 'tblTempVendorCDR_20' ) start [2025-04-07 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857721', 'tblTempVendorCDR_20' ) end [2025-04-07 21:50:19] Production.INFO: ProcessCDR(1,14857721,1,1,2) [2025-04-07 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857721', 'tblTempUsageDetail_20' ) start [2025-04-07 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857721', 'tblTempUsageDetail_20' ) end [2025-04-07 21:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:50:23] Production.INFO: ==29071== Releasing lock... [2025-04-07 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:50:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-07 21:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:51:06 [end_date_ymd] => 2025-04-07 21:51:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:51:06' and `end` < '2025-04-07 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-04-07 21:51:19] Production.INFO: count ==1615 [2025-04-07 21:51:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:51:06 - End Time 2025-04-07 21:51:06 [2025-04-07 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857727', 'tblTempUsageDetail_20' ) start [2025-04-07 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857727', 'tblTempUsageDetail_20' ) end [2025-04-07 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857727', 'tblTempVendorCDR_20' ) start [2025-04-07 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857727', 'tblTempVendorCDR_20' ) end [2025-04-07 21:51:19] Production.INFO: ProcessCDR(1,14857727,1,1,2) [2025-04-07 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857727', 'tblTempUsageDetail_20' ) start [2025-04-07 21:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857727', 'tblTempUsageDetail_20' ) end [2025-04-07 21:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:51:24] Production.INFO: ==29145== Releasing lock... [2025-04-07 21:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:51:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-07 21:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:52:06 [end_date_ymd] => 2025-04-07 21:52:06 [RateCDR] => 1 ) [2025-04-07 21: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-04-07 18:52:06' and `end` < '2025-04-07 21: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-04-07 21:52:19] Production.INFO: count ==1613 [2025-04-07 21:52:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:52:06 - End Time 2025-04-07 21:52:06 [2025-04-07 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857732', 'tblTempUsageDetail_20' ) start [2025-04-07 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857732', 'tblTempUsageDetail_20' ) end [2025-04-07 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857732', 'tblTempVendorCDR_20' ) start [2025-04-07 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857732', 'tblTempVendorCDR_20' ) end [2025-04-07 21:52:19] Production.INFO: ProcessCDR(1,14857732,1,1,2) [2025-04-07 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857732', 'tblTempUsageDetail_20' ) start [2025-04-07 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857732', 'tblTempUsageDetail_20' ) end [2025-04-07 21:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:52:23] Production.INFO: ==29217== Releasing lock... [2025-04-07 21:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:52:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-07 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:53:05 [end_date_ymd] => 2025-04-07 21:53:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:53:05' and `end` < '2025-04-07 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-04-07 21:53:18] Production.INFO: count ==1606 [2025-04-07 21:53:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:53:05 - End Time 2025-04-07 21:53:05 [2025-04-07 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857737', 'tblTempUsageDetail_20' ) start [2025-04-07 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857737', 'tblTempUsageDetail_20' ) end [2025-04-07 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857737', 'tblTempVendorCDR_20' ) start [2025-04-07 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857737', 'tblTempVendorCDR_20' ) end [2025-04-07 21:53:19] Production.INFO: ProcessCDR(1,14857737,1,1,2) [2025-04-07 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857737', 'tblTempUsageDetail_20' ) start [2025-04-07 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857737', 'tblTempUsageDetail_20' ) end [2025-04-07 21:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:53:22] Production.INFO: ==29288== Releasing lock... [2025-04-07 21:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:53:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-07 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:54:05 [end_date_ymd] => 2025-04-07 21:54:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:54:05' and `end` < '2025-04-07 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-04-07 21:54:18] Production.INFO: count ==1605 [2025-04-07 21:54:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:54:05 - End Time 2025-04-07 21:54:05 [2025-04-07 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857742', 'tblTempUsageDetail_20' ) start [2025-04-07 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857742', 'tblTempUsageDetail_20' ) end [2025-04-07 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857742', 'tblTempVendorCDR_20' ) start [2025-04-07 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857742', 'tblTempVendorCDR_20' ) end [2025-04-07 21:54:19] Production.INFO: ProcessCDR(1,14857742,1,1,2) [2025-04-07 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857742', 'tblTempUsageDetail_20' ) start [2025-04-07 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857742', 'tblTempUsageDetail_20' ) end [2025-04-07 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:54:22] Production.INFO: ==29368== Releasing lock... [2025-04-07 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:54:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-07 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:55:05 [end_date_ymd] => 2025-04-07 21:55:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:55:05' and `end` < '2025-04-07 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-04-07 21:55:18] Production.INFO: count ==1605 [2025-04-07 21:55:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:55:05 - End Time 2025-04-07 21:55:05 [2025-04-07 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857747', 'tblTempUsageDetail_20' ) start [2025-04-07 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857747', 'tblTempUsageDetail_20' ) end [2025-04-07 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857747', 'tblTempVendorCDR_20' ) start [2025-04-07 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857747', 'tblTempVendorCDR_20' ) end [2025-04-07 21:55:19] Production.INFO: ProcessCDR(1,14857747,1,1,2) [2025-04-07 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857747', 'tblTempUsageDetail_20' ) start [2025-04-07 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857747', 'tblTempUsageDetail_20' ) end [2025-04-07 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:55:22] Production.INFO: ==29455== Releasing lock... [2025-04-07 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:55:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-07 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:56:06 [end_date_ymd] => 2025-04-07 21:56:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:56:06' and `end` < '2025-04-07 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-04-07 21:56:19] Production.INFO: count ==1602 [2025-04-07 21:56:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:56:06 - End Time 2025-04-07 21:56:06 [2025-04-07 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857752', 'tblTempUsageDetail_20' ) start [2025-04-07 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857752', 'tblTempUsageDetail_20' ) end [2025-04-07 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857752', 'tblTempVendorCDR_20' ) start [2025-04-07 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857752', 'tblTempVendorCDR_20' ) end [2025-04-07 21:56:19] Production.INFO: ProcessCDR(1,14857752,1,1,2) [2025-04-07 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857752', 'tblTempUsageDetail_20' ) start [2025-04-07 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857752', 'tblTempUsageDetail_20' ) end [2025-04-07 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:56:22] Production.INFO: ==29539== Releasing lock... [2025-04-07 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:56:22] Production.INFO: 40 MB #Memory Used# [2025-04-07 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:57:05 [end_date_ymd] => 2025-04-07 21:57:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:57:05' and `end` < '2025-04-07 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-04-07 21:57:18] Production.INFO: count ==1601 [2025-04-07 21:57:18] Production.ERROR: pbx CDR StartTime 2025-04-07 18:57:05 - End Time 2025-04-07 21:57:05 [2025-04-07 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857757', 'tblTempUsageDetail_20' ) start [2025-04-07 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857757', 'tblTempUsageDetail_20' ) end [2025-04-07 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857757', 'tblTempVendorCDR_20' ) start [2025-04-07 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857757', 'tblTempVendorCDR_20' ) end [2025-04-07 21:57:18] Production.INFO: ProcessCDR(1,14857757,1,1,2) [2025-04-07 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857757', 'tblTempUsageDetail_20' ) start [2025-04-07 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857757', 'tblTempUsageDetail_20' ) end [2025-04-07 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:57:22] Production.INFO: ==29619== Releasing lock... [2025-04-07 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:57:22] Production.INFO: 40 MB #Memory Used# [2025-04-07 21:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:58:06 [end_date_ymd] => 2025-04-07 21:58:06 [RateCDR] => 1 ) [2025-04-07 21: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-04-07 18:58:06' and `end` < '2025-04-07 21: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-04-07 21:58:19] Production.INFO: count ==1595 [2025-04-07 21:58:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:58:06 - End Time 2025-04-07 21:58:06 [2025-04-07 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857762', 'tblTempUsageDetail_20' ) start [2025-04-07 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857762', 'tblTempUsageDetail_20' ) end [2025-04-07 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857762', 'tblTempVendorCDR_20' ) start [2025-04-07 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857762', 'tblTempVendorCDR_20' ) end [2025-04-07 21:58:19] Production.INFO: ProcessCDR(1,14857762,1,1,2) [2025-04-07 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857762', 'tblTempUsageDetail_20' ) start [2025-04-07 21:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857762', 'tblTempUsageDetail_20' ) end [2025-04-07 21:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:58:24] Production.INFO: ==29690== Releasing lock... [2025-04-07 21:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:58:24] Production.INFO: 40 MB #Memory Used# [2025-04-07 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 18:59:05 [end_date_ymd] => 2025-04-07 21:59:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 18:59:05' and `end` < '2025-04-07 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-04-07 21:59:18] Production.INFO: count ==1581 [2025-04-07 21:59:19] Production.ERROR: pbx CDR StartTime 2025-04-07 18:59:05 - End Time 2025-04-07 21:59:05 [2025-04-07 21:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857767', 'tblTempUsageDetail_20' ) start [2025-04-07 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857767', 'tblTempUsageDetail_20' ) end [2025-04-07 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857767', 'tblTempVendorCDR_20' ) start [2025-04-07 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857767', 'tblTempVendorCDR_20' ) end [2025-04-07 21:59:19] Production.INFO: ProcessCDR(1,14857767,1,1,2) [2025-04-07 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857767', 'tblTempUsageDetail_20' ) start [2025-04-07 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857767', 'tblTempUsageDetail_20' ) end [2025-04-07 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 21:59:22] Production.INFO: ==29779== Releasing lock... [2025-04-07 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 21:59:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-07 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:00:06 [end_date_ymd] => 2025-04-07 22:00:06 [RateCDR] => 1 ) [2025-04-07 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 19:00:06' and `end` < '2025-04-07 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 22:00:19] Production.INFO: count ==1562 [2025-04-07 22:00:20] Production.ERROR: pbx CDR StartTime 2025-04-07 19:00:06 - End Time 2025-04-07 22:00:06 [2025-04-07 22:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857773', 'tblTempUsageDetail_20' ) start [2025-04-07 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857773', 'tblTempUsageDetail_20' ) end [2025-04-07 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857773', 'tblTempVendorCDR_20' ) start [2025-04-07 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857773', 'tblTempVendorCDR_20' ) end [2025-04-07 22:00:20] Production.INFO: ProcessCDR(1,14857773,1,1,2) [2025-04-07 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857773', 'tblTempUsageDetail_20' ) start [2025-04-07 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857773', 'tblTempUsageDetail_20' ) end [2025-04-07 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:00:23] Production.INFO: ==29865== Releasing lock... [2025-04-07 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:00:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-07 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:01:05 [end_date_ymd] => 2025-04-07 22:01:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:01:05' and `end` < '2025-04-07 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-04-07 22:01:18] Production.INFO: count ==1518 [2025-04-07 22:01:18] Production.ERROR: pbx CDR StartTime 2025-04-07 19:01:05 - End Time 2025-04-07 22:01:05 [2025-04-07 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857778', 'tblTempUsageDetail_20' ) start [2025-04-07 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857778', 'tblTempUsageDetail_20' ) end [2025-04-07 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857778', 'tblTempVendorCDR_20' ) start [2025-04-07 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857778', 'tblTempVendorCDR_20' ) end [2025-04-07 22:01:19] Production.INFO: ProcessCDR(1,14857778,1,1,2) [2025-04-07 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857778', 'tblTempUsageDetail_20' ) start [2025-04-07 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857778', 'tblTempUsageDetail_20' ) end [2025-04-07 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:01:22] Production.INFO: ==29951== Releasing lock... [2025-04-07 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:01:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-07 22:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:02:06 [end_date_ymd] => 2025-04-07 22:02:06 [RateCDR] => 1 ) [2025-04-07 22:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 19:02:06' and `end` < '2025-04-07 22:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 22:02:19] Production.INFO: count ==1511 [2025-04-07 22:02:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:02:06 - End Time 2025-04-07 22:02:06 [2025-04-07 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857783', 'tblTempUsageDetail_20' ) start [2025-04-07 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857783', 'tblTempUsageDetail_20' ) end [2025-04-07 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857783', 'tblTempVendorCDR_20' ) start [2025-04-07 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857783', 'tblTempVendorCDR_20' ) end [2025-04-07 22:02:19] Production.INFO: ProcessCDR(1,14857783,1,1,2) [2025-04-07 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857783', 'tblTempUsageDetail_20' ) start [2025-04-07 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857783', 'tblTempUsageDetail_20' ) end [2025-04-07 22:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:02:23] Production.INFO: ==30026== Releasing lock... [2025-04-07 22:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:02:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-07 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:03:05 [end_date_ymd] => 2025-04-07 22:03:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:03:05' and `end` < '2025-04-07 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-04-07 22:03:18] Production.INFO: count ==1511 [2025-04-07 22:03:18] Production.ERROR: pbx CDR StartTime 2025-04-07 19:03:05 - End Time 2025-04-07 22:03:05 [2025-04-07 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857788', 'tblTempUsageDetail_20' ) start [2025-04-07 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857788', 'tblTempUsageDetail_20' ) end [2025-04-07 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857788', 'tblTempVendorCDR_20' ) start [2025-04-07 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857788', 'tblTempVendorCDR_20' ) end [2025-04-07 22:03:18] Production.INFO: ProcessCDR(1,14857788,1,1,2) [2025-04-07 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857788', 'tblTempUsageDetail_20' ) start [2025-04-07 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857788', 'tblTempUsageDetail_20' ) end [2025-04-07 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:03:22] Production.INFO: ==30135== Releasing lock... [2025-04-07 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:03:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-07 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:04:05 [end_date_ymd] => 2025-04-07 22:04:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:04:05' and `end` < '2025-04-07 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-04-07 22:04:18] Production.INFO: count ==1513 [2025-04-07 22:04:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:04:05 - End Time 2025-04-07 22:04:05 [2025-04-07 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857793', 'tblTempUsageDetail_20' ) start [2025-04-07 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857793', 'tblTempUsageDetail_20' ) end [2025-04-07 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857793', 'tblTempVendorCDR_20' ) start [2025-04-07 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857793', 'tblTempVendorCDR_20' ) end [2025-04-07 22:04:19] Production.INFO: ProcessCDR(1,14857793,1,1,2) [2025-04-07 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857793', 'tblTempUsageDetail_20' ) start [2025-04-07 22:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857793', 'tblTempUsageDetail_20' ) end [2025-04-07 22:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:04:24] Production.INFO: ==30223== Releasing lock... [2025-04-07 22:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:04:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-07 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:05:05 [end_date_ymd] => 2025-04-07 22:05:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:05:05' and `end` < '2025-04-07 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-04-07 22:05:18] Production.INFO: count ==1511 [2025-04-07 22:05:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:05:05 - End Time 2025-04-07 22:05:05 [2025-04-07 22:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857798', 'tblTempUsageDetail_20' ) start [2025-04-07 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857798', 'tblTempUsageDetail_20' ) end [2025-04-07 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857798', 'tblTempVendorCDR_20' ) start [2025-04-07 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857798', 'tblTempVendorCDR_20' ) end [2025-04-07 22:05:19] Production.INFO: ProcessCDR(1,14857798,1,1,2) [2025-04-07 22:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857798', 'tblTempUsageDetail_20' ) start [2025-04-07 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857798', 'tblTempUsageDetail_20' ) end [2025-04-07 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:05:22] Production.INFO: ==30303== Releasing lock... [2025-04-07 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:05:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-07 22:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:06:06 [end_date_ymd] => 2025-04-07 22:06:06 [RateCDR] => 1 ) [2025-04-07 22:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 19:06:06' and `end` < '2025-04-07 22:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 22:06:19] Production.INFO: count ==1502 [2025-04-07 22:06:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:06:06 - End Time 2025-04-07 22:06:06 [2025-04-07 22:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857803', 'tblTempUsageDetail_20' ) start [2025-04-07 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857803', 'tblTempUsageDetail_20' ) end [2025-04-07 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857803', 'tblTempVendorCDR_20' ) start [2025-04-07 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857803', 'tblTempVendorCDR_20' ) end [2025-04-07 22:06:19] Production.INFO: ProcessCDR(1,14857803,1,1,2) [2025-04-07 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857803', 'tblTempUsageDetail_20' ) start [2025-04-07 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857803', 'tblTempUsageDetail_20' ) end [2025-04-07 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:06:22] Production.INFO: ==30382== Releasing lock... [2025-04-07 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:06:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-07 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:07:05 [end_date_ymd] => 2025-04-07 22:07:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:07:05' and `end` < '2025-04-07 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-04-07 22:07:18] Production.INFO: count ==1521 [2025-04-07 22:07:18] Production.ERROR: pbx CDR StartTime 2025-04-07 19:07:05 - End Time 2025-04-07 22:07:05 [2025-04-07 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857808', 'tblTempUsageDetail_20' ) start [2025-04-07 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857808', 'tblTempUsageDetail_20' ) end [2025-04-07 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857808', 'tblTempVendorCDR_20' ) start [2025-04-07 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857808', 'tblTempVendorCDR_20' ) end [2025-04-07 22:07:18] Production.INFO: ProcessCDR(1,14857808,1,1,2) [2025-04-07 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857808', 'tblTempUsageDetail_20' ) start [2025-04-07 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857808', 'tblTempUsageDetail_20' ) end [2025-04-07 22:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:07:23] Production.INFO: ==30453== Releasing lock... [2025-04-07 22:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:07:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-07 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:08:05 [end_date_ymd] => 2025-04-07 22:08:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:08:05' and `end` < '2025-04-07 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-04-07 22:08:18] Production.INFO: count ==1518 [2025-04-07 22:08:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:08:05 - End Time 2025-04-07 22:08:05 [2025-04-07 22:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857813', 'tblTempUsageDetail_20' ) start [2025-04-07 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857813', 'tblTempUsageDetail_20' ) end [2025-04-07 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857813', 'tblTempVendorCDR_20' ) start [2025-04-07 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857813', 'tblTempVendorCDR_20' ) end [2025-04-07 22:08:19] Production.INFO: ProcessCDR(1,14857813,1,1,2) [2025-04-07 22:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857813', 'tblTempUsageDetail_20' ) start [2025-04-07 22:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857813', 'tblTempUsageDetail_20' ) end [2025-04-07 22:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:08:24] Production.INFO: ==30526== Releasing lock... [2025-04-07 22:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:08:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-07 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:09:05 [end_date_ymd] => 2025-04-07 22:09:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:09:05' and `end` < '2025-04-07 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-04-07 22:09:18] Production.INFO: count ==1519 [2025-04-07 22:09:18] Production.ERROR: pbx CDR StartTime 2025-04-07 19:09:05 - End Time 2025-04-07 22:09:05 [2025-04-07 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857818', 'tblTempUsageDetail_20' ) start [2025-04-07 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857818', 'tblTempUsageDetail_20' ) end [2025-04-07 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857818', 'tblTempVendorCDR_20' ) start [2025-04-07 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857818', 'tblTempVendorCDR_20' ) end [2025-04-07 22:09:18] Production.INFO: ProcessCDR(1,14857818,1,1,2) [2025-04-07 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857818', 'tblTempUsageDetail_20' ) start [2025-04-07 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857818', 'tblTempUsageDetail_20' ) end [2025-04-07 22:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:09:23] Production.INFO: ==30598== Releasing lock... [2025-04-07 22:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:09:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-07 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:10:06 [end_date_ymd] => 2025-04-07 22:10:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:10:06' and `end` < '2025-04-07 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-04-07 22:10:18] Production.INFO: count ==1509 [2025-04-07 22:10:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:10:06 - End Time 2025-04-07 22:10:06 [2025-04-07 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857824', 'tblTempUsageDetail_20' ) start [2025-04-07 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857824', 'tblTempUsageDetail_20' ) end [2025-04-07 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857824', 'tblTempVendorCDR_20' ) start [2025-04-07 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857824', 'tblTempVendorCDR_20' ) end [2025-04-07 22:10:19] Production.INFO: ProcessCDR(1,14857824,1,1,2) [2025-04-07 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857824', 'tblTempUsageDetail_20' ) start [2025-04-07 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857824', 'tblTempUsageDetail_20' ) end [2025-04-07 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:10:22] Production.INFO: ==30672== Releasing lock... [2025-04-07 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:10:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-07 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:11:05 [end_date_ymd] => 2025-04-07 22:11:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:11:05' and `end` < '2025-04-07 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-04-07 22:11:18] Production.INFO: count ==1461 [2025-04-07 22:11:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:11:05 - End Time 2025-04-07 22:11:05 [2025-04-07 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857829', 'tblTempUsageDetail_20' ) start [2025-04-07 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857829', 'tblTempUsageDetail_20' ) end [2025-04-07 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857829', 'tblTempVendorCDR_20' ) start [2025-04-07 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857829', 'tblTempVendorCDR_20' ) end [2025-04-07 22:11:19] Production.INFO: ProcessCDR(1,14857829,1,1,2) [2025-04-07 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857829', 'tblTempUsageDetail_20' ) start [2025-04-07 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857829', 'tblTempUsageDetail_20' ) end [2025-04-07 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:11:22] Production.INFO: ==30745== Releasing lock... [2025-04-07 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:11:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-07 22:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:12:06 [end_date_ymd] => 2025-04-07 22:12:06 [RateCDR] => 1 ) [2025-04-07 22:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 19:12:06' and `end` < '2025-04-07 22:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 22:12:19] Production.INFO: count ==1453 [2025-04-07 22:12:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:12:06 - End Time 2025-04-07 22:12:06 [2025-04-07 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857834', 'tblTempUsageDetail_20' ) start [2025-04-07 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857834', 'tblTempUsageDetail_20' ) end [2025-04-07 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857834', 'tblTempVendorCDR_20' ) start [2025-04-07 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857834', 'tblTempVendorCDR_20' ) end [2025-04-07 22:12:19] Production.INFO: ProcessCDR(1,14857834,1,1,2) [2025-04-07 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857834', 'tblTempUsageDetail_20' ) start [2025-04-07 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857834', 'tblTempUsageDetail_20' ) end [2025-04-07 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:12:22] Production.INFO: ==30818== Releasing lock... [2025-04-07 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:12:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-07 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:13:05 [end_date_ymd] => 2025-04-07 22:13:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:13:05' and `end` < '2025-04-07 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-04-07 22:13:18] Production.INFO: count ==1450 [2025-04-07 22:13:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:13:05 - End Time 2025-04-07 22:13:05 [2025-04-07 22:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857839', 'tblTempUsageDetail_20' ) start [2025-04-07 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857839', 'tblTempUsageDetail_20' ) end [2025-04-07 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857839', 'tblTempVendorCDR_20' ) start [2025-04-07 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857839', 'tblTempVendorCDR_20' ) end [2025-04-07 22:13:19] Production.INFO: ProcessCDR(1,14857839,1,1,2) [2025-04-07 22:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857839', 'tblTempUsageDetail_20' ) start [2025-04-07 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857839', 'tblTempUsageDetail_20' ) end [2025-04-07 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:13:22] Production.INFO: ==30893== Releasing lock... [2025-04-07 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:13:22] Production.INFO: 39 MB #Memory Used# [2025-04-07 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:14:05 [end_date_ymd] => 2025-04-07 22:14:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:14:05' and `end` < '2025-04-07 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-04-07 22:14:18] Production.INFO: count ==1454 [2025-04-07 22:14:18] Production.ERROR: pbx CDR StartTime 2025-04-07 19:14:05 - End Time 2025-04-07 22:14:05 [2025-04-07 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857844', 'tblTempUsageDetail_20' ) start [2025-04-07 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857844', 'tblTempUsageDetail_20' ) end [2025-04-07 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857844', 'tblTempVendorCDR_20' ) start [2025-04-07 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857844', 'tblTempVendorCDR_20' ) end [2025-04-07 22:14:18] Production.INFO: ProcessCDR(1,14857844,1,1,2) [2025-04-07 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857844', 'tblTempUsageDetail_20' ) start [2025-04-07 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857844', 'tblTempUsageDetail_20' ) end [2025-04-07 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:14:22] Production.INFO: ==30964== Releasing lock... [2025-04-07 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:14:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-07 22:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:15:06 [end_date_ymd] => 2025-04-07 22:15:06 [RateCDR] => 1 ) [2025-04-07 22: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-04-07 19:15:06' and `end` < '2025-04-07 22: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-04-07 22:15:18] Production.INFO: count ==1452 [2025-04-07 22:15:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:15:06 - End Time 2025-04-07 22:15:06 [2025-04-07 22:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857849', 'tblTempUsageDetail_20' ) start [2025-04-07 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857849', 'tblTempUsageDetail_20' ) end [2025-04-07 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857849', 'tblTempVendorCDR_20' ) start [2025-04-07 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857849', 'tblTempVendorCDR_20' ) end [2025-04-07 22:15:19] Production.INFO: ProcessCDR(1,14857849,1,1,2) [2025-04-07 22:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857849', 'tblTempUsageDetail_20' ) start [2025-04-07 22:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857849', 'tblTempUsageDetail_20' ) end [2025-04-07 22:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:15:24] Production.INFO: ==31046== Releasing lock... [2025-04-07 22:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:15:24] Production.INFO: 39 MB #Memory Used# [2025-04-07 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:16:05 [end_date_ymd] => 2025-04-07 22:16:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:16:05' and `end` < '2025-04-07 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-04-07 22:16:18] Production.INFO: count ==1453 [2025-04-07 22:16:18] Production.ERROR: pbx CDR StartTime 2025-04-07 19:16:05 - End Time 2025-04-07 22:16:05 [2025-04-07 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857854', 'tblTempUsageDetail_20' ) start [2025-04-07 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857854', 'tblTempUsageDetail_20' ) end [2025-04-07 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857854', 'tblTempVendorCDR_20' ) start [2025-04-07 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857854', 'tblTempVendorCDR_20' ) end [2025-04-07 22:16:18] Production.INFO: ProcessCDR(1,14857854,1,1,2) [2025-04-07 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857854', 'tblTempUsageDetail_20' ) start [2025-04-07 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857854', 'tblTempUsageDetail_20' ) end [2025-04-07 22:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:16:21] Production.INFO: ==31117== Releasing lock... [2025-04-07 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:16:21] Production.INFO: 39 MB #Memory Used# [2025-04-07 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:17:05 [end_date_ymd] => 2025-04-07 22:17:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:17:05' and `end` < '2025-04-07 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-04-07 22:17:18] Production.INFO: count ==1456 [2025-04-07 22:17:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:17:05 - End Time 2025-04-07 22:17:05 [2025-04-07 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857859', 'tblTempUsageDetail_20' ) start [2025-04-07 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857859', 'tblTempUsageDetail_20' ) end [2025-04-07 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857859', 'tblTempVendorCDR_20' ) start [2025-04-07 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857859', 'tblTempVendorCDR_20' ) end [2025-04-07 22:17:19] Production.INFO: ProcessCDR(1,14857859,1,1,2) [2025-04-07 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857859', 'tblTempUsageDetail_20' ) start [2025-04-07 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857859', 'tblTempUsageDetail_20' ) end [2025-04-07 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:17:22] Production.INFO: ==31186== Releasing lock... [2025-04-07 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:17:22] Production.INFO: 39 MB #Memory Used# [2025-04-07 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:18:05 [end_date_ymd] => 2025-04-07 22:18:05 [RateCDR] => 1 ) [2025-04-07 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 19:18:05' and `end` < '2025-04-07 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 22:18:18] Production.INFO: count ==1447 [2025-04-07 22:18:18] Production.ERROR: pbx CDR StartTime 2025-04-07 19:18:05 - End Time 2025-04-07 22:18:05 [2025-04-07 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857864', 'tblTempUsageDetail_20' ) start [2025-04-07 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857864', 'tblTempUsageDetail_20' ) end [2025-04-07 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857864', 'tblTempVendorCDR_20' ) start [2025-04-07 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857864', 'tblTempVendorCDR_20' ) end [2025-04-07 22:18:18] Production.INFO: ProcessCDR(1,14857864,1,1,2) [2025-04-07 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857864', 'tblTempUsageDetail_20' ) start [2025-04-07 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857864', 'tblTempUsageDetail_20' ) end [2025-04-07 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:18:22] Production.INFO: ==31258== Releasing lock... [2025-04-07 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:18:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-07 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:19:05 [end_date_ymd] => 2025-04-07 22:19:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:19:05' and `end` < '2025-04-07 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-04-07 22:19:18] Production.INFO: count ==1438 [2025-04-07 22:19:18] Production.ERROR: pbx CDR StartTime 2025-04-07 19:19:05 - End Time 2025-04-07 22:19:05 [2025-04-07 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857869', 'tblTempUsageDetail_20' ) start [2025-04-07 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857869', 'tblTempUsageDetail_20' ) end [2025-04-07 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857869', 'tblTempVendorCDR_20' ) start [2025-04-07 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857869', 'tblTempVendorCDR_20' ) end [2025-04-07 22:19:18] Production.INFO: ProcessCDR(1,14857869,1,1,2) [2025-04-07 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857869', 'tblTempUsageDetail_20' ) start [2025-04-07 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857869', 'tblTempUsageDetail_20' ) end [2025-04-07 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:19:22] Production.INFO: ==31370== Releasing lock... [2025-04-07 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:19:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-07 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:20:05 [end_date_ymd] => 2025-04-07 22:20:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:20:05' and `end` < '2025-04-07 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-04-07 22:20:18] Production.INFO: count ==1435 [2025-04-07 22:20:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:20:05 - End Time 2025-04-07 22:20:05 [2025-04-07 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857875', 'tblTempUsageDetail_20' ) start [2025-04-07 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857875', 'tblTempUsageDetail_20' ) end [2025-04-07 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857875', 'tblTempVendorCDR_20' ) start [2025-04-07 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857875', 'tblTempVendorCDR_20' ) end [2025-04-07 22:20:19] Production.INFO: ProcessCDR(1,14857875,1,1,2) [2025-04-07 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857875', 'tblTempUsageDetail_20' ) start [2025-04-07 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857875', 'tblTempUsageDetail_20' ) end [2025-04-07 22:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:20:23] Production.INFO: ==31442== Releasing lock... [2025-04-07 22:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:20:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-07 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:21:05 [end_date_ymd] => 2025-04-07 22:21:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:21:05' and `end` < '2025-04-07 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-04-07 22:21:18] Production.INFO: count ==1375 [2025-04-07 22:21:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:21:05 - End Time 2025-04-07 22:21:05 [2025-04-07 22:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857880', 'tblTempUsageDetail_20' ) start [2025-04-07 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857880', 'tblTempUsageDetail_20' ) end [2025-04-07 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857880', 'tblTempVendorCDR_20' ) start [2025-04-07 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857880', 'tblTempVendorCDR_20' ) end [2025-04-07 22:21:19] Production.INFO: ProcessCDR(1,14857880,1,1,2) [2025-04-07 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857880', 'tblTempUsageDetail_20' ) start [2025-04-07 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857880', 'tblTempUsageDetail_20' ) end [2025-04-07 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:21:22] Production.INFO: ==31515== Releasing lock... [2025-04-07 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:21:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-07 22:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:22:06 [end_date_ymd] => 2025-04-07 22:22:06 [RateCDR] => 1 ) [2025-04-07 22: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-04-07 19:22:06' and `end` < '2025-04-07 22: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-04-07 22:22:19] Production.INFO: count ==1368 [2025-04-07 22:22:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:22:06 - End Time 2025-04-07 22:22:06 [2025-04-07 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857885', 'tblTempUsageDetail_20' ) start [2025-04-07 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857885', 'tblTempUsageDetail_20' ) end [2025-04-07 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857885', 'tblTempVendorCDR_20' ) start [2025-04-07 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857885', 'tblTempVendorCDR_20' ) end [2025-04-07 22:22:19] Production.INFO: ProcessCDR(1,14857885,1,1,2) [2025-04-07 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857885', 'tblTempUsageDetail_20' ) start [2025-04-07 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857885', 'tblTempUsageDetail_20' ) end [2025-04-07 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:22:22] Production.INFO: ==31587== Releasing lock... [2025-04-07 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:22:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-07 22:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:23:06 [end_date_ymd] => 2025-04-07 22:23:06 [RateCDR] => 1 ) [2025-04-07 22: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-04-07 19:23:06' and `end` < '2025-04-07 22: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-04-07 22:23:18] Production.INFO: count ==1361 [2025-04-07 22:23:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:23:06 - End Time 2025-04-07 22:23:06 [2025-04-07 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857890', 'tblTempUsageDetail_20' ) start [2025-04-07 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857890', 'tblTempUsageDetail_20' ) end [2025-04-07 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857890', 'tblTempVendorCDR_20' ) start [2025-04-07 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857890', 'tblTempVendorCDR_20' ) end [2025-04-07 22:23:19] Production.INFO: ProcessCDR(1,14857890,1,1,2) [2025-04-07 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857890', 'tblTempUsageDetail_20' ) start [2025-04-07 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857890', 'tblTempUsageDetail_20' ) end [2025-04-07 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:23:22] Production.INFO: ==31658== Releasing lock... [2025-04-07 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:23:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-07 22:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:24:06 [end_date_ymd] => 2025-04-07 22:24:06 [RateCDR] => 1 ) [2025-04-07 22:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 19:24:06' and `end` < '2025-04-07 22:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 22:24:19] Production.INFO: count ==1355 [2025-04-07 22:24:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:24:06 - End Time 2025-04-07 22:24:06 [2025-04-07 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857895', 'tblTempUsageDetail_20' ) start [2025-04-07 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857895', 'tblTempUsageDetail_20' ) end [2025-04-07 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857895', 'tblTempVendorCDR_20' ) start [2025-04-07 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857895', 'tblTempVendorCDR_20' ) end [2025-04-07 22:24:19] Production.INFO: ProcessCDR(1,14857895,1,1,2) [2025-04-07 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857895', 'tblTempUsageDetail_20' ) start [2025-04-07 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857895', 'tblTempUsageDetail_20' ) end [2025-04-07 22:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:24:23] Production.INFO: ==31728== Releasing lock... [2025-04-07 22:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:24:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-07 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:25:05 [end_date_ymd] => 2025-04-07 22:25:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:25:05' and `end` < '2025-04-07 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-04-07 22:25:18] Production.INFO: count ==1349 [2025-04-07 22:25:18] Production.ERROR: pbx CDR StartTime 2025-04-07 19:25:05 - End Time 2025-04-07 22:25:05 [2025-04-07 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857900', 'tblTempUsageDetail_20' ) start [2025-04-07 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857900', 'tblTempUsageDetail_20' ) end [2025-04-07 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857900', 'tblTempVendorCDR_20' ) start [2025-04-07 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857900', 'tblTempVendorCDR_20' ) end [2025-04-07 22:25:19] Production.INFO: ProcessCDR(1,14857900,1,1,2) [2025-04-07 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857900', 'tblTempUsageDetail_20' ) start [2025-04-07 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857900', 'tblTempUsageDetail_20' ) end [2025-04-07 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:25:22] Production.INFO: ==31799== Releasing lock... [2025-04-07 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:25:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-07 22:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:26:06 [end_date_ymd] => 2025-04-07 22:26:06 [RateCDR] => 1 ) [2025-04-07 22: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-04-07 19:26:06' and `end` < '2025-04-07 22: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-04-07 22:26:19] Production.INFO: count ==1342 [2025-04-07 22:26:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:26:06 - End Time 2025-04-07 22:26:06 [2025-04-07 22:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857905', 'tblTempUsageDetail_20' ) start [2025-04-07 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857905', 'tblTempUsageDetail_20' ) end [2025-04-07 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857905', 'tblTempVendorCDR_20' ) start [2025-04-07 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857905', 'tblTempVendorCDR_20' ) end [2025-04-07 22:26:19] Production.INFO: ProcessCDR(1,14857905,1,1,2) [2025-04-07 22:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857905', 'tblTempUsageDetail_20' ) start [2025-04-07 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857905', 'tblTempUsageDetail_20' ) end [2025-04-07 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:26:22] Production.INFO: ==31871== Releasing lock... [2025-04-07 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:26:22] Production.INFO: 38 MB #Memory Used# [2025-04-07 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:27:05 [end_date_ymd] => 2025-04-07 22:27:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:27:05' and `end` < '2025-04-07 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-04-07 22:27:18] Production.INFO: count ==1336 [2025-04-07 22:27:18] Production.ERROR: pbx CDR StartTime 2025-04-07 19:27:05 - End Time 2025-04-07 22:27:05 [2025-04-07 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857910', 'tblTempUsageDetail_20' ) start [2025-04-07 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857910', 'tblTempUsageDetail_20' ) end [2025-04-07 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857910', 'tblTempVendorCDR_20' ) start [2025-04-07 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857910', 'tblTempVendorCDR_20' ) end [2025-04-07 22:27:18] Production.INFO: ProcessCDR(1,14857910,1,1,2) [2025-04-07 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857910', 'tblTempUsageDetail_20' ) start [2025-04-07 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857910', 'tblTempUsageDetail_20' ) end [2025-04-07 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:27:22] Production.INFO: ==31941== Releasing lock... [2025-04-07 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:27:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-07 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:28:05 [end_date_ymd] => 2025-04-07 22:28:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:28:05' and `end` < '2025-04-07 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-04-07 22:28:18] Production.INFO: count ==1327 [2025-04-07 22:28:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:28:05 - End Time 2025-04-07 22:28:05 [2025-04-07 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857915', 'tblTempUsageDetail_20' ) start [2025-04-07 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857915', 'tblTempUsageDetail_20' ) end [2025-04-07 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857915', 'tblTempVendorCDR_20' ) start [2025-04-07 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857915', 'tblTempVendorCDR_20' ) end [2025-04-07 22:28:19] Production.INFO: ProcessCDR(1,14857915,1,1,2) [2025-04-07 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857915', 'tblTempUsageDetail_20' ) start [2025-04-07 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857915', 'tblTempUsageDetail_20' ) end [2025-04-07 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:28:22] Production.INFO: ==32014== Releasing lock... [2025-04-07 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:28:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-07 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:29:05 [end_date_ymd] => 2025-04-07 22:29:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:29:05' and `end` < '2025-04-07 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-04-07 22:29:18] Production.INFO: count ==1311 [2025-04-07 22:29:18] Production.ERROR: pbx CDR StartTime 2025-04-07 19:29:05 - End Time 2025-04-07 22:29:05 [2025-04-07 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857920', 'tblTempUsageDetail_20' ) start [2025-04-07 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857920', 'tblTempUsageDetail_20' ) end [2025-04-07 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857920', 'tblTempVendorCDR_20' ) start [2025-04-07 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857920', 'tblTempVendorCDR_20' ) end [2025-04-07 22:29:19] Production.INFO: ProcessCDR(1,14857920,1,1,2) [2025-04-07 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857920', 'tblTempUsageDetail_20' ) start [2025-04-07 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857920', 'tblTempUsageDetail_20' ) end [2025-04-07 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:29:22] Production.INFO: ==32099== Releasing lock... [2025-04-07 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:29:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-07 22:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:30:07 [end_date_ymd] => 2025-04-07 22:30:07 [RateCDR] => 1 ) [2025-04-07 22:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 19:30:07' and `end` < '2025-04-07 22:30: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-04-07 22:30:19] Production.INFO: count ==1294 [2025-04-07 22:30:20] Production.ERROR: pbx CDR StartTime 2025-04-07 19:30:07 - End Time 2025-04-07 22:30:07 [2025-04-07 22:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857926', 'tblTempUsageDetail_20' ) start [2025-04-07 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857926', 'tblTempUsageDetail_20' ) end [2025-04-07 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857926', 'tblTempVendorCDR_20' ) start [2025-04-07 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857926', 'tblTempVendorCDR_20' ) end [2025-04-07 22:30:20] Production.INFO: ProcessCDR(1,14857926,1,1,2) [2025-04-07 22:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857926', 'tblTempUsageDetail_20' ) start [2025-04-07 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857926', 'tblTempUsageDetail_20' ) end [2025-04-07 22:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:30:23] Production.INFO: ==32201== Releasing lock... [2025-04-07 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:30:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-07 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:31:05 [end_date_ymd] => 2025-04-07 22:31:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:31:05' and `end` < '2025-04-07 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-04-07 22:31:18] Production.INFO: count ==1239 [2025-04-07 22:31:18] Production.ERROR: pbx CDR StartTime 2025-04-07 19:31:05 - End Time 2025-04-07 22:31:05 [2025-04-07 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857931', 'tblTempUsageDetail_20' ) start [2025-04-07 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857931', 'tblTempUsageDetail_20' ) end [2025-04-07 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857931', 'tblTempVendorCDR_20' ) start [2025-04-07 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857931', 'tblTempVendorCDR_20' ) end [2025-04-07 22:31:18] Production.INFO: ProcessCDR(1,14857931,1,1,2) [2025-04-07 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857931', 'tblTempUsageDetail_20' ) start [2025-04-07 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857931', 'tblTempUsageDetail_20' ) end [2025-04-07 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:31:22] Production.INFO: ==32294== Releasing lock... [2025-04-07 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:31:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-07 22:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:32:06 [end_date_ymd] => 2025-04-07 22:32:06 [RateCDR] => 1 ) [2025-04-07 22:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 19:32:06' and `end` < '2025-04-07 22:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 22:32:19] Production.INFO: count ==1237 [2025-04-07 22:32:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:32:06 - End Time 2025-04-07 22:32:06 [2025-04-07 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857936', 'tblTempUsageDetail_20' ) start [2025-04-07 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857936', 'tblTempUsageDetail_20' ) end [2025-04-07 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857936', 'tblTempVendorCDR_20' ) start [2025-04-07 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857936', 'tblTempVendorCDR_20' ) end [2025-04-07 22:32:19] Production.INFO: ProcessCDR(1,14857936,1,1,2) [2025-04-07 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857936', 'tblTempUsageDetail_20' ) start [2025-04-07 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857936', 'tblTempUsageDetail_20' ) end [2025-04-07 22:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:32:23] Production.INFO: ==32379== Releasing lock... [2025-04-07 22:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:32:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-07 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:33:05 [end_date_ymd] => 2025-04-07 22:33:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:33:05' and `end` < '2025-04-07 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-04-07 22:33:18] Production.INFO: count ==1237 [2025-04-07 22:33:18] Production.ERROR: pbx CDR StartTime 2025-04-07 19:33:05 - End Time 2025-04-07 22:33:05 [2025-04-07 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857941', 'tblTempUsageDetail_20' ) start [2025-04-07 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857941', 'tblTempUsageDetail_20' ) end [2025-04-07 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857941', 'tblTempVendorCDR_20' ) start [2025-04-07 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857941', 'tblTempVendorCDR_20' ) end [2025-04-07 22:33:18] Production.INFO: ProcessCDR(1,14857941,1,1,2) [2025-04-07 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857941', 'tblTempUsageDetail_20' ) start [2025-04-07 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857941', 'tblTempUsageDetail_20' ) end [2025-04-07 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:33:21] Production.INFO: ==32469== Releasing lock... [2025-04-07 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:33:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-07 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:34:05 [end_date_ymd] => 2025-04-07 22:34:05 [RateCDR] => 1 ) [2025-04-07 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 19:34:05' and `end` < '2025-04-07 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 22:34:18] Production.INFO: count ==1235 [2025-04-07 22:34:18] Production.ERROR: pbx CDR StartTime 2025-04-07 19:34:05 - End Time 2025-04-07 22:34:05 [2025-04-07 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857946', 'tblTempUsageDetail_20' ) start [2025-04-07 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857946', 'tblTempUsageDetail_20' ) end [2025-04-07 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857946', 'tblTempVendorCDR_20' ) start [2025-04-07 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857946', 'tblTempVendorCDR_20' ) end [2025-04-07 22:34:18] Production.INFO: ProcessCDR(1,14857946,1,1,2) [2025-04-07 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857946', 'tblTempUsageDetail_20' ) start [2025-04-07 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857946', 'tblTempUsageDetail_20' ) end [2025-04-07 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:34:22] Production.INFO: ==32606== Releasing lock... [2025-04-07 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:34:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-07 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:35:05 [end_date_ymd] => 2025-04-07 22:35:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:35:05' and `end` < '2025-04-07 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-04-07 22:35:18] Production.INFO: count ==1235 [2025-04-07 22:35:18] Production.ERROR: pbx CDR StartTime 2025-04-07 19:35:05 - End Time 2025-04-07 22:35:05 [2025-04-07 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857951', 'tblTempUsageDetail_20' ) start [2025-04-07 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857951', 'tblTempUsageDetail_20' ) end [2025-04-07 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857951', 'tblTempVendorCDR_20' ) start [2025-04-07 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857951', 'tblTempVendorCDR_20' ) end [2025-04-07 22:35:18] Production.INFO: ProcessCDR(1,14857951,1,1,2) [2025-04-07 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857951', 'tblTempUsageDetail_20' ) start [2025-04-07 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857951', 'tblTempUsageDetail_20' ) end [2025-04-07 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:35:22] Production.INFO: ==32696== Releasing lock... [2025-04-07 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:35:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-07 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:36:05 [end_date_ymd] => 2025-04-07 22:36:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:36:05' and `end` < '2025-04-07 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-04-07 22:36:18] Production.INFO: count ==1225 [2025-04-07 22:36:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:36:05 - End Time 2025-04-07 22:36:05 [2025-04-07 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857956', 'tblTempUsageDetail_20' ) start [2025-04-07 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857956', 'tblTempUsageDetail_20' ) end [2025-04-07 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857956', 'tblTempVendorCDR_20' ) start [2025-04-07 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857956', 'tblTempVendorCDR_20' ) end [2025-04-07 22:36:19] Production.INFO: ProcessCDR(1,14857956,1,1,2) [2025-04-07 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857956', 'tblTempUsageDetail_20' ) start [2025-04-07 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857956', 'tblTempUsageDetail_20' ) end [2025-04-07 22:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:36:23] Production.INFO: ==326== Releasing lock... [2025-04-07 22:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:36:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-07 22:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:37:06 [end_date_ymd] => 2025-04-07 22:37:06 [RateCDR] => 1 ) [2025-04-07 22: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-04-07 19:37:06' and `end` < '2025-04-07 22: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-04-07 22:37:19] Production.INFO: count ==1217 [2025-04-07 22:37:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:37:06 - End Time 2025-04-07 22:37:06 [2025-04-07 22:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857961', 'tblTempUsageDetail_20' ) start [2025-04-07 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857961', 'tblTempUsageDetail_20' ) end [2025-04-07 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857961', 'tblTempVendorCDR_20' ) start [2025-04-07 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857961', 'tblTempVendorCDR_20' ) end [2025-04-07 22:37:19] Production.INFO: ProcessCDR(1,14857961,1,1,2) [2025-04-07 22:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857961', 'tblTempUsageDetail_20' ) start [2025-04-07 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857961', 'tblTempUsageDetail_20' ) end [2025-04-07 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:37:22] Production.INFO: ==428== Releasing lock... [2025-04-07 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:37:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-07 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:38:05 [end_date_ymd] => 2025-04-07 22:38:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:38:05' and `end` < '2025-04-07 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-04-07 22:38:18] Production.INFO: count ==1213 [2025-04-07 22:38:18] Production.ERROR: pbx CDR StartTime 2025-04-07 19:38:05 - End Time 2025-04-07 22:38:05 [2025-04-07 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857966', 'tblTempUsageDetail_20' ) start [2025-04-07 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857966', 'tblTempUsageDetail_20' ) end [2025-04-07 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857966', 'tblTempVendorCDR_20' ) start [2025-04-07 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857966', 'tblTempVendorCDR_20' ) end [2025-04-07 22:38:19] Production.INFO: ProcessCDR(1,14857966,1,1,2) [2025-04-07 22:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857966', 'tblTempUsageDetail_20' ) start [2025-04-07 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857966', 'tblTempUsageDetail_20' ) end [2025-04-07 22:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:38:22] Production.INFO: ==527== Releasing lock... [2025-04-07 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:38:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-07 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:39:05 [end_date_ymd] => 2025-04-07 22:39:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:39:05' and `end` < '2025-04-07 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-04-07 22:39:18] Production.INFO: count ==1212 [2025-04-07 22:39:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:39:05 - End Time 2025-04-07 22:39:05 [2025-04-07 22:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857971', 'tblTempUsageDetail_20' ) start [2025-04-07 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857971', 'tblTempUsageDetail_20' ) end [2025-04-07 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857971', 'tblTempVendorCDR_20' ) start [2025-04-07 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857971', 'tblTempVendorCDR_20' ) end [2025-04-07 22:39:19] Production.INFO: ProcessCDR(1,14857971,1,1,2) [2025-04-07 22:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857971', 'tblTempUsageDetail_20' ) start [2025-04-07 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857971', 'tblTempUsageDetail_20' ) end [2025-04-07 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:39:22] Production.INFO: ==622== Releasing lock... [2025-04-07 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:39:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-07 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:40:06 [end_date_ymd] => 2025-04-07 22:40:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:40:06' and `end` < '2025-04-07 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-04-07 22:40:18] Production.INFO: count ==1182 [2025-04-07 22:40:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:40:06 - End Time 2025-04-07 22:40:06 [2025-04-07 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857976', 'tblTempUsageDetail_20' ) start [2025-04-07 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857976', 'tblTempUsageDetail_20' ) end [2025-04-07 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857976', 'tblTempVendorCDR_20' ) start [2025-04-07 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857976', 'tblTempVendorCDR_20' ) end [2025-04-07 22:40:19] Production.INFO: ProcessCDR(1,14857976,1,1,2) [2025-04-07 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857976', 'tblTempUsageDetail_20' ) start [2025-04-07 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857976', 'tblTempUsageDetail_20' ) end [2025-04-07 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:40:22] Production.INFO: ==740== Releasing lock... [2025-04-07 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:40:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-07 22:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:41:06 [end_date_ymd] => 2025-04-07 22:41:06 [RateCDR] => 1 ) [2025-04-07 22: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-04-07 19:41:06' and `end` < '2025-04-07 22: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-04-07 22:41:18] Production.INFO: count ==1124 [2025-04-07 22:41:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:41:06 - End Time 2025-04-07 22:41:06 [2025-04-07 22:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857982', 'tblTempUsageDetail_20' ) start [2025-04-07 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857982', 'tblTempUsageDetail_20' ) end [2025-04-07 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857982', 'tblTempVendorCDR_20' ) start [2025-04-07 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857982', 'tblTempVendorCDR_20' ) end [2025-04-07 22:41:19] Production.INFO: ProcessCDR(1,14857982,1,1,2) [2025-04-07 22:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857982', 'tblTempUsageDetail_20' ) start [2025-04-07 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857982', 'tblTempUsageDetail_20' ) end [2025-04-07 22:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:41:22] Production.INFO: ==835== Releasing lock... [2025-04-07 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:41:22] Production.INFO: 37 MB #Memory Used# [2025-04-07 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:42:05 [end_date_ymd] => 2025-04-07 22:42:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:42:05' and `end` < '2025-04-07 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-04-07 22:42:18] Production.INFO: count ==1124 [2025-04-07 22:42:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:42:05 - End Time 2025-04-07 22:42:05 [2025-04-07 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857987', 'tblTempUsageDetail_20' ) start [2025-04-07 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857987', 'tblTempUsageDetail_20' ) end [2025-04-07 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857987', 'tblTempVendorCDR_20' ) start [2025-04-07 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857987', 'tblTempVendorCDR_20' ) end [2025-04-07 22:42:19] Production.INFO: ProcessCDR(1,14857987,1,1,2) [2025-04-07 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857987', 'tblTempUsageDetail_20' ) start [2025-04-07 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857987', 'tblTempUsageDetail_20' ) end [2025-04-07 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:42:22] Production.INFO: ==925== Releasing lock... [2025-04-07 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:42:22] Production.INFO: 37 MB #Memory Used# [2025-04-07 22:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:43:06 [end_date_ymd] => 2025-04-07 22:43:06 [RateCDR] => 1 ) [2025-04-07 22: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-04-07 19:43:06' and `end` < '2025-04-07 22: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-04-07 22:43:18] Production.INFO: count ==1124 [2025-04-07 22:43:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:43:06 - End Time 2025-04-07 22:43:06 [2025-04-07 22:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857992', 'tblTempUsageDetail_20' ) start [2025-04-07 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857992', 'tblTempUsageDetail_20' ) end [2025-04-07 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857992', 'tblTempVendorCDR_20' ) start [2025-04-07 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857992', 'tblTempVendorCDR_20' ) end [2025-04-07 22:43:19] Production.INFO: ProcessCDR(1,14857992,1,1,2) [2025-04-07 22:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857992', 'tblTempUsageDetail_20' ) start [2025-04-07 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857992', 'tblTempUsageDetail_20' ) end [2025-04-07 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:43:22] Production.INFO: ==1016== Releasing lock... [2025-04-07 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:43:22] Production.INFO: 37 MB #Memory Used# [2025-04-07 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:44:05 [end_date_ymd] => 2025-04-07 22:44:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:44:05' and `end` < '2025-04-07 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-04-07 22:44:18] Production.INFO: count ==1122 [2025-04-07 22:44:18] Production.ERROR: pbx CDR StartTime 2025-04-07 19:44:05 - End Time 2025-04-07 22:44:05 [2025-04-07 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857997', 'tblTempUsageDetail_20' ) start [2025-04-07 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14857997', 'tblTempUsageDetail_20' ) end [2025-04-07 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857997', 'tblTempVendorCDR_20' ) start [2025-04-07 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14857997', 'tblTempVendorCDR_20' ) end [2025-04-07 22:44:18] Production.INFO: ProcessCDR(1,14857997,1,1,2) [2025-04-07 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14857997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14857997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14857997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14857997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857997', 'tblTempUsageDetail_20' ) start [2025-04-07 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14857997', 'tblTempUsageDetail_20' ) end [2025-04-07 22:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:44:23] Production.INFO: ==1110== Releasing lock... [2025-04-07 22:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:44:23] Production.INFO: 37 MB #Memory Used# [2025-04-07 22:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:45:06 [end_date_ymd] => 2025-04-07 22:45:06 [RateCDR] => 1 ) [2025-04-07 22:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 19:45:06' and `end` < '2025-04-07 22:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 22:45:19] Production.INFO: count ==1107 [2025-04-07 22:45:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:45:06 - End Time 2025-04-07 22:45:06 [2025-04-07 22:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858002', 'tblTempUsageDetail_20' ) start [2025-04-07 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858002', 'tblTempUsageDetail_20' ) end [2025-04-07 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858002', 'tblTempVendorCDR_20' ) start [2025-04-07 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858002', 'tblTempVendorCDR_20' ) end [2025-04-07 22:45:19] Production.INFO: ProcessCDR(1,14858002,1,1,2) [2025-04-07 22:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858002', 'tblTempUsageDetail_20' ) start [2025-04-07 22:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858002', 'tblTempUsageDetail_20' ) end [2025-04-07 22:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:45:23] Production.INFO: ==1208== Releasing lock... [2025-04-07 22:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:45:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-07 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:46:05 [end_date_ymd] => 2025-04-07 22:46:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:46:05' and `end` < '2025-04-07 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-04-07 22:46:18] Production.INFO: count ==1104 [2025-04-07 22:46:18] Production.ERROR: pbx CDR StartTime 2025-04-07 19:46:05 - End Time 2025-04-07 22:46:05 [2025-04-07 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858007', 'tblTempUsageDetail_20' ) start [2025-04-07 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858007', 'tblTempUsageDetail_20' ) end [2025-04-07 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858007', 'tblTempVendorCDR_20' ) start [2025-04-07 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858007', 'tblTempVendorCDR_20' ) end [2025-04-07 22:46:18] Production.INFO: ProcessCDR(1,14858007,1,1,2) [2025-04-07 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858007', 'tblTempUsageDetail_20' ) start [2025-04-07 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858007', 'tblTempUsageDetail_20' ) end [2025-04-07 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:46:22] Production.INFO: ==1310== Releasing lock... [2025-04-07 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:46:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-07 22:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:47:06 [end_date_ymd] => 2025-04-07 22:47:06 [RateCDR] => 1 ) [2025-04-07 22: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-04-07 19:47:06' and `end` < '2025-04-07 22: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-04-07 22:47:19] Production.INFO: count ==1105 [2025-04-07 22:47:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:47:06 - End Time 2025-04-07 22:47:06 [2025-04-07 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858012', 'tblTempUsageDetail_20' ) start [2025-04-07 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858012', 'tblTempUsageDetail_20' ) end [2025-04-07 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858012', 'tblTempVendorCDR_20' ) start [2025-04-07 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858012', 'tblTempVendorCDR_20' ) end [2025-04-07 22:47:19] Production.INFO: ProcessCDR(1,14858012,1,1,2) [2025-04-07 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858012', 'tblTempUsageDetail_20' ) start [2025-04-07 22:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858012', 'tblTempUsageDetail_20' ) end [2025-04-07 22:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:47:23] Production.INFO: ==1398== Releasing lock... [2025-04-07 22:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:47:23] Production.INFO: 37 MB #Memory Used# [2025-04-07 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:48:05 [end_date_ymd] => 2025-04-07 22:48:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:48:05' and `end` < '2025-04-07 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-04-07 22:48:18] Production.INFO: count ==1098 [2025-04-07 22:48:18] Production.ERROR: pbx CDR StartTime 2025-04-07 19:48:05 - End Time 2025-04-07 22:48:05 [2025-04-07 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858017', 'tblTempUsageDetail_20' ) start [2025-04-07 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858017', 'tblTempUsageDetail_20' ) end [2025-04-07 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858017', 'tblTempVendorCDR_20' ) start [2025-04-07 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858017', 'tblTempVendorCDR_20' ) end [2025-04-07 22:48:18] Production.INFO: ProcessCDR(1,14858017,1,1,2) [2025-04-07 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858017', 'tblTempUsageDetail_20' ) start [2025-04-07 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858017', 'tblTempUsageDetail_20' ) end [2025-04-07 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:48:21] Production.INFO: ==1490== Releasing lock... [2025-04-07 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:48:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-07 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:49:05 [end_date_ymd] => 2025-04-07 22:49:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:49:05' and `end` < '2025-04-07 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-04-07 22:49:18] Production.INFO: count ==1096 [2025-04-07 22:49:18] Production.ERROR: pbx CDR StartTime 2025-04-07 19:49:05 - End Time 2025-04-07 22:49:05 [2025-04-07 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858022', 'tblTempUsageDetail_20' ) start [2025-04-07 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858022', 'tblTempUsageDetail_20' ) end [2025-04-07 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858022', 'tblTempVendorCDR_20' ) start [2025-04-07 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858022', 'tblTempVendorCDR_20' ) end [2025-04-07 22:49:18] Production.INFO: ProcessCDR(1,14858022,1,1,2) [2025-04-07 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858022', 'tblTempUsageDetail_20' ) start [2025-04-07 22:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858022', 'tblTempUsageDetail_20' ) end [2025-04-07 22:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:49:23] Production.INFO: ==1655== Releasing lock... [2025-04-07 22:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:49:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-07 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:50:06 [end_date_ymd] => 2025-04-07 22:50:06 [RateCDR] => 1 ) [2025-04-07 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 19:50:06' and `end` < '2025-04-07 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 22:50:19] Production.INFO: count ==1091 [2025-04-07 22:50:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:50:06 - End Time 2025-04-07 22:50:06 [2025-04-07 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858028', 'tblTempUsageDetail_20' ) start [2025-04-07 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858028', 'tblTempUsageDetail_20' ) end [2025-04-07 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858028', 'tblTempVendorCDR_20' ) start [2025-04-07 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858028', 'tblTempVendorCDR_20' ) end [2025-04-07 22:50:19] Production.INFO: ProcessCDR(1,14858028,1,1,2) [2025-04-07 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858028', 'tblTempUsageDetail_20' ) start [2025-04-07 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858028', 'tblTempUsageDetail_20' ) end [2025-04-07 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:50:22] Production.INFO: ==1749== Releasing lock... [2025-04-07 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:50:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-07 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:51:05 [end_date_ymd] => 2025-04-07 22:51:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:51:05' and `end` < '2025-04-07 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-04-07 22:51:18] Production.INFO: count ==1078 [2025-04-07 22:51:18] Production.ERROR: pbx CDR StartTime 2025-04-07 19:51:05 - End Time 2025-04-07 22:51:05 [2025-04-07 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858033', 'tblTempUsageDetail_20' ) start [2025-04-07 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858033', 'tblTempUsageDetail_20' ) end [2025-04-07 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858033', 'tblTempVendorCDR_20' ) start [2025-04-07 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858033', 'tblTempVendorCDR_20' ) end [2025-04-07 22:51:18] Production.INFO: ProcessCDR(1,14858033,1,1,2) [2025-04-07 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858033', 'tblTempUsageDetail_20' ) start [2025-04-07 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858033', 'tblTempUsageDetail_20' ) end [2025-04-07 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:51:21] Production.INFO: ==1846== Releasing lock... [2025-04-07 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:51:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-07 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:52:05 [end_date_ymd] => 2025-04-07 22:52:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:52:05' and `end` < '2025-04-07 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-04-07 22:52:18] Production.INFO: count ==1075 [2025-04-07 22:52:18] Production.ERROR: pbx CDR StartTime 2025-04-07 19:52:05 - End Time 2025-04-07 22:52:05 [2025-04-07 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858038', 'tblTempUsageDetail_20' ) start [2025-04-07 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858038', 'tblTempUsageDetail_20' ) end [2025-04-07 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858038', 'tblTempVendorCDR_20' ) start [2025-04-07 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858038', 'tblTempVendorCDR_20' ) end [2025-04-07 22:52:18] Production.INFO: ProcessCDR(1,14858038,1,1,2) [2025-04-07 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858038', 'tblTempUsageDetail_20' ) start [2025-04-07 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858038', 'tblTempUsageDetail_20' ) end [2025-04-07 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:52:22] Production.INFO: ==1938== Releasing lock... [2025-04-07 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:52:22] Production.INFO: 36 MB #Memory Used# [2025-04-07 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:53:05 [end_date_ymd] => 2025-04-07 22:53:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:53:05' and `end` < '2025-04-07 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-04-07 22:53:18] Production.INFO: count ==1078 [2025-04-07 22:53:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:53:05 - End Time 2025-04-07 22:53:05 [2025-04-07 22:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858043', 'tblTempUsageDetail_20' ) start [2025-04-07 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858043', 'tblTempUsageDetail_20' ) end [2025-04-07 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858043', 'tblTempVendorCDR_20' ) start [2025-04-07 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858043', 'tblTempVendorCDR_20' ) end [2025-04-07 22:53:19] Production.INFO: ProcessCDR(1,14858043,1,1,2) [2025-04-07 22:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858043', 'tblTempUsageDetail_20' ) start [2025-04-07 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858043', 'tblTempUsageDetail_20' ) end [2025-04-07 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:53:22] Production.INFO: ==2030== Releasing lock... [2025-04-07 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:53:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-07 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:54:05 [end_date_ymd] => 2025-04-07 22:54:05 [RateCDR] => 1 ) [2025-04-07 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 19:54:05' and `end` < '2025-04-07 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 22:54:18] Production.INFO: count ==1076 [2025-04-07 22:54:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:54:05 - End Time 2025-04-07 22:54:05 [2025-04-07 22:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858048', 'tblTempUsageDetail_20' ) start [2025-04-07 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858048', 'tblTempUsageDetail_20' ) end [2025-04-07 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858048', 'tblTempVendorCDR_20' ) start [2025-04-07 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858048', 'tblTempVendorCDR_20' ) end [2025-04-07 22:54:19] Production.INFO: ProcessCDR(1,14858048,1,1,2) [2025-04-07 22:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858048', 'tblTempUsageDetail_20' ) start [2025-04-07 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858048', 'tblTempUsageDetail_20' ) end [2025-04-07 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:54:22] Production.INFO: ==2133== Releasing lock... [2025-04-07 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:54:22] Production.INFO: 36 MB #Memory Used# [2025-04-07 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:55:05 [end_date_ymd] => 2025-04-07 22:55:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:55:05' and `end` < '2025-04-07 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-04-07 22:55:18] Production.INFO: count ==1071 [2025-04-07 22:55:18] Production.ERROR: pbx CDR StartTime 2025-04-07 19:55:05 - End Time 2025-04-07 22:55:05 [2025-04-07 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858053', 'tblTempUsageDetail_20' ) start [2025-04-07 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858053', 'tblTempUsageDetail_20' ) end [2025-04-07 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858053', 'tblTempVendorCDR_20' ) start [2025-04-07 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858053', 'tblTempVendorCDR_20' ) end [2025-04-07 22:55:18] Production.INFO: ProcessCDR(1,14858053,1,1,2) [2025-04-07 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858053', 'tblTempUsageDetail_20' ) start [2025-04-07 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858053', 'tblTempUsageDetail_20' ) end [2025-04-07 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:55:22] Production.INFO: ==2222== Releasing lock... [2025-04-07 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:55:22] Production.INFO: 36 MB #Memory Used# [2025-04-07 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:56:05 [end_date_ymd] => 2025-04-07 22:56:05 [RateCDR] => 1 ) [2025-04-07 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 19:56:05' and `end` < '2025-04-07 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 22:56:18] Production.INFO: count ==1069 [2025-04-07 22:56:18] Production.ERROR: pbx CDR StartTime 2025-04-07 19:56:05 - End Time 2025-04-07 22:56:05 [2025-04-07 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858058', 'tblTempUsageDetail_20' ) start [2025-04-07 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858058', 'tblTempUsageDetail_20' ) end [2025-04-07 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858058', 'tblTempVendorCDR_20' ) start [2025-04-07 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858058', 'tblTempVendorCDR_20' ) end [2025-04-07 22:56:19] Production.INFO: ProcessCDR(1,14858058,1,1,2) [2025-04-07 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858058', 'tblTempUsageDetail_20' ) start [2025-04-07 22:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858058', 'tblTempUsageDetail_20' ) end [2025-04-07 22:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:56:24] Production.INFO: ==2313== Releasing lock... [2025-04-07 22:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:56:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-07 22:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:57:06 [end_date_ymd] => 2025-04-07 22:57:06 [RateCDR] => 1 ) [2025-04-07 22: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-04-07 19:57:06' and `end` < '2025-04-07 22: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-04-07 22:57:18] Production.INFO: count ==1065 [2025-04-07 22:57:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:57:06 - End Time 2025-04-07 22:57:06 [2025-04-07 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858063', 'tblTempUsageDetail_20' ) start [2025-04-07 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858063', 'tblTempUsageDetail_20' ) end [2025-04-07 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858063', 'tblTempVendorCDR_20' ) start [2025-04-07 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858063', 'tblTempVendorCDR_20' ) end [2025-04-07 22:57:19] Production.INFO: ProcessCDR(1,14858063,1,1,2) [2025-04-07 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858063', 'tblTempUsageDetail_20' ) start [2025-04-07 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858063', 'tblTempUsageDetail_20' ) end [2025-04-07 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:57:22] Production.INFO: ==2403== Releasing lock... [2025-04-07 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:57:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-07 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:58:05 [end_date_ymd] => 2025-04-07 22:58:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 19:58:05' and `end` < '2025-04-07 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-04-07 22:58:18] Production.INFO: count ==1064 [2025-04-07 22:58:18] Production.ERROR: pbx CDR StartTime 2025-04-07 19:58:05 - End Time 2025-04-07 22:58:05 [2025-04-07 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858068', 'tblTempUsageDetail_20' ) start [2025-04-07 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858068', 'tblTempUsageDetail_20' ) end [2025-04-07 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858068', 'tblTempVendorCDR_20' ) start [2025-04-07 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858068', 'tblTempVendorCDR_20' ) end [2025-04-07 22:58:18] Production.INFO: ProcessCDR(1,14858068,1,1,2) [2025-04-07 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858068', 'tblTempUsageDetail_20' ) start [2025-04-07 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858068', 'tblTempUsageDetail_20' ) end [2025-04-07 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:58:22] Production.INFO: ==2492== Releasing lock... [2025-04-07 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:58:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-07 22:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 19:59:06 [end_date_ymd] => 2025-04-07 22:59:06 [RateCDR] => 1 ) [2025-04-07 22: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-04-07 19:59:06' and `end` < '2025-04-07 22: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-04-07 22:59:19] Production.INFO: count ==1058 [2025-04-07 22:59:19] Production.ERROR: pbx CDR StartTime 2025-04-07 19:59:06 - End Time 2025-04-07 22:59:06 [2025-04-07 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858073', 'tblTempUsageDetail_20' ) start [2025-04-07 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858073', 'tblTempUsageDetail_20' ) end [2025-04-07 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858073', 'tblTempVendorCDR_20' ) start [2025-04-07 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858073', 'tblTempVendorCDR_20' ) end [2025-04-07 22:59:19] Production.INFO: ProcessCDR(1,14858073,1,1,2) [2025-04-07 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858073', 'tblTempUsageDetail_20' ) start [2025-04-07 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858073', 'tblTempUsageDetail_20' ) end [2025-04-07 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 22:59:22] Production.INFO: ==2587== Releasing lock... [2025-04-07 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 22:59:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-07 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:00:06 [end_date_ymd] => 2025-04-07 23:00:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:00:06' and `end` < '2025-04-07 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-04-07 23:00:19] Production.INFO: count ==1056 [2025-04-07 23:00:19] Production.ERROR: pbx CDR StartTime 2025-04-07 20:00:06 - End Time 2025-04-07 23:00:06 [2025-04-07 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858079', 'tblTempUsageDetail_20' ) start [2025-04-07 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858079', 'tblTempUsageDetail_20' ) end [2025-04-07 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858079', 'tblTempVendorCDR_20' ) start [2025-04-07 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858079', 'tblTempVendorCDR_20' ) end [2025-04-07 23:00:19] Production.INFO: ProcessCDR(1,14858079,1,1,2) [2025-04-07 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858079', 'tblTempUsageDetail_20' ) start [2025-04-07 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858079', 'tblTempUsageDetail_20' ) end [2025-04-07 23:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:00:23] Production.INFO: ==2684== Releasing lock... [2025-04-07 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:00:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-07 23:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:01:06 [end_date_ymd] => 2025-04-07 23:01:06 [RateCDR] => 1 ) [2025-04-07 23: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-04-07 20:01:06' and `end` < '2025-04-07 23: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-04-07 23:01:19] Production.INFO: count ==1051 [2025-04-07 23:01:19] Production.ERROR: pbx CDR StartTime 2025-04-07 20:01:06 - End Time 2025-04-07 23:01:06 [2025-04-07 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858084', 'tblTempUsageDetail_20' ) start [2025-04-07 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858084', 'tblTempUsageDetail_20' ) end [2025-04-07 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858084', 'tblTempVendorCDR_20' ) start [2025-04-07 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858084', 'tblTempVendorCDR_20' ) end [2025-04-07 23:01:19] Production.INFO: ProcessCDR(1,14858084,1,1,2) [2025-04-07 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858084', 'tblTempUsageDetail_20' ) start [2025-04-07 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858084', 'tblTempUsageDetail_20' ) end [2025-04-07 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:01:22] Production.INFO: ==2867== Releasing lock... [2025-04-07 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:01:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-07 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:02:05 [end_date_ymd] => 2025-04-07 23:02:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:02:05' and `end` < '2025-04-07 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-04-07 23:02:18] Production.INFO: count ==1058 [2025-04-07 23:02:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:02:05 - End Time 2025-04-07 23:02:05 [2025-04-07 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858089', 'tblTempUsageDetail_20' ) start [2025-04-07 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858089', 'tblTempUsageDetail_20' ) end [2025-04-07 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858089', 'tblTempVendorCDR_20' ) start [2025-04-07 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858089', 'tblTempVendorCDR_20' ) end [2025-04-07 23:02:19] Production.INFO: ProcessCDR(1,14858089,1,1,2) [2025-04-07 23:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858089', 'tblTempUsageDetail_20' ) start [2025-04-07 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858089', 'tblTempUsageDetail_20' ) end [2025-04-07 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:02:22] Production.INFO: ==2957== Releasing lock... [2025-04-07 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:02:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-07 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:03:05 [end_date_ymd] => 2025-04-07 23:03:05 [RateCDR] => 1 ) [2025-04-07 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 20:03:05' and `end` < '2025-04-07 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 23:03:18] Production.INFO: count ==1060 [2025-04-07 23:03:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:03:05 - End Time 2025-04-07 23:03:05 [2025-04-07 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858094', 'tblTempUsageDetail_20' ) start [2025-04-07 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858094', 'tblTempUsageDetail_20' ) end [2025-04-07 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858094', 'tblTempVendorCDR_20' ) start [2025-04-07 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858094', 'tblTempVendorCDR_20' ) end [2025-04-07 23:03:18] Production.INFO: ProcessCDR(1,14858094,1,1,2) [2025-04-07 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858094', 'tblTempUsageDetail_20' ) start [2025-04-07 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858094', 'tblTempUsageDetail_20' ) end [2025-04-07 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:03:22] Production.INFO: ==3050== Releasing lock... [2025-04-07 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:03:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-07 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:04:05 [end_date_ymd] => 2025-04-07 23:04:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:04:05' and `end` < '2025-04-07 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-04-07 23:04:18] Production.INFO: count ==1059 [2025-04-07 23:04:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:04:05 - End Time 2025-04-07 23:04:05 [2025-04-07 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858099', 'tblTempUsageDetail_20' ) start [2025-04-07 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858099', 'tblTempUsageDetail_20' ) end [2025-04-07 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858099', 'tblTempVendorCDR_20' ) start [2025-04-07 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858099', 'tblTempVendorCDR_20' ) end [2025-04-07 23:04:18] Production.INFO: ProcessCDR(1,14858099,1,1,2) [2025-04-07 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858099', 'tblTempUsageDetail_20' ) start [2025-04-07 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858099', 'tblTempUsageDetail_20' ) end [2025-04-07 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:04:21] Production.INFO: ==3149== Releasing lock... [2025-04-07 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:04:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-07 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:05:05 [end_date_ymd] => 2025-04-07 23:05:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:05:05' and `end` < '2025-04-07 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-04-07 23:05:18] Production.INFO: count ==1059 [2025-04-07 23:05:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:05:05 - End Time 2025-04-07 23:05:05 [2025-04-07 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858104', 'tblTempUsageDetail_20' ) start [2025-04-07 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858104', 'tblTempUsageDetail_20' ) end [2025-04-07 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858104', 'tblTempVendorCDR_20' ) start [2025-04-07 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858104', 'tblTempVendorCDR_20' ) end [2025-04-07 23:05:19] Production.INFO: ProcessCDR(1,14858104,1,1,2) [2025-04-07 23:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858104', 'tblTempUsageDetail_20' ) start [2025-04-07 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858104', 'tblTempUsageDetail_20' ) end [2025-04-07 23:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:05:23] Production.INFO: ==3357== Releasing lock... [2025-04-07 23:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:05:23] Production.INFO: 36 MB #Memory Used# [2025-04-07 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:06:05 [end_date_ymd] => 2025-04-07 23:06:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:06:05' and `end` < '2025-04-07 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-04-07 23:06:18] Production.INFO: count ==1059 [2025-04-07 23:06:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:06:05 - End Time 2025-04-07 23:06:05 [2025-04-07 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858109', 'tblTempUsageDetail_20' ) start [2025-04-07 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858109', 'tblTempUsageDetail_20' ) end [2025-04-07 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858109', 'tblTempVendorCDR_20' ) start [2025-04-07 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858109', 'tblTempVendorCDR_20' ) end [2025-04-07 23:06:18] Production.INFO: ProcessCDR(1,14858109,1,1,2) [2025-04-07 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858109', 'tblTempUsageDetail_20' ) start [2025-04-07 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858109', 'tblTempUsageDetail_20' ) end [2025-04-07 23:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:06:23] Production.INFO: ==3445== Releasing lock... [2025-04-07 23:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:06:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-07 23:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:07:04 [end_date_ymd] => 2025-04-07 23:07:04 [RateCDR] => 1 ) [2025-04-07 23:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 20:07:04' and `end` < '2025-04-07 23:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 23:07:17] Production.INFO: count ==1055 [2025-04-07 23:07:17] Production.ERROR: pbx CDR StartTime 2025-04-07 20:07:04 - End Time 2025-04-07 23:07:04 [2025-04-07 23:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858114', 'tblTempUsageDetail_20' ) start [2025-04-07 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858114', 'tblTempUsageDetail_20' ) end [2025-04-07 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858114', 'tblTempVendorCDR_20' ) start [2025-04-07 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858114', 'tblTempVendorCDR_20' ) end [2025-04-07 23:07:17] Production.INFO: ProcessCDR(1,14858114,1,1,2) [2025-04-07 23:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858114', 'tblTempUsageDetail_20' ) start [2025-04-07 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858114', 'tblTempUsageDetail_20' ) end [2025-04-07 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:07:21] Production.INFO: ==3536== Releasing lock... [2025-04-07 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:07:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-07 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:08:05 [end_date_ymd] => 2025-04-07 23:08:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:08:05' and `end` < '2025-04-07 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-04-07 23:08:18] Production.INFO: count ==1051 [2025-04-07 23:08:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:08:05 - End Time 2025-04-07 23:08:05 [2025-04-07 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858119', 'tblTempUsageDetail_20' ) start [2025-04-07 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858119', 'tblTempUsageDetail_20' ) end [2025-04-07 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858119', 'tblTempVendorCDR_20' ) start [2025-04-07 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858119', 'tblTempVendorCDR_20' ) end [2025-04-07 23:08:18] Production.INFO: ProcessCDR(1,14858119,1,1,2) [2025-04-07 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858119', 'tblTempUsageDetail_20' ) start [2025-04-07 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858119', 'tblTempUsageDetail_20' ) end [2025-04-07 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:08:21] Production.INFO: ==3704== Releasing lock... [2025-04-07 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:08:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-07 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:09:05 [end_date_ymd] => 2025-04-07 23:09:05 [RateCDR] => 1 ) [2025-04-07 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 20:09:05' and `end` < '2025-04-07 23:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 23:09:18] Production.INFO: count ==1050 [2025-04-07 23:09:19] Production.ERROR: pbx CDR StartTime 2025-04-07 20:09:05 - End Time 2025-04-07 23:09:05 [2025-04-07 23:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858124', 'tblTempUsageDetail_20' ) start [2025-04-07 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858124', 'tblTempUsageDetail_20' ) end [2025-04-07 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858124', 'tblTempVendorCDR_20' ) start [2025-04-07 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858124', 'tblTempVendorCDR_20' ) end [2025-04-07 23:09:19] Production.INFO: ProcessCDR(1,14858124,1,1,2) [2025-04-07 23:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858124', 'tblTempUsageDetail_20' ) start [2025-04-07 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858124', 'tblTempUsageDetail_20' ) end [2025-04-07 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:09:22] Production.INFO: ==3797== Releasing lock... [2025-04-07 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:09:22] Production.INFO: 36 MB #Memory Used# [2025-04-07 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:10:06 [end_date_ymd] => 2025-04-07 23:10:06 [RateCDR] => 1 ) [2025-04-07 23:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 20:10:06' and `end` < '2025-04-07 23:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 23:10:19] Production.INFO: count ==1058 [2025-04-07 23:10:20] Production.ERROR: pbx CDR StartTime 2025-04-07 20:10:06 - End Time 2025-04-07 23:10:06 [2025-04-07 23:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858130', 'tblTempUsageDetail_20' ) start [2025-04-07 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858130', 'tblTempUsageDetail_20' ) end [2025-04-07 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858130', 'tblTempVendorCDR_20' ) start [2025-04-07 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858130', 'tblTempVendorCDR_20' ) end [2025-04-07 23:10:20] Production.INFO: ProcessCDR(1,14858130,1,1,2) [2025-04-07 23:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858130', 'tblTempUsageDetail_20' ) start [2025-04-07 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858130', 'tblTempUsageDetail_20' ) end [2025-04-07 23:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:10:23] Production.INFO: ==3893== Releasing lock... [2025-04-07 23:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:10:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-07 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:11:05 [end_date_ymd] => 2025-04-07 23:11:05 [RateCDR] => 1 ) [2025-04-07 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 20:11:05' and `end` < '2025-04-07 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 23:11:18] Production.INFO: count ==1081 [2025-04-07 23:11:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:11:05 - End Time 2025-04-07 23:11:05 [2025-04-07 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858135', 'tblTempUsageDetail_20' ) start [2025-04-07 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858135', 'tblTempUsageDetail_20' ) end [2025-04-07 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858135', 'tblTempVendorCDR_20' ) start [2025-04-07 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858135', 'tblTempVendorCDR_20' ) end [2025-04-07 23:11:18] Production.INFO: ProcessCDR(1,14858135,1,1,2) [2025-04-07 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858135', 'tblTempUsageDetail_20' ) start [2025-04-07 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858135', 'tblTempUsageDetail_20' ) end [2025-04-07 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:11:22] Production.INFO: ==3985== Releasing lock... [2025-04-07 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:11:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-07 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:12:05 [end_date_ymd] => 2025-04-07 23:12:05 [RateCDR] => 1 ) [2025-04-07 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 20:12:05' and `end` < '2025-04-07 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 23:12:18] Production.INFO: count ==1077 [2025-04-07 23:12:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:12:05 - End Time 2025-04-07 23:12:05 [2025-04-07 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858140', 'tblTempUsageDetail_20' ) start [2025-04-07 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858140', 'tblTempUsageDetail_20' ) end [2025-04-07 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858140', 'tblTempVendorCDR_20' ) start [2025-04-07 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858140', 'tblTempVendorCDR_20' ) end [2025-04-07 23:12:18] Production.INFO: ProcessCDR(1,14858140,1,1,2) [2025-04-07 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858140', 'tblTempUsageDetail_20' ) start [2025-04-07 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858140', 'tblTempUsageDetail_20' ) end [2025-04-07 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:12:21] Production.INFO: ==4157== Releasing lock... [2025-04-07 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:12:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-07 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:13:05 [end_date_ymd] => 2025-04-07 23:13:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:13:05' and `end` < '2025-04-07 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-04-07 23:13:17] Production.INFO: count ==1080 [2025-04-07 23:13:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:13:05 - End Time 2025-04-07 23:13:05 [2025-04-07 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858145', 'tblTempUsageDetail_20' ) start [2025-04-07 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858145', 'tblTempUsageDetail_20' ) end [2025-04-07 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858145', 'tblTempVendorCDR_20' ) start [2025-04-07 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858145', 'tblTempVendorCDR_20' ) end [2025-04-07 23:13:18] Production.INFO: ProcessCDR(1,14858145,1,1,2) [2025-04-07 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858145', 'tblTempUsageDetail_20' ) start [2025-04-07 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858145', 'tblTempUsageDetail_20' ) end [2025-04-07 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:13:21] Production.INFO: ==4253== Releasing lock... [2025-04-07 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:13:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-07 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:14:05 [end_date_ymd] => 2025-04-07 23:14:05 [RateCDR] => 1 ) [2025-04-07 23:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 20:14:05' and `end` < '2025-04-07 23:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 23:14:18] Production.INFO: count ==1080 [2025-04-07 23:14:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:14:05 - End Time 2025-04-07 23:14:05 [2025-04-07 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858150', 'tblTempUsageDetail_20' ) start [2025-04-07 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858150', 'tblTempUsageDetail_20' ) end [2025-04-07 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858150', 'tblTempVendorCDR_20' ) start [2025-04-07 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858150', 'tblTempVendorCDR_20' ) end [2025-04-07 23:14:19] Production.INFO: ProcessCDR(1,14858150,1,1,2) [2025-04-07 23:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858150', 'tblTempUsageDetail_20' ) start [2025-04-07 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858150', 'tblTempUsageDetail_20' ) end [2025-04-07 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:14:22] Production.INFO: ==4346== Releasing lock... [2025-04-07 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:14:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-07 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:15:05 [end_date_ymd] => 2025-04-07 23:15:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:15:05' and `end` < '2025-04-07 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-04-07 23:15:18] Production.INFO: count ==1080 [2025-04-07 23:15:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:15:05 - End Time 2025-04-07 23:15:05 [2025-04-07 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858155', 'tblTempUsageDetail_20' ) start [2025-04-07 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858155', 'tblTempUsageDetail_20' ) end [2025-04-07 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858155', 'tblTempVendorCDR_20' ) start [2025-04-07 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858155', 'tblTempVendorCDR_20' ) end [2025-04-07 23:15:18] Production.INFO: ProcessCDR(1,14858155,1,1,2) [2025-04-07 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858155', 'tblTempUsageDetail_20' ) start [2025-04-07 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858155', 'tblTempUsageDetail_20' ) end [2025-04-07 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:15:21] Production.INFO: ==4517== Releasing lock... [2025-04-07 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:15:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-07 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:16:05 [end_date_ymd] => 2025-04-07 23:16:05 [RateCDR] => 1 ) [2025-04-07 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 20:16:05' and `end` < '2025-04-07 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 23:16:18] Production.INFO: count ==1070 [2025-04-07 23:16:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:16:05 - End Time 2025-04-07 23:16:05 [2025-04-07 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858160', 'tblTempUsageDetail_20' ) start [2025-04-07 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858160', 'tblTempUsageDetail_20' ) end [2025-04-07 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858160', 'tblTempVendorCDR_20' ) start [2025-04-07 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858160', 'tblTempVendorCDR_20' ) end [2025-04-07 23:16:18] Production.INFO: ProcessCDR(1,14858160,1,1,2) [2025-04-07 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858160', 'tblTempUsageDetail_20' ) start [2025-04-07 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858160', 'tblTempUsageDetail_20' ) end [2025-04-07 23:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:16:23] Production.INFO: ==4618== Releasing lock... [2025-04-07 23:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:16:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-07 23:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:17:06 [end_date_ymd] => 2025-04-07 23:17:06 [RateCDR] => 1 ) [2025-04-07 23: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-04-07 20:17:06' and `end` < '2025-04-07 23: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-04-07 23:17:18] Production.INFO: count ==1070 [2025-04-07 23:17:19] Production.ERROR: pbx CDR StartTime 2025-04-07 20:17:06 - End Time 2025-04-07 23:17:06 [2025-04-07 23:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858165', 'tblTempUsageDetail_20' ) start [2025-04-07 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858165', 'tblTempUsageDetail_20' ) end [2025-04-07 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858165', 'tblTempVendorCDR_20' ) start [2025-04-07 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858165', 'tblTempVendorCDR_20' ) end [2025-04-07 23:17:19] Production.INFO: ProcessCDR(1,14858165,1,1,2) [2025-04-07 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858165', 'tblTempUsageDetail_20' ) start [2025-04-07 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858165', 'tblTempUsageDetail_20' ) end [2025-04-07 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:17:22] Production.INFO: ==4713== Releasing lock... [2025-04-07 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:17:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-07 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:18:05 [end_date_ymd] => 2025-04-07 23:18:05 [RateCDR] => 1 ) [2025-04-07 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 20:18:05' and `end` < '2025-04-07 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 23:18:18] Production.INFO: count ==1068 [2025-04-07 23:18:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:18:05 - End Time 2025-04-07 23:18:05 [2025-04-07 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858170', 'tblTempUsageDetail_20' ) start [2025-04-07 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858170', 'tblTempUsageDetail_20' ) end [2025-04-07 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858170', 'tblTempVendorCDR_20' ) start [2025-04-07 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858170', 'tblTempVendorCDR_20' ) end [2025-04-07 23:18:18] Production.INFO: ProcessCDR(1,14858170,1,1,2) [2025-04-07 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858170', 'tblTempUsageDetail_20' ) start [2025-04-07 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858170', 'tblTempUsageDetail_20' ) end [2025-04-07 23:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:18:21] Production.INFO: ==4808== Releasing lock... [2025-04-07 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:18:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-07 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:19:05 [end_date_ymd] => 2025-04-07 23:19:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:19:05' and `end` < '2025-04-07 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-04-07 23:19:18] Production.INFO: count ==1058 [2025-04-07 23:19:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:19:05 - End Time 2025-04-07 23:19:05 [2025-04-07 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858175', 'tblTempUsageDetail_20' ) start [2025-04-07 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858175', 'tblTempUsageDetail_20' ) end [2025-04-07 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858175', 'tblTempVendorCDR_20' ) start [2025-04-07 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858175', 'tblTempVendorCDR_20' ) end [2025-04-07 23:19:18] Production.INFO: ProcessCDR(1,14858175,1,1,2) [2025-04-07 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858175', 'tblTempUsageDetail_20' ) start [2025-04-07 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858175', 'tblTempUsageDetail_20' ) end [2025-04-07 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:19:22] Production.INFO: ==4901== Releasing lock... [2025-04-07 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:19:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-07 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:20:06 [end_date_ymd] => 2025-04-07 23:20:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:20:06' and `end` < '2025-04-07 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-04-07 23:20:18] Production.INFO: count ==1048 [2025-04-07 23:20:19] Production.ERROR: pbx CDR StartTime 2025-04-07 20:20:06 - End Time 2025-04-07 23:20:06 [2025-04-07 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858181', 'tblTempUsageDetail_20' ) start [2025-04-07 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858181', 'tblTempUsageDetail_20' ) end [2025-04-07 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858181', 'tblTempVendorCDR_20' ) start [2025-04-07 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858181', 'tblTempVendorCDR_20' ) end [2025-04-07 23:20:19] Production.INFO: ProcessCDR(1,14858181,1,1,2) [2025-04-07 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858181', 'tblTempUsageDetail_20' ) start [2025-04-07 23:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858181', 'tblTempUsageDetail_20' ) end [2025-04-07 23:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:20:24] Production.INFO: ==5034== Releasing lock... [2025-04-07 23:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:20:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-07 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:21:05 [end_date_ymd] => 2025-04-07 23:21:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:21:05' and `end` < '2025-04-07 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-04-07 23:21:18] Production.INFO: count ==1021 [2025-04-07 23:21:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:21:05 - End Time 2025-04-07 23:21:05 [2025-04-07 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858186', 'tblTempUsageDetail_20' ) start [2025-04-07 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858186', 'tblTempUsageDetail_20' ) end [2025-04-07 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858186', 'tblTempVendorCDR_20' ) start [2025-04-07 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858186', 'tblTempVendorCDR_20' ) end [2025-04-07 23:21:18] Production.INFO: ProcessCDR(1,14858186,1,1,2) [2025-04-07 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858186', 'tblTempUsageDetail_20' ) start [2025-04-07 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858186', 'tblTempUsageDetail_20' ) end [2025-04-07 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:21:21] Production.INFO: ==5130== Releasing lock... [2025-04-07 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:21:21] Production.INFO: 36 MB #Memory Used# [2025-04-07 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:22:05 [end_date_ymd] => 2025-04-07 23:22:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:22:05' and `end` < '2025-04-07 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-04-07 23:22:17] Production.INFO: count ==1017 [2025-04-07 23:22:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:22:05 - End Time 2025-04-07 23:22:05 [2025-04-07 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858191', 'tblTempUsageDetail_20' ) start [2025-04-07 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858191', 'tblTempUsageDetail_20' ) end [2025-04-07 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858191', 'tblTempVendorCDR_20' ) start [2025-04-07 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858191', 'tblTempVendorCDR_20' ) end [2025-04-07 23:22:18] Production.INFO: ProcessCDR(1,14858191,1,1,2) [2025-04-07 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858191', 'tblTempUsageDetail_20' ) start [2025-04-07 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858191', 'tblTempUsageDetail_20' ) end [2025-04-07 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:22:21] Production.INFO: ==5213== Releasing lock... [2025-04-07 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:22:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-07 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:23:05 [end_date_ymd] => 2025-04-07 23:23:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:23:05' and `end` < '2025-04-07 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-04-07 23:23:18] Production.INFO: count ==1019 [2025-04-07 23:23:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:23:05 - End Time 2025-04-07 23:23:05 [2025-04-07 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858196', 'tblTempUsageDetail_20' ) start [2025-04-07 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858196', 'tblTempUsageDetail_20' ) end [2025-04-07 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858196', 'tblTempVendorCDR_20' ) start [2025-04-07 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858196', 'tblTempVendorCDR_20' ) end [2025-04-07 23:23:18] Production.INFO: ProcessCDR(1,14858196,1,1,2) [2025-04-07 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858196', 'tblTempUsageDetail_20' ) start [2025-04-07 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858196', 'tblTempUsageDetail_20' ) end [2025-04-07 23:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:23:23] Production.INFO: ==5311== Releasing lock... [2025-04-07 23:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:23:23] Production.INFO: 36 MB #Memory Used# [2025-04-07 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:24:05 [end_date_ymd] => 2025-04-07 23:24:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:24:05' and `end` < '2025-04-07 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-04-07 23:24:18] Production.INFO: count ==1014 [2025-04-07 23:24:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:24:05 - End Time 2025-04-07 23:24:05 [2025-04-07 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858201', 'tblTempUsageDetail_20' ) start [2025-04-07 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858201', 'tblTempUsageDetail_20' ) end [2025-04-07 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858201', 'tblTempVendorCDR_20' ) start [2025-04-07 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858201', 'tblTempVendorCDR_20' ) end [2025-04-07 23:24:18] Production.INFO: ProcessCDR(1,14858201,1,1,2) [2025-04-07 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858201', 'tblTempUsageDetail_20' ) start [2025-04-07 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858201', 'tblTempUsageDetail_20' ) end [2025-04-07 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:24:22] Production.INFO: ==5400== Releasing lock... [2025-04-07 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:24:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-07 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:25:05 [end_date_ymd] => 2025-04-07 23:25:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:25:05' and `end` < '2025-04-07 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-04-07 23:25:18] Production.INFO: count ==1007 [2025-04-07 23:25:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:25:05 - End Time 2025-04-07 23:25:05 [2025-04-07 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858206', 'tblTempUsageDetail_20' ) start [2025-04-07 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858206', 'tblTempUsageDetail_20' ) end [2025-04-07 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858206', 'tblTempVendorCDR_20' ) start [2025-04-07 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858206', 'tblTempVendorCDR_20' ) end [2025-04-07 23:25:18] Production.INFO: ProcessCDR(1,14858206,1,1,2) [2025-04-07 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858206', 'tblTempUsageDetail_20' ) start [2025-04-07 23:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858206', 'tblTempUsageDetail_20' ) end [2025-04-07 23:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:25:23] Production.INFO: ==5512== Releasing lock... [2025-04-07 23:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:25:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-07 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:26:05 [end_date_ymd] => 2025-04-07 23:26:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:26:05' and `end` < '2025-04-07 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-04-07 23:26:18] Production.INFO: count ==1008 [2025-04-07 23:26:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:26:05 - End Time 2025-04-07 23:26:05 [2025-04-07 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858211', 'tblTempUsageDetail_20' ) start [2025-04-07 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858211', 'tblTempUsageDetail_20' ) end [2025-04-07 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858211', 'tblTempVendorCDR_20' ) start [2025-04-07 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858211', 'tblTempVendorCDR_20' ) end [2025-04-07 23:26:18] Production.INFO: ProcessCDR(1,14858211,1,1,2) [2025-04-07 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858211', 'tblTempUsageDetail_20' ) start [2025-04-07 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858211', 'tblTempUsageDetail_20' ) end [2025-04-07 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:26:21] Production.INFO: ==5616== Releasing lock... [2025-04-07 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:26:21] Production.INFO: 36 MB #Memory Used# [2025-04-07 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:27:05 [end_date_ymd] => 2025-04-07 23:27:05 [RateCDR] => 1 ) [2025-04-07 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 20:27:05' and `end` < '2025-04-07 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 23:27:18] Production.INFO: count ==1005 [2025-04-07 23:27:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:27:05 - End Time 2025-04-07 23:27:05 [2025-04-07 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858216', 'tblTempUsageDetail_20' ) start [2025-04-07 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858216', 'tblTempUsageDetail_20' ) end [2025-04-07 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858216', 'tblTempVendorCDR_20' ) start [2025-04-07 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858216', 'tblTempVendorCDR_20' ) end [2025-04-07 23:27:18] Production.INFO: ProcessCDR(1,14858216,1,1,2) [2025-04-07 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858216', 'tblTempUsageDetail_20' ) start [2025-04-07 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858216', 'tblTempUsageDetail_20' ) end [2025-04-07 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:27:21] Production.INFO: ==5708== Releasing lock... [2025-04-07 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:27:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-07 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:28:05 [end_date_ymd] => 2025-04-07 23:28:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:28:05' and `end` < '2025-04-07 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-04-07 23:28:18] Production.INFO: count ==1003 [2025-04-07 23:28:19] Production.ERROR: pbx CDR StartTime 2025-04-07 20:28:05 - End Time 2025-04-07 23:28:05 [2025-04-07 23:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858221', 'tblTempUsageDetail_20' ) start [2025-04-07 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858221', 'tblTempUsageDetail_20' ) end [2025-04-07 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858221', 'tblTempVendorCDR_20' ) start [2025-04-07 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858221', 'tblTempVendorCDR_20' ) end [2025-04-07 23:28:19] Production.INFO: ProcessCDR(1,14858221,1,1,2) [2025-04-07 23:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858221', 'tblTempUsageDetail_20' ) start [2025-04-07 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858221', 'tblTempUsageDetail_20' ) end [2025-04-07 23:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:28:22] Production.INFO: ==5797== Releasing lock... [2025-04-07 23:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:28:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-07 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:29:05 [end_date_ymd] => 2025-04-07 23:29:05 [RateCDR] => 1 ) [2025-04-07 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 20:29:05' and `end` < '2025-04-07 23:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 23:29:18] Production.INFO: count ==1002 [2025-04-07 23:29:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:29:05 - End Time 2025-04-07 23:29:05 [2025-04-07 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858226', 'tblTempUsageDetail_20' ) start [2025-04-07 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858226', 'tblTempUsageDetail_20' ) end [2025-04-07 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858226', 'tblTempVendorCDR_20' ) start [2025-04-07 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858226', 'tblTempVendorCDR_20' ) end [2025-04-07 23:29:18] Production.INFO: ProcessCDR(1,14858226,1,1,2) [2025-04-07 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858226', 'tblTempUsageDetail_20' ) start [2025-04-07 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858226', 'tblTempUsageDetail_20' ) end [2025-04-07 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:29:22] Production.INFO: ==5890== Releasing lock... [2025-04-07 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:29:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-07 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:30:06 [end_date_ymd] => 2025-04-07 23:30:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:30:06' and `end` < '2025-04-07 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-04-07 23:30:19] Production.INFO: count ==991 [2025-04-07 23:30:19] Production.ERROR: pbx CDR StartTime 2025-04-07 20:30:06 - End Time 2025-04-07 23:30:06 [2025-04-07 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858232', 'tblTempUsageDetail_20' ) start [2025-04-07 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858232', 'tblTempUsageDetail_20' ) end [2025-04-07 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858232', 'tblTempVendorCDR_20' ) start [2025-04-07 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858232', 'tblTempVendorCDR_20' ) end [2025-04-07 23:30:19] Production.INFO: ProcessCDR(1,14858232,1,1,2) [2025-04-07 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858232', 'tblTempUsageDetail_20' ) start [2025-04-07 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858232', 'tblTempUsageDetail_20' ) end [2025-04-07 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:30:23] Production.INFO: ==5995== Releasing lock... [2025-04-07 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:30:23] Production.INFO: 36 MB #Memory Used# [2025-04-07 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:31:05 [end_date_ymd] => 2025-04-07 23:31:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:31:05' and `end` < '2025-04-07 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-04-07 23:31:18] Production.INFO: count ==953 [2025-04-07 23:31:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:31:05 - End Time 2025-04-07 23:31:05 [2025-04-07 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858237', 'tblTempUsageDetail_20' ) start [2025-04-07 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858237', 'tblTempUsageDetail_20' ) end [2025-04-07 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858237', 'tblTempVendorCDR_20' ) start [2025-04-07 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858237', 'tblTempVendorCDR_20' ) end [2025-04-07 23:31:18] Production.INFO: ProcessCDR(1,14858237,1,1,2) [2025-04-07 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858237', 'tblTempUsageDetail_20' ) start [2025-04-07 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858237', 'tblTempUsageDetail_20' ) end [2025-04-07 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:31:21] Production.INFO: ==6090== Releasing lock... [2025-04-07 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:31:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-07 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:32:05 [end_date_ymd] => 2025-04-07 23:32:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:32:05' and `end` < '2025-04-07 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-04-07 23:32:19] Production.INFO: count ==957 [2025-04-07 23:32:19] Production.ERROR: pbx CDR StartTime 2025-04-07 20:32:05 - End Time 2025-04-07 23:32:05 [2025-04-07 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858242', 'tblTempUsageDetail_20' ) start [2025-04-07 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858242', 'tblTempUsageDetail_20' ) end [2025-04-07 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858242', 'tblTempVendorCDR_20' ) start [2025-04-07 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858242', 'tblTempVendorCDR_20' ) end [2025-04-07 23:32:19] Production.INFO: ProcessCDR(1,14858242,1,1,2) [2025-04-07 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858242', 'tblTempUsageDetail_20' ) start [2025-04-07 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858242', 'tblTempUsageDetail_20' ) end [2025-04-07 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:32:22] Production.INFO: ==6190== Releasing lock... [2025-04-07 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:32:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-07 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:33:05 [end_date_ymd] => 2025-04-07 23:33:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:33:05' and `end` < '2025-04-07 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-04-07 23:33:18] Production.INFO: count ==958 [2025-04-07 23:33:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:33:05 - End Time 2025-04-07 23:33:05 [2025-04-07 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858247', 'tblTempUsageDetail_20' ) start [2025-04-07 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858247', 'tblTempUsageDetail_20' ) end [2025-04-07 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858247', 'tblTempVendorCDR_20' ) start [2025-04-07 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858247', 'tblTempVendorCDR_20' ) end [2025-04-07 23:33:18] Production.INFO: ProcessCDR(1,14858247,1,1,2) [2025-04-07 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858247', 'tblTempUsageDetail_20' ) start [2025-04-07 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858247', 'tblTempUsageDetail_20' ) end [2025-04-07 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:33:22] Production.INFO: ==6279== Releasing lock... [2025-04-07 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:33:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-07 23:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:34:05 [end_date_ymd] => 2025-04-07 23:34:05 [RateCDR] => 1 ) [2025-04-07 23: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-04-07 20:34:05' and `end` < '2025-04-07 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-04-07 23:34:18] Production.INFO: count ==958 [2025-04-07 23:34:19] Production.ERROR: pbx CDR StartTime 2025-04-07 20:34:05 - End Time 2025-04-07 23:34:05 [2025-04-07 23:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858252', 'tblTempUsageDetail_20' ) start [2025-04-07 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858252', 'tblTempUsageDetail_20' ) end [2025-04-07 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858252', 'tblTempVendorCDR_20' ) start [2025-04-07 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858252', 'tblTempVendorCDR_20' ) end [2025-04-07 23:34:19] Production.INFO: ProcessCDR(1,14858252,1,1,2) [2025-04-07 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858252', 'tblTempUsageDetail_20' ) start [2025-04-07 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858252', 'tblTempUsageDetail_20' ) end [2025-04-07 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:34:22] Production.INFO: ==6376== Releasing lock... [2025-04-07 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:34:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-07 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:35:05 [end_date_ymd] => 2025-04-07 23:35:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:35:05' and `end` < '2025-04-07 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-04-07 23:35:18] Production.INFO: count ==958 [2025-04-07 23:35:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:35:05 - End Time 2025-04-07 23:35:05 [2025-04-07 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858257', 'tblTempUsageDetail_20' ) start [2025-04-07 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858257', 'tblTempUsageDetail_20' ) end [2025-04-07 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858257', 'tblTempVendorCDR_20' ) start [2025-04-07 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858257', 'tblTempVendorCDR_20' ) end [2025-04-07 23:35:18] Production.INFO: ProcessCDR(1,14858257,1,1,2) [2025-04-07 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858257', 'tblTempUsageDetail_20' ) start [2025-04-07 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858257', 'tblTempUsageDetail_20' ) end [2025-04-07 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:35:21] Production.INFO: ==6470== Releasing lock... [2025-04-07 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:35:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-07 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:36:05 [end_date_ymd] => 2025-04-07 23:36:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:36:05' and `end` < '2025-04-07 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-04-07 23:36:18] Production.INFO: count ==950 [2025-04-07 23:36:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:36:05 - End Time 2025-04-07 23:36:05 [2025-04-07 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858262', 'tblTempUsageDetail_20' ) start [2025-04-07 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858262', 'tblTempUsageDetail_20' ) end [2025-04-07 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858262', 'tblTempVendorCDR_20' ) start [2025-04-07 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858262', 'tblTempVendorCDR_20' ) end [2025-04-07 23:36:18] Production.INFO: ProcessCDR(1,14858262,1,1,2) [2025-04-07 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858262', 'tblTempUsageDetail_20' ) start [2025-04-07 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858262', 'tblTempUsageDetail_20' ) end [2025-04-07 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:36:22] Production.INFO: ==6600== Releasing lock... [2025-04-07 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:36:22] Production.INFO: 36 MB #Memory Used# [2025-04-07 23:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:37:06 [end_date_ymd] => 2025-04-07 23:37:06 [RateCDR] => 1 ) [2025-04-07 23: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-04-07 20:37:06' and `end` < '2025-04-07 23: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-04-07 23:37:19] Production.INFO: count ==949 [2025-04-07 23:37:19] Production.ERROR: pbx CDR StartTime 2025-04-07 20:37:06 - End Time 2025-04-07 23:37:06 [2025-04-07 23:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858267', 'tblTempUsageDetail_20' ) start [2025-04-07 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858267', 'tblTempUsageDetail_20' ) end [2025-04-07 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858267', 'tblTempVendorCDR_20' ) start [2025-04-07 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858267', 'tblTempVendorCDR_20' ) end [2025-04-07 23:37:19] Production.INFO: ProcessCDR(1,14858267,1,1,2) [2025-04-07 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858267', 'tblTempUsageDetail_20' ) start [2025-04-07 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858267', 'tblTempUsageDetail_20' ) end [2025-04-07 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:37:22] Production.INFO: ==6690== Releasing lock... [2025-04-07 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:37:22] Production.INFO: 36 MB #Memory Used# [2025-04-07 23:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:38:06 [end_date_ymd] => 2025-04-07 23:38:06 [RateCDR] => 1 ) [2025-04-07 23:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 20:38:06' and `end` < '2025-04-07 23:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 23:38:19] Production.INFO: count ==946 [2025-04-07 23:38:19] Production.ERROR: pbx CDR StartTime 2025-04-07 20:38:06 - End Time 2025-04-07 23:38:06 [2025-04-07 23:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858272', 'tblTempUsageDetail_20' ) start [2025-04-07 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858272', 'tblTempUsageDetail_20' ) end [2025-04-07 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858272', 'tblTempVendorCDR_20' ) start [2025-04-07 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858272', 'tblTempVendorCDR_20' ) end [2025-04-07 23:38:19] Production.INFO: ProcessCDR(1,14858272,1,1,2) [2025-04-07 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858272', 'tblTempUsageDetail_20' ) start [2025-04-07 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858272', 'tblTempUsageDetail_20' ) end [2025-04-07 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:38:22] Production.INFO: ==6781== Releasing lock... [2025-04-07 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:38:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-07 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:39:05 [end_date_ymd] => 2025-04-07 23:39:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:39:05' and `end` < '2025-04-07 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-04-07 23:39:18] Production.INFO: count ==947 [2025-04-07 23:39:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:39:05 - End Time 2025-04-07 23:39:05 [2025-04-07 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858277', 'tblTempUsageDetail_20' ) start [2025-04-07 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858277', 'tblTempUsageDetail_20' ) end [2025-04-07 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858277', 'tblTempVendorCDR_20' ) start [2025-04-07 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858277', 'tblTempVendorCDR_20' ) end [2025-04-07 23:39:18] Production.INFO: ProcessCDR(1,14858277,1,1,2) [2025-04-07 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858277', 'tblTempUsageDetail_20' ) start [2025-04-07 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858277', 'tblTempUsageDetail_20' ) end [2025-04-07 23:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:39:22] Production.INFO: ==6874== Releasing lock... [2025-04-07 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:39:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-07 23:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:40:06 [end_date_ymd] => 2025-04-07 23:40:06 [RateCDR] => 1 ) [2025-04-07 23: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-04-07 20:40:06' and `end` < '2025-04-07 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-04-07 23:40:19] Production.INFO: count ==938 [2025-04-07 23:40:20] Production.ERROR: pbx CDR StartTime 2025-04-07 20:40:06 - End Time 2025-04-07 23:40:06 [2025-04-07 23:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858283', 'tblTempUsageDetail_20' ) start [2025-04-07 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858283', 'tblTempUsageDetail_20' ) end [2025-04-07 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858283', 'tblTempVendorCDR_20' ) start [2025-04-07 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858283', 'tblTempVendorCDR_20' ) end [2025-04-07 23:40:20] Production.INFO: ProcessCDR(1,14858283,1,1,2) [2025-04-07 23:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858283', 'tblTempUsageDetail_20' ) start [2025-04-07 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858283', 'tblTempUsageDetail_20' ) end [2025-04-07 23:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:40:23] Production.INFO: ==6968== Releasing lock... [2025-04-07 23:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:40:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-07 23:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:41:06 [end_date_ymd] => 2025-04-07 23:41:06 [RateCDR] => 1 ) [2025-04-07 23: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-04-07 20:41:06' and `end` < '2025-04-07 23: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-04-07 23:41:19] Production.INFO: count ==925 [2025-04-07 23:41:19] Production.ERROR: pbx CDR StartTime 2025-04-07 20:41:06 - End Time 2025-04-07 23:41:06 [2025-04-07 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858288', 'tblTempUsageDetail_20' ) start [2025-04-07 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858288', 'tblTempUsageDetail_20' ) end [2025-04-07 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858288', 'tblTempVendorCDR_20' ) start [2025-04-07 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858288', 'tblTempVendorCDR_20' ) end [2025-04-07 23:41:19] Production.INFO: ProcessCDR(1,14858288,1,1,2) [2025-04-07 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858288', 'tblTempUsageDetail_20' ) start [2025-04-07 23:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858288', 'tblTempUsageDetail_20' ) end [2025-04-07 23:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:41:23] Production.INFO: ==7065== Releasing lock... [2025-04-07 23:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:41:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-07 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:42:05 [end_date_ymd] => 2025-04-07 23:42:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:42:05' and `end` < '2025-04-07 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-04-07 23:42:18] Production.INFO: count ==909 [2025-04-07 23:42:19] Production.ERROR: pbx CDR StartTime 2025-04-07 20:42:05 - End Time 2025-04-07 23:42:05 [2025-04-07 23:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858293', 'tblTempUsageDetail_20' ) start [2025-04-07 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858293', 'tblTempUsageDetail_20' ) end [2025-04-07 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858293', 'tblTempVendorCDR_20' ) start [2025-04-07 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858293', 'tblTempVendorCDR_20' ) end [2025-04-07 23:42:19] Production.INFO: ProcessCDR(1,14858293,1,1,2) [2025-04-07 23:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858293', 'tblTempUsageDetail_20' ) start [2025-04-07 23:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858293', 'tblTempUsageDetail_20' ) end [2025-04-07 23:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:42:24] Production.INFO: ==7157== Releasing lock... [2025-04-07 23:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:42:24] Production.INFO: 35 MB #Memory Used# [2025-04-07 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:43:05 [end_date_ymd] => 2025-04-07 23:43:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:43:05' and `end` < '2025-04-07 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-04-07 23:43:18] Production.INFO: count ==899 [2025-04-07 23:43:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:43:05 - End Time 2025-04-07 23:43:05 [2025-04-07 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858298', 'tblTempUsageDetail_20' ) start [2025-04-07 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858298', 'tblTempUsageDetail_20' ) end [2025-04-07 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858298', 'tblTempVendorCDR_20' ) start [2025-04-07 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858298', 'tblTempVendorCDR_20' ) end [2025-04-07 23:43:18] Production.INFO: ProcessCDR(1,14858298,1,1,2) [2025-04-07 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858298', 'tblTempUsageDetail_20' ) start [2025-04-07 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858298', 'tblTempUsageDetail_20' ) end [2025-04-07 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:43:21] Production.INFO: ==7242== Releasing lock... [2025-04-07 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:43:21] Production.INFO: 35 MB #Memory Used# [2025-04-07 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:44:05 [end_date_ymd] => 2025-04-07 23:44:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:44:05' and `end` < '2025-04-07 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-04-07 23:44:18] Production.INFO: count ==888 [2025-04-07 23:44:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:44:05 - End Time 2025-04-07 23:44:05 [2025-04-07 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858303', 'tblTempUsageDetail_20' ) start [2025-04-07 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858303', 'tblTempUsageDetail_20' ) end [2025-04-07 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858303', 'tblTempVendorCDR_20' ) start [2025-04-07 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858303', 'tblTempVendorCDR_20' ) end [2025-04-07 23:44:18] Production.INFO: ProcessCDR(1,14858303,1,1,2) [2025-04-07 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858303', 'tblTempUsageDetail_20' ) start [2025-04-07 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858303', 'tblTempUsageDetail_20' ) end [2025-04-07 23:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:44:22] Production.INFO: ==7339== Releasing lock... [2025-04-07 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:44:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-07 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:45:05 [end_date_ymd] => 2025-04-07 23:45:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:45:05' and `end` < '2025-04-07 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-04-07 23:45:18] Production.INFO: count ==888 [2025-04-07 23:45:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:45:05 - End Time 2025-04-07 23:45:05 [2025-04-07 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858308', 'tblTempUsageDetail_20' ) start [2025-04-07 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858308', 'tblTempUsageDetail_20' ) end [2025-04-07 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858308', 'tblTempVendorCDR_20' ) start [2025-04-07 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858308', 'tblTempVendorCDR_20' ) end [2025-04-07 23:45:18] Production.INFO: ProcessCDR(1,14858308,1,1,2) [2025-04-07 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858308', 'tblTempUsageDetail_20' ) start [2025-04-07 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858308', 'tblTempUsageDetail_20' ) end [2025-04-07 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:45:21] Production.INFO: ==7435== Releasing lock... [2025-04-07 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:45:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-07 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:46:05 [end_date_ymd] => 2025-04-07 23:46:05 [RateCDR] => 1 ) [2025-04-07 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 20:46:05' and `end` < '2025-04-07 23:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 23:46:18] Production.INFO: count ==888 [2025-04-07 23:46:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:46:05 - End Time 2025-04-07 23:46:05 [2025-04-07 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858313', 'tblTempUsageDetail_20' ) start [2025-04-07 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858313', 'tblTempUsageDetail_20' ) end [2025-04-07 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858313', 'tblTempVendorCDR_20' ) start [2025-04-07 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858313', 'tblTempVendorCDR_20' ) end [2025-04-07 23:46:18] Production.INFO: ProcessCDR(1,14858313,1,1,2) [2025-04-07 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858313', 'tblTempUsageDetail_20' ) start [2025-04-07 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858313', 'tblTempUsageDetail_20' ) end [2025-04-07 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:46:22] Production.INFO: ==7525== Releasing lock... [2025-04-07 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:46:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-07 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:47:05 [end_date_ymd] => 2025-04-07 23:47:05 [RateCDR] => 1 ) [2025-04-07 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 20:47:05' and `end` < '2025-04-07 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 23:47:17] Production.INFO: count ==890 [2025-04-07 23:47:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:47:05 - End Time 2025-04-07 23:47:05 [2025-04-07 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858318', 'tblTempUsageDetail_20' ) start [2025-04-07 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858318', 'tblTempUsageDetail_20' ) end [2025-04-07 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858318', 'tblTempVendorCDR_20' ) start [2025-04-07 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858318', 'tblTempVendorCDR_20' ) end [2025-04-07 23:47:18] Production.INFO: ProcessCDR(1,14858318,1,1,2) [2025-04-07 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858318', 'tblTempUsageDetail_20' ) start [2025-04-07 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858318', 'tblTempUsageDetail_20' ) end [2025-04-07 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:47:21] Production.INFO: ==7616== Releasing lock... [2025-04-07 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:47:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-07 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:48:05 [end_date_ymd] => 2025-04-07 23:48:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:48:05' and `end` < '2025-04-07 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-04-07 23:48:17] Production.INFO: count ==887 [2025-04-07 23:48:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:48:05 - End Time 2025-04-07 23:48:05 [2025-04-07 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858323', 'tblTempUsageDetail_20' ) start [2025-04-07 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858323', 'tblTempUsageDetail_20' ) end [2025-04-07 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858323', 'tblTempVendorCDR_20' ) start [2025-04-07 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858323', 'tblTempVendorCDR_20' ) end [2025-04-07 23:48:18] Production.INFO: ProcessCDR(1,14858323,1,1,2) [2025-04-07 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858323', 'tblTempUsageDetail_20' ) start [2025-04-07 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858323', 'tblTempUsageDetail_20' ) end [2025-04-07 23:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:48:21] Production.INFO: ==7710== Releasing lock... [2025-04-07 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:48:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-07 23:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:49:06 [end_date_ymd] => 2025-04-07 23:49:06 [RateCDR] => 1 ) [2025-04-07 23:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 20:49:06' and `end` < '2025-04-07 23:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 23:49:19] Production.INFO: count ==885 [2025-04-07 23:49:19] Production.ERROR: pbx CDR StartTime 2025-04-07 20:49:06 - End Time 2025-04-07 23:49:06 [2025-04-07 23:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858328', 'tblTempUsageDetail_20' ) start [2025-04-07 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858328', 'tblTempUsageDetail_20' ) end [2025-04-07 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858328', 'tblTempVendorCDR_20' ) start [2025-04-07 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858328', 'tblTempVendorCDR_20' ) end [2025-04-07 23:49:19] Production.INFO: ProcessCDR(1,14858328,1,1,2) [2025-04-07 23:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858328', 'tblTempUsageDetail_20' ) start [2025-04-07 23:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858328', 'tblTempUsageDetail_20' ) end [2025-04-07 23:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:49:23] Production.INFO: ==8059== Releasing lock... [2025-04-07 23:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:49:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-07 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:50:06 [end_date_ymd] => 2025-04-07 23:50:06 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:50:06' and `end` < '2025-04-07 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-04-07 23:50:18] Production.INFO: count ==882 [2025-04-07 23:50:19] Production.ERROR: pbx CDR StartTime 2025-04-07 20:50:06 - End Time 2025-04-07 23:50:06 [2025-04-07 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858334', 'tblTempUsageDetail_20' ) start [2025-04-07 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858334', 'tblTempUsageDetail_20' ) end [2025-04-07 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858334', 'tblTempVendorCDR_20' ) start [2025-04-07 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858334', 'tblTempVendorCDR_20' ) end [2025-04-07 23:50:19] Production.INFO: ProcessCDR(1,14858334,1,1,2) [2025-04-07 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858334', 'tblTempUsageDetail_20' ) start [2025-04-07 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858334', 'tblTempUsageDetail_20' ) end [2025-04-07 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:50:22] Production.INFO: ==8151== Releasing lock... [2025-04-07 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:50:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-07 23:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:51:06 [end_date_ymd] => 2025-04-07 23:51:06 [RateCDR] => 1 ) [2025-04-07 23:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 20:51:06' and `end` < '2025-04-07 23:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 23:51:19] Production.INFO: count ==876 [2025-04-07 23:51:19] Production.ERROR: pbx CDR StartTime 2025-04-07 20:51:06 - End Time 2025-04-07 23:51:06 [2025-04-07 23:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858339', 'tblTempUsageDetail_20' ) start [2025-04-07 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858339', 'tblTempUsageDetail_20' ) end [2025-04-07 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858339', 'tblTempVendorCDR_20' ) start [2025-04-07 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858339', 'tblTempVendorCDR_20' ) end [2025-04-07 23:51:19] Production.INFO: ProcessCDR(1,14858339,1,1,2) [2025-04-07 23:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858339', 'tblTempUsageDetail_20' ) start [2025-04-07 23:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858339', 'tblTempUsageDetail_20' ) end [2025-04-07 23:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:51:23] Production.INFO: ==8280== Releasing lock... [2025-04-07 23:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:51:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-07 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:52:05 [end_date_ymd] => 2025-04-07 23:52:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:52:05' and `end` < '2025-04-07 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-04-07 23:52:18] Production.INFO: count ==876 [2025-04-07 23:52:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:52:05 - End Time 2025-04-07 23:52:05 [2025-04-07 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858344', 'tblTempUsageDetail_20' ) start [2025-04-07 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858344', 'tblTempUsageDetail_20' ) end [2025-04-07 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858344', 'tblTempVendorCDR_20' ) start [2025-04-07 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858344', 'tblTempVendorCDR_20' ) end [2025-04-07 23:52:18] Production.INFO: ProcessCDR(1,14858344,1,1,2) [2025-04-07 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858344', 'tblTempUsageDetail_20' ) start [2025-04-07 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858344', 'tblTempUsageDetail_20' ) end [2025-04-07 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:52:22] Production.INFO: ==8376== Releasing lock... [2025-04-07 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:52:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-07 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:53:05 [end_date_ymd] => 2025-04-07 23:53:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:53:05' and `end` < '2025-04-07 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-04-07 23:53:18] Production.INFO: count ==879 [2025-04-07 23:53:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:53:05 - End Time 2025-04-07 23:53:05 [2025-04-07 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858349', 'tblTempUsageDetail_20' ) start [2025-04-07 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858349', 'tblTempUsageDetail_20' ) end [2025-04-07 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858349', 'tblTempVendorCDR_20' ) start [2025-04-07 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858349', 'tblTempVendorCDR_20' ) end [2025-04-07 23:53:18] Production.INFO: ProcessCDR(1,14858349,1,1,2) [2025-04-07 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858349', 'tblTempUsageDetail_20' ) start [2025-04-07 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858349', 'tblTempUsageDetail_20' ) end [2025-04-07 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:53:21] Production.INFO: ==8468== Releasing lock... [2025-04-07 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:53:21] Production.INFO: 35 MB #Memory Used# [2025-04-07 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:54:05 [end_date_ymd] => 2025-04-07 23:54:05 [RateCDR] => 1 ) [2025-04-07 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 20:54:05' and `end` < '2025-04-07 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 23:54:18] Production.INFO: count ==879 [2025-04-07 23:54:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:54:05 - End Time 2025-04-07 23:54:05 [2025-04-07 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858354', 'tblTempUsageDetail_20' ) start [2025-04-07 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858354', 'tblTempUsageDetail_20' ) end [2025-04-07 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858354', 'tblTempVendorCDR_20' ) start [2025-04-07 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858354', 'tblTempVendorCDR_20' ) end [2025-04-07 23:54:18] Production.INFO: ProcessCDR(1,14858354,1,1,2) [2025-04-07 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858354', 'tblTempUsageDetail_20' ) start [2025-04-07 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858354', 'tblTempUsageDetail_20' ) end [2025-04-07 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:54:22] Production.INFO: ==8561== Releasing lock... [2025-04-07 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:54:22] Production.INFO: 35 MB #Memory Used# [2025-04-07 23:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:55:06 [end_date_ymd] => 2025-04-07 23:55:06 [RateCDR] => 1 ) [2025-04-07 23: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-04-07 20:55:06' and `end` < '2025-04-07 23: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-04-07 23:55:18] Production.INFO: count ==878 [2025-04-07 23:55:19] Production.ERROR: pbx CDR StartTime 2025-04-07 20:55:06 - End Time 2025-04-07 23:55:06 [2025-04-07 23:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858359', 'tblTempUsageDetail_20' ) start [2025-04-07 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858359', 'tblTempUsageDetail_20' ) end [2025-04-07 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858359', 'tblTempVendorCDR_20' ) start [2025-04-07 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858359', 'tblTempVendorCDR_20' ) end [2025-04-07 23:55:19] Production.INFO: ProcessCDR(1,14858359,1,1,2) [2025-04-07 23:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858359', 'tblTempUsageDetail_20' ) start [2025-04-07 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858359', 'tblTempUsageDetail_20' ) end [2025-04-07 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:55:22] Production.INFO: ==8654== Releasing lock... [2025-04-07 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:55:22] Production.INFO: 35 MB #Memory Used# [2025-04-07 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:56:05 [end_date_ymd] => 2025-04-07 23:56:05 [RateCDR] => 1 ) [2025-04-07 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-04-07 20:56:05' and `end` < '2025-04-07 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-04-07 23:56:18] Production.INFO: count ==874 [2025-04-07 23:56:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:56:05 - End Time 2025-04-07 23:56:05 [2025-04-07 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858364', 'tblTempUsageDetail_20' ) start [2025-04-07 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858364', 'tblTempUsageDetail_20' ) end [2025-04-07 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858364', 'tblTempVendorCDR_20' ) start [2025-04-07 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858364', 'tblTempVendorCDR_20' ) end [2025-04-07 23:56:18] Production.INFO: ProcessCDR(1,14858364,1,1,2) [2025-04-07 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858364', 'tblTempUsageDetail_20' ) start [2025-04-07 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858364', 'tblTempUsageDetail_20' ) end [2025-04-07 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:56:22] Production.INFO: ==8741== Releasing lock... [2025-04-07 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:56:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-07 23:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:57:05 [end_date_ymd] => 2025-04-07 23:57:05 [RateCDR] => 1 ) [2025-04-07 23: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-04-07 20:57:05' and `end` < '2025-04-07 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-04-07 23:57:18] Production.INFO: count ==876 [2025-04-07 23:57:19] Production.ERROR: pbx CDR StartTime 2025-04-07 20:57:05 - End Time 2025-04-07 23:57:05 [2025-04-07 23:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858369', 'tblTempUsageDetail_20' ) start [2025-04-07 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858369', 'tblTempUsageDetail_20' ) end [2025-04-07 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858369', 'tblTempVendorCDR_20' ) start [2025-04-07 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858369', 'tblTempVendorCDR_20' ) end [2025-04-07 23:57:19] Production.INFO: ProcessCDR(1,14858369,1,1,2) [2025-04-07 23:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858369', 'tblTempUsageDetail_20' ) start [2025-04-07 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858369', 'tblTempUsageDetail_20' ) end [2025-04-07 23:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:57:22] Production.INFO: ==8831== Releasing lock... [2025-04-07 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:57:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-07 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:58:05 [end_date_ymd] => 2025-04-07 23:58:05 [RateCDR] => 1 ) [2025-04-07 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 20:58:05' and `end` < '2025-04-07 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-07 23:58:18] Production.INFO: count ==885 [2025-04-07 23:58:18] Production.ERROR: pbx CDR StartTime 2025-04-07 20:58:05 - End Time 2025-04-07 23:58:05 [2025-04-07 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858374', 'tblTempUsageDetail_20' ) start [2025-04-07 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858374', 'tblTempUsageDetail_20' ) end [2025-04-07 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858374', 'tblTempVendorCDR_20' ) start [2025-04-07 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858374', 'tblTempVendorCDR_20' ) end [2025-04-07 23:58:18] Production.INFO: ProcessCDR(1,14858374,1,1,2) [2025-04-07 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858374', 'tblTempUsageDetail_20' ) start [2025-04-07 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858374', 'tblTempUsageDetail_20' ) end [2025-04-07 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:58:22] Production.INFO: ==8925== Releasing lock... [2025-04-07 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:58:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-07 23:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 20:59:06 [end_date_ymd] => 2025-04-07 23:59:06 [RateCDR] => 1 ) [2025-04-07 23: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-04-07 20:59:06' and `end` < '2025-04-07 23: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-04-07 23:59:19] Production.INFO: count ==889 [2025-04-07 23:59:19] Production.ERROR: pbx CDR StartTime 2025-04-07 20:59:06 - End Time 2025-04-07 23:59:06 [2025-04-07 23:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-07 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858379', 'tblTempUsageDetail_20' ) start [2025-04-07 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858379', 'tblTempUsageDetail_20' ) end [2025-04-07 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858379', 'tblTempVendorCDR_20' ) start [2025-04-07 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858379', 'tblTempVendorCDR_20' ) end [2025-04-07 23:59:19] Production.INFO: ProcessCDR(1,14858379,1,1,2) [2025-04-07 23:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-07 23:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-07 23:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858379', 'tblTempUsageDetail_20' ) start [2025-04-07 23:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858379', 'tblTempUsageDetail_20' ) end [2025-04-07 23:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-07 23:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-07 23:59:23] Production.INFO: ==9016== Releasing lock... [2025-04-07 23:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-07 23:59:23] Production.INFO: 35 MB #Memory Used#